Mercurial > hg > agora-dellsystem
changeset 180:a803a1544126
Hide bundle edit link from other users
author | dellsystem <ilostwaldo@gmail.com> |
---|---|
date | Sun, 21 Oct 2012 00:12:57 -0400 |
parents | 76abe6d681ea |
children | 9d2a2ab4e650 |
files | templates/bundle/bundle.djhtml |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/templates/bundle/bundle.djhtml +++ b/templates/bundle/bundle.djhtml @@ -24,9 +24,11 @@ {% block content %} +{% if request.user == bundle.uploader %} <div class="right-float"> <h2><a href="{% url bundle_edit request.user.username bundle.name %}">Edit this bundle</a></h2> </div> +{% endif %} <h1> <a href="{{ bundle.get_absolute_url }}">{{ bundle.name }}</a> by