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