aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2011-06-21 23:26:45 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2011-06-21 23:26:45 -0500
commitd220f87c120e4c8627a80adaa6fab18ebe85669f (patch)
tree244099147c738a8b2073d316e1cdc0dced182f9e
parent46fd661e3479ad9157d45190aba7c8127d9b8f7f (diff)
downloadmediagoblin-d220f87c120e4c8627a80adaa6fab18ebe85669f.tar.lz
mediagoblin-d220f87c120e4c8627a80adaa6fab18ebe85669f.tar.xz
mediagoblin-d220f87c120e4c8627a80adaa6fab18ebe85669f.zip
I don't think we need the username to be part of the profile editing URL
-rw-r--r--mediagoblin/edit/routing.py2
-rw-r--r--mediagoblin/templates/mediagoblin/root.html4
2 files changed, 2 insertions, 4 deletions
diff --git a/mediagoblin/edit/routing.py b/mediagoblin/edit/routing.py
index 9604d214..9771207a 100644
--- a/mediagoblin/edit/routing.py
+++ b/mediagoblin/edit/routing.py
@@ -19,5 +19,5 @@ from routes.route import Route
edit_routes = [
# Media editing view handled in user_pages/routing.py
- Route('mediagoblin.edit.profile', '/{user}/profile/',
+ Route('mediagoblin.edit.profile', '/profile/',
controller="mediagoblin.edit.views:edit_profile")]
diff --git a/mediagoblin/templates/mediagoblin/root.html b/mediagoblin/templates/mediagoblin/root.html
index 550e0847..7261f4fc 100644
--- a/mediagoblin/templates/mediagoblin/root.html
+++ b/mediagoblin/templates/mediagoblin/root.html
@@ -24,9 +24,7 @@
{% if request.user %}
<p>
<a href="{{ request.urlgen('mediagoblin.submit.start') }}">Submit an item</a>
- <a href="{{ request.urlgen(
- 'mediagoblin.edit.profile',
- user=request.user.username) }}">Edit profile</a>
+ <a href="{{ request.urlgen('mediagoblin.edit.profile') }}">Edit profile</a>
</p>
{% else %}
<p>