]> git.ipfire.org Git - ipfire.org.git/commitdiff
wiki: Always show edit button to encourage editing
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 8 May 2019 14:14:43 +0000 (15:14 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 8 May 2019 14:14:43 +0000 (15:14 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/wiki/page.html

index fa83f0624a3186e5b7f5863f158e1d42b9428aba..9e5979694cae9c544d93c254c8c136dab9f3b7aa 100644 (file)
                </div>
        </div>
 
-       {% if current_user %}
-               <a class="btn btn-primary btn-block mb-3" href="{{ request.path }}?action=edit">
-                       <span class="fas fa-edit mr-2"></span> {{ _("Edit Page") }}
-               </a>
-       {% end %}
+       <a class="btn btn-primary btn-block mb-3" href="{{ request.path }}?action=edit">
+               <span class="fas fa-edit mr-2"></span> {{ _("Edit Page") }}
+               {% if not current_user %}&dash; {{ _("Yes, you can edit!") }}{% end %}
+       </a>
 
        <p class="small text-muted">
                {% if current_user %}