aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancis Irving <francis@mysociety.org>2010-07-20 01:39:59 +0100
committerFrancis Irving <francis@mysociety.org>2010-07-20 01:39:59 +0100
commita2ee7aaa9c0e52ffcad2a585560922fd9d898cb2 (patch)
tree475fc8c0fbcb43ac1a69cd9ce473da5be600459c
parent693cee1d548934af17a9f71afcdc2d05568794a9 (diff)
When logged in, make profile photo a link to change it.
-rw-r--r--app/views/user/show.rhtml8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/views/user/show.rhtml b/app/views/user/show.rhtml
index ede1cc768..366fc67ea 100644
--- a/app/views/user/show.rhtml
+++ b/app/views/user/show.rhtml
@@ -40,7 +40,13 @@
<div class="single_user">
<p id="user_photo_on_profile">
<% if @display_user.profile_photo %>
- <img src="<%= get_profile_photo_url(:url_name => @display_user.url_name) %>">
+ <% if @is_you %>
+ <a href="<%= set_profile_photo_url() %>">
+ <% end %>
+ <img src="<%= get_profile_photo_url(:url_name => @display_user.url_name) %>">
+ <% if @is_you %>
+ </a>
+ <% end %>
<% else %>
<% if @is_you %>
<span id="set_photo">