@@ -1,153 +1,153 | |||||
1 | <%= render :partial => 'action_menu' %> |
|
1 | <%= render :partial => 'action_menu' %> | |
2 |
|
2 | |||
3 | <h2><%= issue_heading(@issue) %></h2> |
|
3 | <h2><%= issue_heading(@issue) %></h2> | |
4 |
|
4 | |||
5 | <div class="<%= @issue.css_classes %> details"> |
|
5 | <div class="<%= @issue.css_classes %> details"> | |
6 | <% if @prev_issue_id || @next_issue_id %> |
|
6 | <% if @prev_issue_id || @next_issue_id %> | |
7 | <div class="next-prev-links contextual"> |
|
7 | <div class="next-prev-links contextual"> | |
8 | <%= link_to_if @prev_issue_id, |
|
8 | <%= link_to_if @prev_issue_id, | |
9 | "\xc2\xab #{l(:label_previous)}", |
|
9 | "\xc2\xab #{l(:label_previous)}", | |
10 | issue_path(@prev_issue_id), |
|
10 | issue_path(@prev_issue_id), | |
11 | :title => "##{@prev_issue_id}" %> | |
|
11 | :title => "##{@prev_issue_id}" %> | | |
12 |
|
|
12 | <% if @issue_position && @issue_count %> | |
13 |
|
|
13 | <span class="position"><%= l(:label_item_position, :position => @issue_position, :count => @issue_count) %></span> | | |
14 |
|
|
14 | <% end %> | |
15 | <%= link_to_if @next_issue_id, |
|
15 | <%= link_to_if @next_issue_id, | |
16 | "#{l(:label_next)} \xc2\xbb", |
|
16 | "#{l(:label_next)} \xc2\xbb", | |
17 | issue_path(@next_issue_id), |
|
17 | issue_path(@next_issue_id), | |
18 | :title => "##{@next_issue_id}" %> |
|
18 | :title => "##{@next_issue_id}" %> | |
19 | </div> |
|
19 | </div> | |
20 | <% end %> |
|
20 | <% end %> | |
21 |
|
21 | |||
22 | <%= avatar(@issue.author, :size => "50") %> |
|
22 | <%= avatar(@issue.author, :size => "50") %> | |
23 |
|
23 | |||
24 | <div class="subject"> |
|
24 | <div class="subject"> | |
25 | <%= render_issue_subject_with_tree(@issue) %> |
|
25 | <%= render_issue_subject_with_tree(@issue) %> | |
26 | </div> |
|
26 | </div> | |
27 | <p class="author"> |
|
27 | <p class="author"> | |
28 | <%= authoring @issue.created_on, @issue.author %>. |
|
28 | <%= authoring @issue.created_on, @issue.author %>. | |
29 | <% if @issue.created_on != @issue.updated_on %> |
|
29 | <% if @issue.created_on != @issue.updated_on %> | |
30 | <%= l(:label_updated_time, time_tag(@issue.updated_on)).html_safe %>. |
|
30 | <%= l(:label_updated_time, time_tag(@issue.updated_on)).html_safe %>. | |
31 | <% end %> |
|
31 | <% end %> | |
32 | </p> |
|
32 | </p> | |
33 |
|
33 | |||
34 | <table class="attributes"> |
|
34 | <table class="attributes"> | |
35 | <tr> |
|
35 | <tr> | |
36 | <th class="status"><%=l(:field_status)%>:</th><td class="status"><%= h(@issue.status.name) %></td> |
|
36 | <th class="status"><%=l(:field_status)%>:</th><td class="status"><%= h(@issue.status.name) %></td> | |
37 | <th class="start-date"><%=l(:field_start_date)%>:</th><td class="start-date"><%= format_date(@issue.start_date) %></td> |
|
37 | <th class="start-date"><%=l(:field_start_date)%>:</th><td class="start-date"><%= format_date(@issue.start_date) %></td> | |
38 | </tr> |
|
38 | </tr> | |
39 | <tr> |
|
39 | <tr> | |
40 | <th class="priority"><%=l(:field_priority)%>:</th><td class="priority"><%= h(@issue.priority.name) %></td> |
|
40 | <th class="priority"><%=l(:field_priority)%>:</th><td class="priority"><%= h(@issue.priority.name) %></td> | |
41 | <th class="due-date"><%=l(:field_due_date)%>:</th><td class="due-date"><%= format_date(@issue.due_date) %></td> |
|
41 | <th class="due-date"><%=l(:field_due_date)%>:</th><td class="due-date"><%= format_date(@issue.due_date) %></td> | |
42 | </tr> |
|
42 | </tr> | |
43 | <tr> |
|
43 | <tr> | |
44 | <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> |
|
44 | <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> | |
45 | <th class="progress"><%=l(:field_done_ratio)%>:</th><td class="progress"><%= progress_bar @issue.done_ratio, :width => '80px', :legend => "#{@issue.done_ratio}%" %></td> |
|
45 | <th class="progress"><%=l(:field_done_ratio)%>:</th><td class="progress"><%= progress_bar @issue.done_ratio, :width => '80px', :legend => "#{@issue.done_ratio}%" %></td> | |
46 | </tr> |
|
46 | </tr> | |
47 | <tr> |
|
47 | <tr> | |
48 | <th class="category"><%=l(:field_category)%>:</th><td class="category"><%=h(@issue.category ? @issue.category.name : "-") %></td> |
|
48 | <th class="category"><%=l(:field_category)%>:</th><td class="category"><%=h(@issue.category ? @issue.category.name : "-") %></td> | |
49 | <% if User.current.allowed_to?(:view_time_entries, @project) %> |
|
49 | <% if User.current.allowed_to?(:view_time_entries, @project) %> | |
50 | <th class="spent-time"><%=l(:label_spent_time)%>:</th> |
|
50 | <th class="spent-time"><%=l(:label_spent_time)%>:</th> | |
51 | <td class="spent-time"><%= @issue.total_spent_hours > 0 ? (link_to l_hours(@issue.total_spent_hours), {:controller => 'timelog', :action => 'index', :project_id => @project, :issue_id => @issue}) : "-" %></td> |
|
51 | <td class="spent-time"><%= @issue.total_spent_hours > 0 ? (link_to l_hours(@issue.total_spent_hours), {:controller => 'timelog', :action => 'index', :project_id => @project, :issue_id => @issue}) : "-" %></td> | |
52 | <% end %> |
|
52 | <% end %> | |
53 | </tr> |
|
53 | </tr> | |
54 | <tr> |
|
54 | <tr> | |
55 | <th class="fixed-version"><%=l(:field_fixed_version)%>:</th><td class="fixed-version"><%= @issue.fixed_version ? link_to_version(@issue.fixed_version) : "-" %></td> |
|
55 | <th class="fixed-version"><%=l(:field_fixed_version)%>:</th><td class="fixed-version"><%= @issue.fixed_version ? link_to_version(@issue.fixed_version) : "-" %></td> | |
56 | <% if @issue.estimated_hours %> |
|
56 | <% if @issue.estimated_hours %> | |
57 | <th class="estimated-hours"><%=l(:field_estimated_hours)%>:</th><td class="estimated-hours"><%= l_hours(@issue.estimated_hours) %></td> |
|
57 | <th class="estimated-hours"><%=l(:field_estimated_hours)%>:</th><td class="estimated-hours"><%= l_hours(@issue.estimated_hours) %></td> | |
58 | <% end %> |
|
58 | <% end %> | |
59 | </tr> |
|
59 | </tr> | |
60 | <%= render_custom_fields_rows(@issue) %> |
|
60 | <%= render_custom_fields_rows(@issue) %> | |
61 | <%= call_hook(:view_issues_show_details_bottom, :issue => @issue) %> |
|
61 | <%= call_hook(:view_issues_show_details_bottom, :issue => @issue) %> | |
62 | </table> |
|
62 | </table> | |
63 |
|
63 | |||
64 | <% if @issue.description? || @issue.attachments.any? -%> |
|
64 | <% if @issue.description? || @issue.attachments.any? -%> | |
65 | <hr /> |
|
65 | <hr /> | |
66 | <% if @issue.description? %> |
|
66 | <% if @issue.description? %> | |
67 | <div class="contextual"> |
|
67 | <div class="contextual"> | |
68 | <%= link_to_remote_if_authorized( |
|
68 | <%= link_to_remote_if_authorized( | |
69 | l(:button_quote), |
|
69 | l(:button_quote), | |
70 | { :url => {:controller => 'journals', :action => 'new', :id => @issue} }, |
|
70 | { :url => {:controller => 'journals', :action => 'new', :id => @issue} }, | |
71 | :class => 'icon icon-comment') %> |
|
71 | :class => 'icon icon-comment') %> | |
72 | </div> |
|
72 | </div> | |
73 |
|
73 | |||
74 | <p><strong><%=l(:field_description)%></strong></p> |
|
74 | <p><strong><%=l(:field_description)%></strong></p> | |
75 | <div class="wiki"> |
|
75 | <div class="wiki"> | |
76 | <%= textilizable @issue, :description, :attachments => @issue.attachments %> |
|
76 | <%= textilizable @issue, :description, :attachments => @issue.attachments %> | |
77 | </div> |
|
77 | </div> | |
78 | <% end %> |
|
78 | <% end %> | |
79 | <%= link_to_attachments @issue %> |
|
79 | <%= link_to_attachments @issue %> | |
80 | <% end -%> |
|
80 | <% end -%> | |
81 |
|
81 | |||
82 | <%= call_hook(:view_issues_show_description_bottom, :issue => @issue) %> |
|
82 | <%= call_hook(:view_issues_show_description_bottom, :issue => @issue) %> | |
83 |
|
83 | |||
84 | <% if !@issue.leaf? || User.current.allowed_to?(:manage_subtasks, @project) %> |
|
84 | <% if !@issue.leaf? || User.current.allowed_to?(:manage_subtasks, @project) %> | |
85 | <hr /> |
|
85 | <hr /> | |
86 | <div id="issue_tree"> |
|
86 | <div id="issue_tree"> | |
87 | <div class="contextual"> |
|
87 | <div class="contextual"> | |
88 | <%= link_to(l(:button_add), {:controller => 'issues', :action => 'new', :project_id => @project, :issue => {:parent_issue_id => @issue}}) if User.current.allowed_to?(:manage_subtasks, @project) %> |
|
88 | <%= link_to(l(:button_add), {:controller => 'issues', :action => 'new', :project_id => @project, :issue => {:parent_issue_id => @issue}}) if User.current.allowed_to?(:manage_subtasks, @project) %> | |
89 | </div> |
|
89 | </div> | |
90 | <p><strong><%=l(:label_subtask_plural)%></strong></p> |
|
90 | <p><strong><%=l(:label_subtask_plural)%></strong></p> | |
91 | <%= render_descendants_tree(@issue) unless @issue.leaf? %> |
|
91 | <%= render_descendants_tree(@issue) unless @issue.leaf? %> | |
92 | </div> |
|
92 | </div> | |
93 | <% end %> |
|
93 | <% end %> | |
94 |
|
94 | |||
95 | <% if @relations.present? || User.current.allowed_to?(:manage_issue_relations, @project) %> |
|
95 | <% if @relations.present? || User.current.allowed_to?(:manage_issue_relations, @project) %> | |
96 | <hr /> |
|
96 | <hr /> | |
97 | <div id="relations"> |
|
97 | <div id="relations"> | |
98 | <%= render :partial => 'relations' %> |
|
98 | <%= render :partial => 'relations' %> | |
99 | </div> |
|
99 | </div> | |
100 | <% end %> |
|
100 | <% end %> | |
101 |
|
101 | |||
102 | </div> |
|
102 | </div> | |
103 |
|
103 | |||
104 | <% if @changesets.present? %> |
|
104 | <% if @changesets.present? %> | |
105 | <div id="issue-changesets"> |
|
105 | <div id="issue-changesets"> | |
106 | <h3><%=l(:label_associated_revisions)%></h3> |
|
106 | <h3><%=l(:label_associated_revisions)%></h3> | |
107 | <%= render :partial => 'changesets', :locals => { :changesets => @changesets} %> |
|
107 | <%= render :partial => 'changesets', :locals => { :changesets => @changesets} %> | |
108 | </div> |
|
108 | </div> | |
109 | <% end %> |
|
109 | <% end %> | |
110 |
|
110 | |||
111 | <% if @journals.present? %> |
|
111 | <% if @journals.present? %> | |
112 | <div id="history"> |
|
112 | <div id="history"> | |
113 | <h3><%=l(:label_history)%></h3> |
|
113 | <h3><%=l(:label_history)%></h3> | |
114 | <%= render :partial => 'history', :locals => { :issue => @issue, :journals => @journals } %> |
|
114 | <%= render :partial => 'history', :locals => { :issue => @issue, :journals => @journals } %> | |
115 | </div> |
|
115 | </div> | |
116 | <% end %> |
|
116 | <% end %> | |
117 |
|
117 | |||
118 |
|
118 | |||
119 | <div style="clear: both;"></div> |
|
119 | <div style="clear: both;"></div> | |
120 | <%= render :partial => 'action_menu' %> |
|
120 | <%= render :partial => 'action_menu' %> | |
121 |
|
121 | |||
122 | <div style="clear: both;"></div> |
|
122 | <div style="clear: both;"></div> | |
123 | <% if authorize_for('issues', 'edit') %> |
|
123 | <% if authorize_for('issues', 'edit') %> | |
124 | <div id="update" style="display:none;"> |
|
124 | <div id="update" style="display:none;"> | |
125 | <h3><%= l(:button_update) %></h3> |
|
125 | <h3><%= l(:button_update) %></h3> | |
126 | <%= render :partial => 'edit' %> |
|
126 | <%= render :partial => 'edit' %> | |
127 | </div> |
|
127 | </div> | |
128 | <% end %> |
|
128 | <% end %> | |
129 |
|
129 | |||
130 | <% other_formats_links do |f| %> |
|
130 | <% other_formats_links do |f| %> | |
131 | <%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %> |
|
131 | <%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %> | |
132 | <%= f.link_to 'PDF' %> |
|
132 | <%= f.link_to 'PDF' %> | |
133 | <% end %> |
|
133 | <% end %> | |
134 |
|
134 | |||
135 | <% html_title "#{@issue.tracker.name} ##{@issue.id}: #{@issue.subject}" %> |
|
135 | <% html_title "#{@issue.tracker.name} ##{@issue.id}: #{@issue.subject}" %> | |
136 |
|
136 | |||
137 | <% content_for :sidebar do %> |
|
137 | <% content_for :sidebar do %> | |
138 | <%= render :partial => 'issues/sidebar' %> |
|
138 | <%= render :partial => 'issues/sidebar' %> | |
139 |
|
139 | |||
140 | <% if User.current.allowed_to?(:add_issue_watchers, @project) || |
|
140 | <% if User.current.allowed_to?(:add_issue_watchers, @project) || | |
141 | (@issue.watchers.present? && User.current.allowed_to?(:view_issue_watchers, @project)) %> |
|
141 | (@issue.watchers.present? && User.current.allowed_to?(:view_issue_watchers, @project)) %> | |
142 | <div id="watchers"> |
|
142 | <div id="watchers"> | |
143 | <%= render :partial => 'watchers/watchers', :locals => {:watched => @issue} %> |
|
143 | <%= render :partial => 'watchers/watchers', :locals => {:watched => @issue} %> | |
144 | </div> |
|
144 | </div> | |
145 | <% end %> |
|
145 | <% end %> | |
146 | <% end %> |
|
146 | <% end %> | |
147 |
|
147 | |||
148 | <% content_for :header_tags do %> |
|
148 | <% content_for :header_tags do %> | |
149 | <%= auto_discovery_link_tag(:atom, {:format => 'atom', :key => User.current.rss_key}, :title => "#{@issue.project} - #{@issue.tracker} ##{@issue.id}: #{@issue.subject}") %> |
|
149 | <%= auto_discovery_link_tag(:atom, {:format => 'atom', :key => User.current.rss_key}, :title => "#{@issue.project} - #{@issue.tracker} ##{@issue.id}: #{@issue.subject}") %> | |
150 | <%= stylesheet_link_tag 'scm' %> |
|
150 | <%= stylesheet_link_tag 'scm' %> | |
151 | <% end %> |
|
151 | <% end %> | |
152 |
|
152 | |||
153 | <%= context_menu issues_context_menu_path %> |
|
153 | <%= context_menu issues_context_menu_path %> |
General Comments 0
You need to be logged in to leave comments.
Login now