<%#-- copyright OpenProject is an open source project management software. Copyright (C) 2012-2020 the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows: Copyright (C) 2006-2017 Jean-Philippe Lang Copyright (C) 2010-2013 the ChiliProject Team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. See docs/COPYRIGHT.rdoc for more details. ++#%> <% content_for :header_tags do %> <%= call_hook :users_show_head %> <% end %> <% html_title t(:label_administration), t(:label_user_plural) -%> <%= toolbar title: "#{avatar @user} #{h(@user.name)}".html_safe do %> <% if User.current.admin? %>
  • <%= link_to edit_user_path(@user), class: 'button', accesskey: accesskey(:edit) do %> <%= op_icon('button--icon icon-edit') %> <%= t(:button_edit) %> <% end %>
  • <% end %> <% end %>
    <%= call_hook :view_account_left_top, user: @user %> <%= call_hook :view_account_left_middle, user: @user %> <% unless @memberships.empty? %>

    <%=t(:label_project_plural)%>

    <% end %> <%= call_hook :view_account_left_bottom, user: @user %>
    <% unless @events_by_day.empty? %>

    <%= link_to t(:label_activity), controller: '/activities', action: 'index', id: nil, user_id: @user, from: @events_by_day.keys.first %>

    <%=t(:label_reported_work_packages)%>: <%= @user.reported_work_package_count %>

    <% @events_by_day.keys.sort.reverse.each do |day| %>

    <%= format_activity_day(day) %>

      <% @events_by_day[day].sort {|x,y| y.event_datetime <=> x.event_datetime }.each do |e| -%>
    • <% event_type = e.event_type == 'meeting' ? 'meetings' : e.event_type %> <% event_type = e.event_type == 'budget' ? 'budget' : event_type %> <%= icon_wrapper("icon-context icon-#{event_type}", e.event_name) %> <%= format_time(e.event_datetime, false) %> <%= content_tag('span', h(e.project), class: 'project') %> <%= link_to format_activity_title(e.event_title), e.event_url %>
      <%= format_activity_description(e.event_description) %>
    • <% end -%>
    <% end -%>
    <%= other_formats_links do |f| %> <%= f.link_to 'Atom', url: {controller: '/activities', action: 'index', id: nil, user_id: @user, key: User.current.rss_key} %> <% end %> <% content_for :header_tags do %> <%= auto_discovery_link_tag(:atom, controller: '/activities', action: 'index', user_id: @user, format: :atom, key: User.current.rss_key) %> <% end %> <% end %> <%= call_hook :view_account_right_bottom, user: @user %>
    <% html_title h(@user.name) %>