Some template improvements

This commit is contained in:
Skia
2016-09-11 19:00:12 +02:00
parent 7aec32cef0
commit 54444b31ba
6 changed files with 14 additions and 9 deletions

View File

@ -7,7 +7,6 @@
{% block content %}
<h3>{% trans counter_name=counter %}{{ counter_name }} counter{% endtrans %}</h3>
<div>
Counter: {{ counter }}
<form method="post" action="" class="inline" style="display:inline">
{% csrf_token %}
{{ form.as_p() }}

View File

@ -5,7 +5,7 @@
{% endblock %}
{% block content %}
{% if request.user.is_root %}
{% if request.user.can_edit(page) %}
<p><a href="{{ url('core:page_edit', page_name=page.get_full_name()) }}">{% trans %}Edit presentation page{% endtrans %}</a></p>
{% endif %}
{% if request.user.is_in_group(settings.SITH_MAIN_MEMBERS_GROUP) %}