diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2011-06-22 13:54:14 -0500 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2011-06-22 13:54:14 -0500 |
commit | 3a2b22e34607fce05a74732a40bb8e49115129bb (patch) | |
tree | 8549c1d12992c2fc4f1f8e018e5546713996f31f | |
parent | 7577b7dfbe1c69f38ed1dfba27ac273ff5b50f21 (diff) | |
parent | ca9c7a07b2dc8b4fdb734f3a9e29901e086e86e2 (diff) | |
download | mediagoblin-3a2b22e34607fce05a74732a40bb8e49115129bb.tar.lz mediagoblin-3a2b22e34607fce05a74732a40bb8e49115129bb.tar.xz mediagoblin-3a2b22e34607fce05a74732a40bb8e49115129bb.zip |
Merge remote branch 'remotes/gullydwarf-cfdv/is388_only_media_owner_edits'
-rw-r--r-- | mediagoblin/templates/mediagoblin/user_pages/media.html | 10 |
1 files changed, 6 insertions, 4 deletions
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 <a href="{{ request.urlgen('mediagoblin.user_pages.user_home', user= media.uploader().username) }}"> - {{- media.uploader().username }}</a></p> - <p><a href="{{ request.urlgen('mediagoblin.edit.edit_media', - user= media.uploader().username, - media= media._id) }}">Edit</a></p> + {{- media.uploader().username }}</a></p> + {% if media.uploader().username == request.user.username %} + <p><a href="{{ request.urlgen('mediagoblin.edit.edit_media', + user= media.uploader().username, + media= media._id) }}">Edit</a></p> + {% endif %} {% else %} <p>Sorry, no such media found.<p/> {% endif %} |