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