Redmine 4.1.1
This commit is contained in:
parent
33e7b881a5
commit
3d976f1b3b
1593 changed files with 36180 additions and 19489 deletions
|
@ -4,17 +4,16 @@
|
|||
|
||||
<h2><%= avatar @user, :size => "50" %> <%= @user.name %></h2>
|
||||
|
||||
<div class="splitcontent">
|
||||
<div class="splitcontentleft">
|
||||
<ul>
|
||||
<% if User.current.admin? %>
|
||||
<li><%=l(:field_login)%>: <%= @user.login %></li>
|
||||
<% end %>
|
||||
<li><%=l(:field_login)%>: <%= @user.login %></li>
|
||||
<% unless @user.pref.hide_mail %>
|
||||
<li><%=l(:field_mail)%>: <%= mail_to(@user.mail, nil, :encode => 'javascript') %></li>
|
||||
<% end %>
|
||||
<% @user.visible_custom_field_values.each do |custom_value| %>
|
||||
<% if !custom_value.value.blank? %>
|
||||
<li><%= custom_value.custom_field.name %>: <%= show_value(custom_value) %></li>
|
||||
<li class="<%= custom_value.custom_field.css_classes %>"><%= custom_value.custom_field.name %>: <%= show_value(custom_value) %></li>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<li><%=l(:label_registered_on)%>: <%= format_date(@user.created_on) %></li>
|
||||
|
@ -24,24 +23,93 @@
|
|||
</ul>
|
||||
|
||||
<h3><%=l(:label_issue_plural)%></h3>
|
||||
<ul>
|
||||
<li><%= link_to l(:label_assigned_issues),
|
||||
issues_path(:set_filter => 1, :assigned_to_id => ([@user.id] + @user.group_ids).join("|"), :sort => 'priority:desc,updated_on:desc') %>:
|
||||
<%= Issue.visible.open.assigned_to(@user).count %>
|
||||
<li><%= link_to l(:label_reported_issues),
|
||||
issues_path(:set_filter => 1, :status_id => '*', :author_id => @user.id) %>:
|
||||
<%= Issue.visible.where(:author_id => @user.id).count %>
|
||||
</ul>
|
||||
|
||||
<table class="list issue-report">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th><%=l(:label_open_issues_plural)%></th>
|
||||
<th><%=l(:label_closed_issues_plural)%></th>
|
||||
<th><%=l(:label_total)%></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% assigned_to_ids = ([@user.id] + @user.group_ids).join("|") %>
|
||||
<% sort_cond = 'priority:desc,updated_on:desc' %>
|
||||
<tr>
|
||||
<td class="name">
|
||||
<%= link_to l(:label_assigned_issues),
|
||||
issues_path(:set_filter => 1, :assigned_to_id => assigned_to_ids, :sort => sort_cond) %>
|
||||
</td>
|
||||
<td>
|
||||
<%= link_to @issue_counts[:assigned][:open],
|
||||
issues_path(:set_filter => 1, :assigned_to_id => assigned_to_ids, :sort => sort_cond) %>
|
||||
</td>
|
||||
<td>
|
||||
<%= link_to @issue_counts[:assigned][:total] - @issue_counts[:assigned][:open],
|
||||
issues_path(:set_filter => 1, :status_id => 'c', :assigned_to_id => assigned_to_ids, :sort => sort_cond) %>
|
||||
</td>
|
||||
<td class="total">
|
||||
<%= link_to @issue_counts[:assigned][:total],
|
||||
issues_path(:set_filter => 1, :status_id => '*', :assigned_to_id => assigned_to_ids, :sort => sort_cond) %>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="name">
|
||||
<%= link_to l(:label_reported_issues),
|
||||
issues_path(:set_filter => 1, :author_id => @user.id, :sort => sort_cond) %>
|
||||
</td>
|
||||
<td>
|
||||
<%= link_to @issue_counts[:reported][:open],
|
||||
issues_path(:set_filter => 1, :author_id => @user.id, :sort => sort_cond) %>
|
||||
</td>
|
||||
<td>
|
||||
<%= link_to @issue_counts[:reported][:total] - @issue_counts[:reported][:open],
|
||||
issues_path(:set_filter => 1, :status_id => 'c', :author_id => @user.id, :sort => sort_cond) %>
|
||||
</td>
|
||||
<td class="total">
|
||||
<%= link_to @issue_counts[:reported][:total],
|
||||
issues_path(:set_filter => 1, :status_id => '*', :author_id => @user.id, :sort => sort_cond) %>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<% unless @memberships.empty? %>
|
||||
<h3><%=l(:label_project_plural)%></h3>
|
||||
<ul>
|
||||
<% for membership in @memberships %>
|
||||
<li><%= link_to_project(membership.project) %>
|
||||
(<%= membership.roles.sort.collect(&:to_s).join(', ') %>, <%= format_date(membership.created_on) %>)</li>
|
||||
<table class="list projects">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><%=l(:label_project)%></th>
|
||||
<th><%=l(:label_role_plural)%></th>
|
||||
<th><%=l(:label_registered_on)%></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% memberships_by_project = @memberships.group_by(&:project) %>
|
||||
<% project_tree(memberships_by_project.keys, :init_level => true) do |project, level| %>
|
||||
<% membership = memberships_by_project[project].first %>
|
||||
<tr class="<%= project.css_classes %> <%= level > 0 ? "idnt idnt-#{level}" : nil %>">
|
||||
<td class="name"><span><%= link_to_project(project) %></span></td>
|
||||
<td class="roles"><%= membership.roles.sort.collect(&:to_s).join(', ') %></td>
|
||||
<td><%= format_date(membership.created_on) %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</ul>
|
||||
</tbody>
|
||||
</table>
|
||||
<% end %>
|
||||
|
||||
<% if (User.current == @user || User.current.admin?) && @user.groups.any? %>
|
||||
<div id="groups">
|
||||
<h3><%=l(:label_group_plural)%></h3>
|
||||
<ul>
|
||||
<% for group in @user.groups %>
|
||||
<li><%= link_to_group(group) %>
|
||||
<% end %>
|
||||
</ul>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<%= call_hook :view_account_left_bottom, :user => @user %>
|
||||
</div>
|
||||
|
||||
|
@ -51,21 +119,7 @@
|
|||
<h3><%= link_to l(:label_activity), :controller => 'activities',
|
||||
:action => 'index', :id => nil, :user_id => @user,
|
||||
:from => @events_by_day.keys.first %></h3>
|
||||
|
||||
<div id="activity">
|
||||
<% @events_by_day.keys.sort.reverse.each do |day| %>
|
||||
<h4><%= format_activity_day(day) %></h4>
|
||||
<dl>
|
||||
<% @events_by_day[day].sort {|x,y| y.event_datetime <=> x.event_datetime }.each do |e| -%>
|
||||
<dt class="<%= e.event_type %>">
|
||||
<span class="time"><%= format_time(e.event_datetime, false) %></span>
|
||||
<%= content_tag('span', e.project, :class => 'project') %>
|
||||
<%= link_to format_activity_title(e.event_title), e.event_url %></dt>
|
||||
<dd><span class="description"><%= format_activity_description(e.event_description) %></span></dd>
|
||||
<% end -%>
|
||||
</dl>
|
||||
<% end -%>
|
||||
</div>
|
||||
<%= render :partial => 'activities/activities', :locals => {:events_by_day => @events_by_day} %>
|
||||
|
||||
<% other_formats_links do |f| %>
|
||||
<%= f.link_to 'Atom', :url => {:controller => 'activities', :action => 'index', :id => nil, :user_id => @user, :key => User.current.rss_key} %>
|
||||
|
@ -77,5 +131,5 @@
|
|||
<% end %>
|
||||
<%= call_hook :view_account_right_bottom, :user => @user %>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<% html_title @user.name %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue