annotate .svn/pristine/73/73476a389fd31393ee516cc84c4f04cc6b8189f7.svn-base @ 1524:82fac3dcf466 redmine-2.5-integration

Fix failure to interpret Javascript when autocompleting members for project
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Thu, 11 Sep 2014 10:24:38 +0100
parents 261b3d9a4903
children
rev   line source
Chris@1464 1 <div class="contextual">
Chris@1464 2 <%= link_to(l(:button_edit), edit_user_path(@user), :class => 'icon icon-edit') if User.current.admin? %>
Chris@1464 3 </div>
Chris@1464 4
Chris@1464 5 <h2><%= avatar @user, :size => "50" %> <%=h @user.name %></h2>
Chris@1464 6
Chris@1464 7 <div class="splitcontentleft">
Chris@1464 8 <ul>
Chris@1464 9 <% unless @user.pref.hide_mail %>
Chris@1464 10 <li><%=l(:field_mail)%>: <%= mail_to(h(@user.mail), nil, :encode => 'javascript') %></li>
Chris@1464 11 <% end %>
Chris@1464 12 <% @user.visible_custom_field_values.each do |custom_value| %>
Chris@1464 13 <% if !custom_value.value.blank? %>
Chris@1464 14 <li><%=h custom_value.custom_field.name%>: <%=h show_value(custom_value) %></li>
Chris@1464 15 <% end %>
Chris@1464 16 <% end %>
Chris@1464 17 <li><%=l(:label_registered_on)%>: <%= format_date(@user.created_on) %></li>
Chris@1464 18 <% unless @user.last_login_on.nil? %>
Chris@1464 19 <li><%=l(:field_last_login_on)%>: <%= format_date(@user.last_login_on) %></li>
Chris@1464 20 <% end %>
Chris@1464 21 </ul>
Chris@1464 22
Chris@1464 23 <% unless @memberships.empty? %>
Chris@1464 24 <h3><%=l(:label_project_plural)%></h3>
Chris@1464 25 <ul>
Chris@1464 26 <% for membership in @memberships %>
Chris@1464 27 <li><%= link_to_project(membership.project) %>
Chris@1464 28 (<%=h membership.roles.sort.collect(&:to_s).join(', ') %>, <%= format_date(membership.created_on) %>)</li>
Chris@1464 29 <% end %>
Chris@1464 30 </ul>
Chris@1464 31 <% end %>
Chris@1464 32 <%= call_hook :view_account_left_bottom, :user => @user %>
Chris@1464 33 </div>
Chris@1464 34
Chris@1464 35 <div class="splitcontentright">
Chris@1464 36
Chris@1464 37 <% unless @events_by_day.empty? %>
Chris@1464 38 <h3><%= link_to l(:label_activity), :controller => 'activities',
Chris@1464 39 :action => 'index', :id => nil, :user_id => @user,
Chris@1464 40 :from => @events_by_day.keys.first %></h3>
Chris@1464 41
Chris@1464 42 <p>
Chris@1464 43 <%=l(:label_reported_issues)%>: <%= Issue.where(:author_id => @user.id).count %>
Chris@1464 44 </p>
Chris@1464 45
Chris@1464 46 <div id="activity">
Chris@1464 47 <% @events_by_day.keys.sort.reverse.each do |day| %>
Chris@1464 48 <h4><%= format_activity_day(day) %></h4>
Chris@1464 49 <dl>
Chris@1464 50 <% @events_by_day[day].sort {|x,y| y.event_datetime <=> x.event_datetime }.each do |e| -%>
Chris@1464 51 <dt class="<%= e.event_type %>">
Chris@1464 52 <span class="time"><%= format_time(e.event_datetime, false) %></span>
Chris@1464 53 <%= content_tag('span', h(e.project), :class => 'project') %>
Chris@1464 54 <%= link_to format_activity_title(e.event_title), e.event_url %></dt>
Chris@1464 55 <dd><span class="description"><%= format_activity_description(e.event_description) %></span></dd>
Chris@1464 56 <% end -%>
Chris@1464 57 </dl>
Chris@1464 58 <% end -%>
Chris@1464 59 </div>
Chris@1464 60
Chris@1464 61 <% other_formats_links do |f| %>
Chris@1464 62 <%= f.link_to 'Atom', :url => {:controller => 'activities', :action => 'index', :id => nil, :user_id => @user, :key => User.current.rss_key} %>
Chris@1464 63 <% end %>
Chris@1464 64
Chris@1464 65 <% content_for :header_tags do %>
Chris@1464 66 <%= auto_discovery_link_tag(:atom, :controller => 'activities', :action => 'index', :user_id => @user, :format => :atom, :key => User.current.rss_key) %>
Chris@1464 67 <% end %>
Chris@1464 68 <% end %>
Chris@1464 69 <%= call_hook :view_account_right_bottom, :user => @user %>
Chris@1464 70 </div>
Chris@1464 71
Chris@1464 72 <% html_title @user.name %>