@@ -1,156 +1,156 | |||||
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 | (@prev_issue_id ? issue_path(@prev_issue_id) : nil), | |
11 | :title => "##{@prev_issue_id}" %> | |
|
11 | :title => "##{@prev_issue_id}" %> | | |
12 | <% if @issue_position && @issue_count %> |
|
12 | <% if @issue_position && @issue_count %> | |
13 | <span class="position"><%= l(:label_item_position, :position => @issue_position, :count => @issue_count) %></span> | |
|
13 | <span class="position"><%= l(:label_item_position, :position => @issue_position, :count => @issue_count) %></span> | | |
14 | <% end %> |
|
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 | (@next_issue_id ? issue_path(@next_issue_id) : nil), | |
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 | <% else %> |
|
52 | <% else %> | |
53 | <th></th> |
|
53 | <th></th> | |
54 | <td></td> |
|
54 | <td></td> | |
55 | <% end %> |
|
55 | <% end %> | |
56 | </tr> |
|
56 | </tr> | |
57 | <tr> |
|
57 | <tr> | |
58 | <th class="fixed-version"><%=l(:field_fixed_version)%>:</th><td class="fixed-version"><%= @issue.fixed_version ? link_to_version(@issue.fixed_version) : "-" %></td> |
|
58 | <th class="fixed-version"><%=l(:field_fixed_version)%>:</th><td class="fixed-version"><%= @issue.fixed_version ? link_to_version(@issue.fixed_version) : "-" %></td> | |
59 | <% if @issue.estimated_hours %> |
|
59 | <% if @issue.estimated_hours %> | |
60 | <th class="estimated-hours"><%=l(:field_estimated_hours)%>:</th><td class="estimated-hours"><%= l_hours(@issue.estimated_hours) %></td> |
|
60 | <th class="estimated-hours"><%=l(:field_estimated_hours)%>:</th><td class="estimated-hours"><%= l_hours(@issue.estimated_hours) %></td> | |
61 | <% end %> |
|
61 | <% end %> | |
62 | </tr> |
|
62 | </tr> | |
63 | <%= render_custom_fields_rows(@issue) %> |
|
63 | <%= render_custom_fields_rows(@issue) %> | |
64 | <%= call_hook(:view_issues_show_details_bottom, :issue => @issue) %> |
|
64 | <%= call_hook(:view_issues_show_details_bottom, :issue => @issue) %> | |
65 | </table> |
|
65 | </table> | |
66 |
|
66 | |||
67 | <% if @issue.description? || @issue.attachments.any? -%> |
|
67 | <% if @issue.description? || @issue.attachments.any? -%> | |
68 | <hr /> |
|
68 | <hr /> | |
69 | <% if @issue.description? %> |
|
69 | <% if @issue.description? %> | |
70 | <div class="contextual"> |
|
70 | <div class="contextual"> | |
71 | <%= link_to_remote_if_authorized( |
|
71 | <%= link_to_remote_if_authorized( | |
72 | l(:button_quote), |
|
72 | l(:button_quote), | |
73 | { :url => {:controller => 'journals', :action => 'new', :id => @issue} }, |
|
73 | { :url => {:controller => 'journals', :action => 'new', :id => @issue} }, | |
74 | :class => 'icon icon-comment') %> |
|
74 | :class => 'icon icon-comment') %> | |
75 | </div> |
|
75 | </div> | |
76 |
|
76 | |||
77 | <p><strong><%=l(:field_description)%></strong></p> |
|
77 | <p><strong><%=l(:field_description)%></strong></p> | |
78 | <div class="wiki"> |
|
78 | <div class="wiki"> | |
79 | <%= textilizable @issue, :description, :attachments => @issue.attachments %> |
|
79 | <%= textilizable @issue, :description, :attachments => @issue.attachments %> | |
80 | </div> |
|
80 | </div> | |
81 | <% end %> |
|
81 | <% end %> | |
82 | <%= link_to_attachments @issue %> |
|
82 | <%= link_to_attachments @issue %> | |
83 | <% end -%> |
|
83 | <% end -%> | |
84 |
|
84 | |||
85 | <%= call_hook(:view_issues_show_description_bottom, :issue => @issue) %> |
|
85 | <%= call_hook(:view_issues_show_description_bottom, :issue => @issue) %> | |
86 |
|
86 | |||
87 | <% if !@issue.leaf? || User.current.allowed_to?(:manage_subtasks, @project) %> |
|
87 | <% if !@issue.leaf? || User.current.allowed_to?(:manage_subtasks, @project) %> | |
88 | <hr /> |
|
88 | <hr /> | |
89 | <div id="issue_tree"> |
|
89 | <div id="issue_tree"> | |
90 | <div class="contextual"> |
|
90 | <div class="contextual"> | |
91 | <%= 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) %> |
|
91 | <%= 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) %> | |
92 | </div> |
|
92 | </div> | |
93 | <p><strong><%=l(:label_subtask_plural)%></strong></p> |
|
93 | <p><strong><%=l(:label_subtask_plural)%></strong></p> | |
94 | <%= render_descendants_tree(@issue) unless @issue.leaf? %> |
|
94 | <%= render_descendants_tree(@issue) unless @issue.leaf? %> | |
95 | </div> |
|
95 | </div> | |
96 | <% end %> |
|
96 | <% end %> | |
97 |
|
97 | |||
98 | <% if @relations.present? || User.current.allowed_to?(:manage_issue_relations, @project) %> |
|
98 | <% if @relations.present? || User.current.allowed_to?(:manage_issue_relations, @project) %> | |
99 | <hr /> |
|
99 | <hr /> | |
100 | <div id="relations"> |
|
100 | <div id="relations"> | |
101 | <%= render :partial => 'relations' %> |
|
101 | <%= render :partial => 'relations' %> | |
102 | </div> |
|
102 | </div> | |
103 | <% end %> |
|
103 | <% end %> | |
104 |
|
104 | |||
105 | </div> |
|
105 | </div> | |
106 |
|
106 | |||
107 | <% if @changesets.present? %> |
|
107 | <% if @changesets.present? %> | |
108 | <div id="issue-changesets"> |
|
108 | <div id="issue-changesets"> | |
109 | <h3><%=l(:label_associated_revisions)%></h3> |
|
109 | <h3><%=l(:label_associated_revisions)%></h3> | |
110 | <%= render :partial => 'changesets', :locals => { :changesets => @changesets} %> |
|
110 | <%= render :partial => 'changesets', :locals => { :changesets => @changesets} %> | |
111 | </div> |
|
111 | </div> | |
112 | <% end %> |
|
112 | <% end %> | |
113 |
|
113 | |||
114 | <% if @journals.present? %> |
|
114 | <% if @journals.present? %> | |
115 | <div id="history"> |
|
115 | <div id="history"> | |
116 | <h3><%=l(:label_history)%></h3> |
|
116 | <h3><%=l(:label_history)%></h3> | |
117 | <%= render :partial => 'history', :locals => { :issue => @issue, :journals => @journals } %> |
|
117 | <%= render :partial => 'history', :locals => { :issue => @issue, :journals => @journals } %> | |
118 | </div> |
|
118 | </div> | |
119 | <% end %> |
|
119 | <% end %> | |
120 |
|
120 | |||
121 |
|
121 | |||
122 | <div style="clear: both;"></div> |
|
122 | <div style="clear: both;"></div> | |
123 | <%= render :partial => 'action_menu' %> |
|
123 | <%= render :partial => 'action_menu' %> | |
124 |
|
124 | |||
125 | <div style="clear: both;"></div> |
|
125 | <div style="clear: both;"></div> | |
126 | <% if authorize_for('issues', 'edit') %> |
|
126 | <% if authorize_for('issues', 'edit') %> | |
127 | <div id="update" style="display:none;"> |
|
127 | <div id="update" style="display:none;"> | |
128 | <h3><%= l(:button_update) %></h3> |
|
128 | <h3><%= l(:button_update) %></h3> | |
129 | <%= render :partial => 'edit' %> |
|
129 | <%= render :partial => 'edit' %> | |
130 | </div> |
|
130 | </div> | |
131 | <% end %> |
|
131 | <% end %> | |
132 |
|
132 | |||
133 | <% other_formats_links do |f| %> |
|
133 | <% other_formats_links do |f| %> | |
134 | <%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %> |
|
134 | <%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %> | |
135 | <%= f.link_to 'PDF' %> |
|
135 | <%= f.link_to 'PDF' %> | |
136 | <% end %> |
|
136 | <% end %> | |
137 |
|
137 | |||
138 | <% html_title "#{@issue.tracker.name} ##{@issue.id}: #{@issue.subject}" %> |
|
138 | <% html_title "#{@issue.tracker.name} ##{@issue.id}: #{@issue.subject}" %> | |
139 |
|
139 | |||
140 | <% content_for :sidebar do %> |
|
140 | <% content_for :sidebar do %> | |
141 | <%= render :partial => 'issues/sidebar' %> |
|
141 | <%= render :partial => 'issues/sidebar' %> | |
142 |
|
142 | |||
143 | <% if User.current.allowed_to?(:add_issue_watchers, @project) || |
|
143 | <% if User.current.allowed_to?(:add_issue_watchers, @project) || | |
144 | (@issue.watchers.present? && User.current.allowed_to?(:view_issue_watchers, @project)) %> |
|
144 | (@issue.watchers.present? && User.current.allowed_to?(:view_issue_watchers, @project)) %> | |
145 | <div id="watchers"> |
|
145 | <div id="watchers"> | |
146 | <%= render :partial => 'watchers/watchers', :locals => {:watched => @issue} %> |
|
146 | <%= render :partial => 'watchers/watchers', :locals => {:watched => @issue} %> | |
147 | </div> |
|
147 | </div> | |
148 | <% end %> |
|
148 | <% end %> | |
149 | <% end %> |
|
149 | <% end %> | |
150 |
|
150 | |||
151 | <% content_for :header_tags do %> |
|
151 | <% content_for :header_tags do %> | |
152 | <%= auto_discovery_link_tag(:atom, {:format => 'atom', :key => User.current.rss_key}, :title => "#{@issue.project} - #{@issue.tracker} ##{@issue.id}: #{@issue.subject}") %> |
|
152 | <%= auto_discovery_link_tag(:atom, {:format => 'atom', :key => User.current.rss_key}, :title => "#{@issue.project} - #{@issue.tracker} ##{@issue.id}: #{@issue.subject}") %> | |
153 | <%= stylesheet_link_tag 'scm' %> |
|
153 | <%= stylesheet_link_tag 'scm' %> | |
154 | <% end %> |
|
154 | <% end %> | |
155 |
|
155 | |||
156 | <%= context_menu issues_context_menu_path %> |
|
156 | <%= context_menu issues_context_menu_path %> |
General Comments 0
You need to be logged in to leave comments.
Login now