@@ -1,119 +1,119 | |||
|
1 | 1 | <div class="contextual"> |
|
2 | 2 | <%= link_to_if_authorized(l(:button_update), {:controller => 'issues', :action => 'edit', :id => @issue }, :onclick => 'showAndScrollTo("update", "notes"); return false;', :class => 'icon icon-edit', :accesskey => accesskey(:edit)) %> |
|
3 | 3 | <%= link_to_if_authorized l(:button_log_time), {:controller => 'timelog', :action => 'edit', :issue_id => @issue}, :class => 'icon icon-time-add' %> |
|
4 | 4 | <%= watcher_tag(@issue, User.current) %> |
|
5 | 5 | <%= link_to_if_authorized l(:button_copy), {:controller => 'issues', :action => 'new', :project_id => @project, :copy_from => @issue }, :class => 'icon icon-copy' %> |
|
6 | 6 | <%= link_to_if_authorized l(:button_move), {:controller => 'issues', :action => 'move', :id => @issue }, :class => 'icon icon-move' %> |
|
7 | 7 | <%= link_to_if_authorized l(:button_delete), {:controller => 'issues', :action => 'destroy', :id => @issue}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %> |
|
8 | 8 | </div> |
|
9 | 9 | |
|
10 | 10 | <h2><%= @issue.tracker.name %> #<%= @issue.id %></h2> |
|
11 | 11 | |
|
12 | 12 | <div class="<%= @issue.css_classes %> details"> |
|
13 | 13 | <%= avatar(@issue.author, :size => "64") %> |
|
14 | 14 | <h3><%=h @issue.subject %></h3> |
|
15 | 15 | <p class="author"> |
|
16 | 16 | <%= authoring @issue.created_on, @issue.author %>. |
|
17 | 17 | <% if @issue.created_on != @issue.updated_on %> |
|
18 | 18 | <%= l(:label_updated_time, time_tag(@issue.updated_on)) %>. |
|
19 | 19 | <% end %> |
|
20 | 20 | </p> |
|
21 | 21 | |
|
22 | 22 | <table class="attributes"> |
|
23 | 23 | <tr> |
|
24 | 24 | <th class="status"><%=l(:field_status)%>:</th><td class="status"><%= @issue.status.name %></td> |
|
25 | <th class="start-date"><%=l(:field_start_date)%>:</th><td><%= format_date(@issue.start_date) %></td> | |
|
25 | <th class="start-date"><%=l(:field_start_date)%>:</th><td class="start-date"><%= format_date(@issue.start_date) %></td> | |
|
26 | 26 | </tr> |
|
27 | 27 | <tr> |
|
28 | 28 | <th class="priority"><%=l(:field_priority)%>:</th><td class="priority"><%= @issue.priority.name %></td> |
|
29 | 29 | <th class="due-date"><%=l(:field_due_date)%>:</th><td class="due-date"><%= format_date(@issue.due_date) %></td> |
|
30 | 30 | </tr> |
|
31 | 31 | <tr> |
|
32 | <th class="assigned-to"><%=l(:field_assigned_to)%>:</th><td><%= avatar(@issue.assigned_to, :size => "14") %><%= @issue.assigned_to ? link_to_user(@issue.assigned_to) : "-" %></td> | |
|
32 | <th class="assigned-to"><%=l(:field_assigned_to)%>:</th><td class="assigned-to"><%= avatar(@issue.assigned_to, :size => "14") %><%= @issue.assigned_to ? link_to_user(@issue.assigned_to) : "-" %></td> | |
|
33 | 33 | <th class="progress"><%=l(:field_done_ratio)%>:</th><td class="progress"><%= progress_bar @issue.done_ratio, :width => '80px', :legend => "#{@issue.done_ratio}%" %></td> |
|
34 | 34 | </tr> |
|
35 | 35 | <tr> |
|
36 | <th class="category"><%=l(:field_category)%>:</th><td><%=h @issue.category ? @issue.category.name : "-" %></td> | |
|
36 | <th class="category"><%=l(:field_category)%>:</th><td class="category"><%=h @issue.category ? @issue.category.name : "-" %></td> | |
|
37 | 37 | <% if User.current.allowed_to?(:view_time_entries, @project) %> |
|
38 | 38 | <th class="spent-time"><%=l(:label_spent_time)%>:</th> |
|
39 |
<td class="spent- |
|
|
39 | <td class="spent-time"><%= @issue.spent_hours > 0 ? (link_to l_hours(@issue.spent_hours), {:controller => 'timelog', :action => 'details', :project_id => @project, :issue_id => @issue}) : "-" %></td> | |
|
40 | 40 | <% end %> |
|
41 | 41 | </tr> |
|
42 | 42 | <tr> |
|
43 | <th class="fixed-version"><%=l(:field_fixed_version)%>:</th><td><%= @issue.fixed_version ? link_to_version(@issue.fixed_version) : "-" %></td> | |
|
43 | <th class="fixed-version"><%=l(:field_fixed_version)%>:</th><td class="fixed-version"><%= @issue.fixed_version ? link_to_version(@issue.fixed_version) : "-" %></td> | |
|
44 | 44 | <% if @issue.estimated_hours %> |
|
45 | <th class="estimated-hours"><%=l(:field_estimated_hours)%>:</th><td><%= l_hours(@issue.estimated_hours) %></td> | |
|
45 | <th class="estimated-hours"><%=l(:field_estimated_hours)%>:</th><td class="estimated-hours"><%= l_hours(@issue.estimated_hours) %></td> | |
|
46 | 46 | <% end %> |
|
47 | 47 | </tr> |
|
48 | 48 | <%= render_custom_fields_rows(@issue) %> |
|
49 | 49 | <%= call_hook(:view_issues_show_details_bottom, :issue => @issue) %> |
|
50 | 50 | </table> |
|
51 | 51 | <hr /> |
|
52 | 52 | |
|
53 | 53 | <div class="contextual"> |
|
54 | 54 | <%= link_to_remote_if_authorized(l(:button_quote), { :url => {:action => 'reply', :id => @issue} }, :class => 'icon icon-comment') unless @issue.description.blank? %> |
|
55 | 55 | </div> |
|
56 | 56 | |
|
57 | 57 | <p><strong><%=l(:field_description)%></strong></p> |
|
58 | 58 | <div class="wiki"> |
|
59 | 59 | <%= textilizable @issue, :description, :attachments => @issue.attachments %> |
|
60 | 60 | </div> |
|
61 | 61 | |
|
62 | 62 | <%= link_to_attachments @issue %> |
|
63 | 63 | |
|
64 | 64 | <%= call_hook(:view_issues_show_description_bottom, :issue => @issue) %> |
|
65 | 65 | |
|
66 | 66 | <% if authorize_for('issue_relations', 'new') || @issue.relations.any? %> |
|
67 | 67 | <hr /> |
|
68 | 68 | <div id="relations"> |
|
69 | 69 | <%= render :partial => 'relations' %> |
|
70 | 70 | </div> |
|
71 | 71 | <% end %> |
|
72 | 72 | |
|
73 | 73 | <% if User.current.allowed_to?(:add_issue_watchers, @project) || |
|
74 | 74 | (@issue.watchers.any? && User.current.allowed_to?(:view_issue_watchers, @project)) %> |
|
75 | 75 | <hr /> |
|
76 | 76 | <div id="watchers"> |
|
77 | 77 | <%= render :partial => 'watchers/watchers', :locals => {:watched => @issue} %> |
|
78 | 78 | </div> |
|
79 | 79 | <% end %> |
|
80 | 80 | |
|
81 | 81 | </div> |
|
82 | 82 | |
|
83 | 83 | <% if @changesets.any? && User.current.allowed_to?(:view_changesets, @project) %> |
|
84 | 84 | <div id="issue-changesets"> |
|
85 | 85 | <h3><%=l(:label_associated_revisions)%></h3> |
|
86 | 86 | <%= render :partial => 'changesets', :locals => { :changesets => @changesets} %> |
|
87 | 87 | </div> |
|
88 | 88 | <% end %> |
|
89 | 89 | |
|
90 | 90 | <% if @journals.any? %> |
|
91 | 91 | <div id="history"> |
|
92 | 92 | <h3><%=l(:label_history)%></h3> |
|
93 | 93 | <%= render :partial => 'history', :locals => { :journals => @journals } %> |
|
94 | 94 | </div> |
|
95 | 95 | <% end %> |
|
96 | 96 | <div style="clear: both;"></div> |
|
97 | 97 | |
|
98 | 98 | <% if authorize_for('issues', 'edit') %> |
|
99 | 99 | <div id="update" style="display:none;"> |
|
100 | 100 | <h3><%= l(:button_update) %></h3> |
|
101 | 101 | <%= render :partial => 'edit' %> |
|
102 | 102 | </div> |
|
103 | 103 | <% end %> |
|
104 | 104 | |
|
105 | 105 | <% other_formats_links do |f| %> |
|
106 | 106 | <%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %> |
|
107 | 107 | <%= f.link_to 'PDF' %> |
|
108 | 108 | <% end %> |
|
109 | 109 | |
|
110 | 110 | <% html_title "#{@issue.tracker.name} ##{@issue.id}: #{@issue.subject}" %> |
|
111 | 111 | |
|
112 | 112 | <% content_for :sidebar do %> |
|
113 | 113 | <%= render :partial => 'issues/sidebar' %> |
|
114 | 114 | <% end %> |
|
115 | 115 | |
|
116 | 116 | <% content_for :header_tags do %> |
|
117 | 117 | <%= auto_discovery_link_tag(:atom, {:format => 'atom', :key => User.current.rss_key}, :title => "#{@issue.project} - #{@issue.tracker} ##{@issue.id}: #{@issue.subject}") %> |
|
118 | 118 | <%= stylesheet_link_tag 'scm' %> |
|
119 | 119 | <% end %> |
General Comments 0
You need to be logged in to leave comments.
Login now