aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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">