From 42de4c5379cd313d470e09aa71b009e731ee2264 Mon Sep 17 00:00:00 2001 From: Caleb Forbes Davis V Date: Sun, 3 Jul 2011 02:37:19 -0500 Subject: [PATCH] moves edit profile link to user page --- mediagoblin/templates/mediagoblin/root.html | 1 - mediagoblin/templates/mediagoblin/user_pages/user.html | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/mediagoblin/templates/mediagoblin/root.html b/mediagoblin/templates/mediagoblin/root.html index e29abd51..5b744999 100644 --- a/mediagoblin/templates/mediagoblin/root.html +++ b/mediagoblin/templates/mediagoblin/root.html @@ -23,7 +23,6 @@ {% if request.user %}

Submit an item - Edit profile

{% else %}

diff --git a/mediagoblin/templates/mediagoblin/user_pages/user.html b/mediagoblin/templates/mediagoblin/user_pages/user.html index 99e46a72..22defcbd 100644 --- a/mediagoblin/templates/mediagoblin/user_pages/user.html +++ b/mediagoblin/templates/mediagoblin/user_pages/user.html @@ -27,6 +27,10 @@ {% block mediagoblin_content -%} {% if user %}

{{ user.username }}'s profile

+ {% if request.user == user.username or request.user['is_admin'] %} + Edit + {% endif %} {% include "mediagoblin/utils/profile.html" %} -- 2.25.1