Commit 2c7a0d62 authored by Enrico Zini's avatar Enrico Zini
Browse files

Added edit and admin links

parent 9468b86a
......@@ -60,10 +60,10 @@
{% block breadcrumbs %}{{block.super}} / <a href="{% url public_people %}">people</a> / {{person.uid|default:person.fullname}}{% endblock %}
{% block relatedpages %}
{{block.super}}
{% if request.am %}
<a href="{% url restricted_person key=person.lookup_key %}">full version</a>
{% if request.am|is_admin %}
<a href="{% url admin:backend_person_change person.id %}">admin</a>
{% endif %}
{{block.super}}
{% endblock %}
{% block content %}
......@@ -88,6 +88,10 @@
{% endif %}
</table>
{% if person|editable_by:request.am %}
<a href="{% url restricted_person key=person.lookup_key %}">edit</a>
{% endif %}
<h2>Personal history</h2>
{% usemacro process_table processes %}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment