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