Mercurial > hg > soundsoftware-site
diff app/views/users/.svn/text-base/show.rhtml.svn-base @ 51:371eac10df0b live
* Merge from "cannam" branch. This includes update to Redmine trunk, plus welcome/tip-of-the-day from luisf branch.
author | Chris Cannam |
---|---|
date | Wed, 24 Nov 2010 12:20:08 +0000 |
parents | 94944d00e43c |
children |
line wrap: on
line diff
--- a/app/views/users/.svn/text-base/show.rhtml.svn-base Thu Oct 21 11:19:14 2010 +0100 +++ b/app/views/users/.svn/text-base/show.rhtml.svn-base Wed Nov 24 12:20:08 2010 +0000 @@ -1,5 +1,5 @@ <div class="contextual"> -<%= link_to(l(:button_edit), {:controller => 'users', :action => 'edit', :id => @user}, :class => 'icon icon-edit') if User.current.admin? %> +<%= link_to(l(:button_edit), edit_user_path(@user), :class => 'icon icon-edit') if User.current.admin? %> </div> <h2><%= avatar @user, :size => "50" %> <%=h @user.name %></h2> @@ -9,7 +9,7 @@ <% unless @user.pref.hide_mail %> <li><%=l(:field_mail)%>: <%= mail_to(h(@user.mail), nil, :encode => 'javascript') %></li> <% end %> - <% for custom_value in @custom_values %> + <% @user.visible_custom_field_values.each do |custom_value| %> <% if !custom_value.value.blank? %> <li><%=h custom_value.custom_field.name%>: <%=h show_value(custom_value) %></li> <% end %>