From: Caleb Forbes Davis V
Date: Wed, 22 Jun 2011 17:13:29 +0000 (-0500)
Subject: adds conditional for display of media edit link
X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=ca9c7a07b2dc8b4fdb734f3a9e29901e086e86e2;p=mediagoblin.git
adds conditional for display of media edit link
---
diff --git a/mediagoblin/templates/mediagoblin/user_pages/media.html b/mediagoblin/templates/mediagoblin/user_pages/media.html
index 44bc38b8..ade7f0c6 100644
--- a/mediagoblin/templates/mediagoblin/user_pages/media.html
+++ b/mediagoblin/templates/mediagoblin/user_pages/media.html
@@ -34,10 +34,12 @@
by
- {{- media.uploader().username }}
- Edit
+ {{- media.uploader().username }}
+ {% if media.uploader().username == request.user.username %}
+ Edit
+ {% endif %}
{% else %}
Sorry, no such media found.
{% endif %}