aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/templates
diff options
context:
space:
mode:
authorElrond <elrond+mediagoblin.org@samba-tng.org>2011-06-02 16:48:15 +0200
committerElrond <elrond+mediagoblin.org@samba-tng.org>2011-06-02 16:48:15 +0200
commit8cd5d4f8c3de634905651b1d1e8cd1355b7f3a99 (patch)
tree3bdf29f9b4fec0ee5c4dbe7de785e903eb387b56 /mediagoblin/templates
parentb897fdf91b2fe03c299880545fc6712d50cd0e97 (diff)
downloadmediagoblin-8cd5d4f8c3de634905651b1d1e8cd1355b7f3a99.tar.lz
mediagoblin-8cd5d4f8c3de634905651b1d1e8cd1355b7f3a99.tar.xz
mediagoblin-8cd5d4f8c3de634905651b1d1e8cd1355b7f3a99.zip
Prepare for moving /edit/ under /u/.../edit/
To make moving the whole thing under /u/ easier, prepare to pass in the {user} needed for that.
Diffstat (limited to 'mediagoblin/templates')
-rw-r--r--mediagoblin/templates/mediagoblin/edit/edit.html1
-rw-r--r--mediagoblin/templates/mediagoblin/user_pages/media.html1
2 files changed, 2 insertions, 0 deletions
diff --git a/mediagoblin/templates/mediagoblin/edit/edit.html b/mediagoblin/templates/mediagoblin/edit/edit.html
index d694ce25..295d57eb 100644
--- a/mediagoblin/templates/mediagoblin/edit/edit.html
+++ b/mediagoblin/templates/mediagoblin/edit/edit.html
@@ -23,6 +23,7 @@
<h1>Edit details for {{ media.title }}</h1>
<form action="{{ request.urlgen('mediagoblin.edit.edit_media',
+ user= media.uploader().username,
media= media._id) }}"
method="POST" enctype="multipart/form-data">
<div class="submit_box form_box">
diff --git a/mediagoblin/templates/mediagoblin/user_pages/media.html b/mediagoblin/templates/mediagoblin/user_pages/media.html
index b26e2514..406fd3f6 100644
--- a/mediagoblin/templates/mediagoblin/user_pages/media.html
+++ b/mediagoblin/templates/mediagoblin/user_pages/media.html
@@ -34,6 +34,7 @@
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>
{% else %}
<p>Sorry, no such media found.<p/>