Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
</div>
</div>
- <div class="form-group form-check">
- <input type="checkbox" class="form-check-input" name="watch" id="watch" checked>
- <label class="form-check-label" for="watch">{{ _("Watch this page") }}</label>
- </div>
+ {% if page and not page.is_watching(current_user) %}
+ <div class="form-group form-check">
+ <input type="checkbox" class="form-check-input" name="watch" id="watch" checked>
+ <label class="form-check-label" for="watch">{{ _("Watch this page") }}</label>
+ </div>
+ {% end %}
<button type="submit" class="btn btn-primary btn-block">
{% if page %}{{ _("Save Page") }}{% else %}{{ _("Create Page") }}{% end %}