@@ -1,36 +1,36 | |||
|
1 | <% if @total_hours && authorize_for('timelog', 'reports') %> | |
|
1 | <% if @total_hours && User.current.allowed_to?(:view_time_entries, @project) %> | |
|
2 | 2 | <div style="float:right;text-align:right;"> |
|
3 | 3 | <strong><%= l(:label_spent_time) %></strong>: <span class="icon icon-time"><%= lwr(:label_f_hour, @total_hours) %></span><br /> |
|
4 | 4 | <%= link_to(l(:label_details), {:controller => 'timelog', :action => 'details', :project_id => @project}) %> | |
|
5 | 5 | <%= link_to(l(:label_report), {:controller => 'timelog', :action => 'report', :project_id => @project}) %> |
|
6 | 6 | </div> |
|
7 | 7 | <% end %> |
|
8 | 8 | |
|
9 | 9 | <h2><%=l(:label_report_plural)%></h2> |
|
10 | 10 | |
|
11 | 11 | <div class="splitcontentleft"> |
|
12 | 12 | <h3><%=l(:field_tracker)%> <%= link_to image_tag('zoom_in.png'), :detail => 'tracker' %></h3> |
|
13 | 13 | <%= render :partial => 'simple', :locals => { :data => @issues_by_tracker, :field_name => "tracker_id", :rows => @trackers } %> |
|
14 | 14 | <br /> |
|
15 | 15 | <h3><%=l(:field_version)%> <%= link_to image_tag('zoom_in.png'), :detail => 'version' %></h3> |
|
16 | 16 | <%= render :partial => 'simple', :locals => { :data => @issues_by_version, :field_name => "fixed_version_id", :rows => @versions } %> |
|
17 | 17 | <br /> |
|
18 | 18 | <h3><%=l(:field_author)%> <%= link_to image_tag('zoom_in.png'), :detail => 'author' %></h3> |
|
19 | 19 | <%= render :partial => 'simple', :locals => { :data => @issues_by_author, :field_name => "author_id", :rows => @authors } %> |
|
20 | 20 | <br /> |
|
21 | 21 | </div> |
|
22 | 22 | |
|
23 | 23 | <div class="splitcontentright"> |
|
24 | 24 | <h3><%=l(:field_priority)%> <%= link_to image_tag('zoom_in.png'), :detail => 'priority' %></h3> |
|
25 | 25 | <%= render :partial => 'simple', :locals => { :data => @issues_by_priority, :field_name => "priority_id", :rows => @priorities } %> |
|
26 | 26 | <br /> |
|
27 | 27 | <% if @project.children.any? %> |
|
28 | 28 | <h3><%=l(:field_subproject)%> <%= link_to image_tag('zoom_in.png'), :detail => 'subproject' %></h3> |
|
29 | 29 | <%= render :partial => 'simple', :locals => { :data => @issues_by_subproject, :field_name => "project_id", :rows => @subprojects } %> |
|
30 | 30 | <br /> |
|
31 | 31 | <% end %> |
|
32 | 32 | <h3><%=l(:field_category)%> <%= link_to image_tag('zoom_in.png'), :detail => 'category' %></h3> |
|
33 | 33 | <%= render :partial => 'simple', :locals => { :data => @issues_by_category, :field_name => "category_id", :rows => @categories } %> |
|
34 | 34 | <br /> |
|
35 | 35 | </div> |
|
36 | 36 |
General Comments 0
You need to be logged in to leave comments.
Login now