|
| 1 | +<%= render :partial => 'action_menu' %> |
| 2 | + |
| 3 | +<h2><%= issue_heading(@issue) %></h2> |
| 4 | + |
| 5 | +<div class="<%= @issue.css_classes %> details"> |
| 6 | + <% if @prev_issue_id || @next_issue_id %> |
| 7 | + <div class="next-prev-links contextual"> |
| 8 | + <%= link_to_if @prev_issue_id, |
| 9 | + "\xc2\xab #{l(:label_previous)}", |
| 10 | + (@prev_issue_id ? issue_path(@prev_issue_id) : nil), |
| 11 | + :title => "##{@prev_issue_id}", |
| 12 | + :accesskey => accesskey(:previous) %> | |
| 13 | + <% if @issue_position && @issue_count %> |
| 14 | + <span class="position"> |
| 15 | + <%= link_to_if @query_path, |
| 16 | + l(:label_item_position, :position => @issue_position, :count => @issue_count), |
| 17 | + @query_path %> |
| 18 | + </span> | |
| 19 | + <% end %> |
| 20 | + <%= link_to_if @next_issue_id, |
| 21 | + "#{l(:label_next)} \xc2\xbb", |
| 22 | + (@next_issue_id ? issue_path(@next_issue_id) : nil), |
| 23 | + :title => "##{@next_issue_id}", |
| 24 | + :accesskey => accesskey(:next) %> |
| 25 | + </div> |
| 26 | + <% end %> |
| 27 | + |
| 28 | + <div class="gravatar-with-child"> |
| 29 | + <%= avatar(@issue.author, :size => "50", :title => l(:field_author)) %> |
| 30 | + <%= avatar(@issue.assigned_to, :size => "22", :class => "gravatar gravatar-child", :title => l(:field_assigned_to)) if @issue.assigned_to %> |
| 31 | + </div> |
| 32 | + |
| 33 | +<div class="subject"> |
| 34 | +<%= render_issue_subject_with_tree(@issue) %> |
| 35 | +</div> |
| 36 | + <p class="author"> |
| 37 | + <%= authoring @issue.created_on, @issue.author %>. |
| 38 | + <% if @issue.created_on != @issue.updated_on %> |
| 39 | + <%= l(:label_updated_time, time_tag(@issue.updated_on)).html_safe %>. |
| 40 | + <% end %> |
| 41 | + </p> |
| 42 | + |
| 43 | +<div class="attributes"> |
| 44 | +<%= issue_fields_rows do |rows| |
| 45 | + rows.left l(:field_status), @issue.status.name, :class => 'status' |
| 46 | + rows.left l(:field_priority), @issue.priority.name, :class => 'priority' |
| 47 | + |
| 48 | + unless @issue.disabled_core_fields.include?('assigned_to_id') |
| 49 | + rows.left l(:field_assigned_to), (@issue.assigned_to ? link_to_user(@issue.assigned_to) : "-"), :class => 'assigned-to' |
| 50 | + end |
| 51 | + unless @issue.disabled_core_fields.include?('category_id') || (@issue.category.nil? && @issue.project.issue_categories.none?) |
| 52 | + rows.left l(:field_category), (@issue.category ? @issue.category.name : "-"), :class => 'category' |
| 53 | + end |
| 54 | + unless @issue.disabled_core_fields.include?('fixed_version_id') || (@issue.fixed_version.nil? && @issue.assignable_versions.none?) |
| 55 | + rows.left l(:field_fixed_version), (@issue.fixed_version ? link_to_version(@issue.fixed_version) : "-"), :class => 'fixed-version' |
| 56 | + end |
| 57 | + |
| 58 | + unless @issue.disabled_core_fields.include?('start_date') |
| 59 | + rows.right l(:field_start_date), format_date(@issue.start_date), :class => 'start-date' |
| 60 | + end |
| 61 | + unless @issue.disabled_core_fields.include?('due_date') |
| 62 | + rows.right l(:field_due_date), format_date(@issue.due_date), :class => 'due-date' |
| 63 | + end |
| 64 | + unless @issue.disabled_core_fields.include?('done_ratio') |
| 65 | + rows.right l(:field_done_ratio), progress_bar(@issue.done_ratio, :legend => "#{@issue.done_ratio}%"), :class => 'progress' |
| 66 | + end |
| 67 | + unless @issue.disabled_core_fields.include?('estimated_hours') |
| 68 | + rows.right l(:field_estimated_hours), issue_estimated_hours_details(@issue), :class => 'estimated-hours' |
| 69 | + end |
| 70 | + if User.current.allowed_to?(:view_time_entries, @project) && @issue.total_spent_hours > 0 |
| 71 | + rows.right l(:label_spent_time), issue_spent_hours_details(@issue), :class => 'spent-time' |
| 72 | + end |
| 73 | +end %> |
| 74 | +<%= render_half_width_custom_fields_rows(@issue) %> |
| 75 | +<%= call_hook(:view_issues_show_details_bottom, :issue => @issue) %> |
| 76 | +</div> |
| 77 | + |
| 78 | +<% if @issue.description? || @issue.attachments.any? -%> |
| 79 | +<hr /> |
| 80 | +<% if @issue.description? %> |
| 81 | +<div class="description"> |
| 82 | + <div class="contextual"> |
| 83 | + <%= link_to l(:button_quote), quoted_issue_path(@issue), :remote => true, :method => 'post', :class => 'icon icon-comment' if @issue.notes_addable? %> |
| 84 | + </div> |
| 85 | + |
| 86 | + <p><strong><%=l(:field_description)%></strong></p> |
| 87 | + <div class="wiki"> |
| 88 | + <%= textilizable @issue, :description, :attachments => @issue.attachments %> |
| 89 | + </div> |
| 90 | +</div> |
| 91 | +<% end %> |
| 92 | +<%= link_to_attachments @issue, :thumbnails => true %> |
| 93 | +<% end -%> |
| 94 | + |
| 95 | +<%= render_full_width_custom_fields_rows(@issue) %> |
| 96 | + |
| 97 | +<%= call_hook(:view_issues_show_description_bottom, :issue => @issue) %> |
| 98 | + |
| 99 | +<% if User.current.allowed_to?(:view_time_entries, @project) and @issue.time_entries.present? and (Setting.plugin_redmine_spent_time_in_issue_description['report_location'].eql? "ticket_body" or Setting.plugin_redmine_spent_time_in_issue_description['report_location'].nil? )%> |
| 100 | + <%= render :partial => 'time_spent_report' %> |
| 101 | +<% end %> |
| 102 | + |
| 103 | +<% if !@issue.leaf? || User.current.allowed_to?(:manage_subtasks, @project) %> |
| 104 | +<hr /> |
| 105 | +<div id="issue_tree"> |
| 106 | +<div class="contextual"> |
| 107 | + <%= link_to_new_subtask(@issue) if User.current.allowed_to?(:manage_subtasks, @project) %> |
| 108 | +</div> |
| 109 | +<p><strong><%=l(:label_subtask_plural)%></strong></p> |
| 110 | +<%= form_tag({}, :data => {:cm_url => issues_context_menu_path}) do %> |
| 111 | +<%= render_descendants_tree(@issue) unless @issue.leaf? %> |
| 112 | +<% end %> |
| 113 | +</div> |
| 114 | +<% end %> |
| 115 | + |
| 116 | +<% if @relations.present? || User.current.allowed_to?(:manage_issue_relations, @project) %> |
| 117 | +<hr /> |
| 118 | +<div id="relations"> |
| 119 | +<%= render :partial => 'relations' %> |
| 120 | +</div> |
| 121 | +<% end %> |
| 122 | + |
| 123 | +</div> |
| 124 | + |
| 125 | +<% if Setting.plugin_redmine_spent_time_in_issue_description['report_location'].eql? "above_revisions" and User.current.allowed_to?(:view_time_entries, @project) and @issue.time_entries.present? %> |
| 126 | + <%= render :partial => 'floating_report' %> |
| 127 | + <div style="clear: both;"></div> |
| 128 | +<% end %> |
| 129 | + |
| 130 | +<% if @changesets.present? %> |
| 131 | +<div id="issue-changesets"> |
| 132 | +<h3><%=l(:label_associated_revisions)%></h3> |
| 133 | +<%= render :partial => 'changesets', :locals => { :changesets => @changesets} %> |
| 134 | +</div> |
| 135 | +<% end %> |
| 136 | + |
| 137 | +<% if Setting.plugin_redmine_spent_time_in_issue_description['report_location'].eql? "below_revisions" and User.current.allowed_to?(:view_time_entries, @project) and @issue.time_entries.present? %> |
| 138 | + <div style="clear: both;"></div> |
| 139 | + <%= render :partial => 'floating_report' %> |
| 140 | +<% end %> |
| 141 | + |
| 142 | +<% if @journals.present? %> |
| 143 | +<div id="history"> |
| 144 | +<h3><%=l(:label_history)%></h3> |
| 145 | +<%= render :partial => 'history', :locals => { :issue => @issue, :journals => @journals } %> |
| 146 | +</div> |
| 147 | +<% end %> |
| 148 | + |
| 149 | + |
| 150 | +<div style="clear: both;"></div> |
| 151 | +<%= render :partial => 'action_menu' %> |
| 152 | + |
| 153 | +<div style="clear: both;"></div> |
| 154 | +<% if @issue.editable? %> |
| 155 | + <div id="update" style="display:none;"> |
| 156 | + <h3><%= l(:button_edit) %></h3> |
| 157 | + <%= render :partial => 'edit' %> |
| 158 | + </div> |
| 159 | +<% end %> |
| 160 | + |
| 161 | +<% other_formats_links do |f| %> |
| 162 | + <%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %> |
| 163 | + <%= f.link_to 'PDF' %> |
| 164 | +<% end %> |
| 165 | + |
| 166 | +<% html_title "#{@issue.tracker.name} ##{@issue.id}: #{@issue.subject}" %> |
| 167 | + |
| 168 | +<% content_for :sidebar do %> |
| 169 | + <%= render :partial => 'issues/sidebar' %> |
| 170 | + |
| 171 | + <% if User.current.allowed_to?(:add_issue_watchers, @project) || |
| 172 | + (@issue.watchers.present? && User.current.allowed_to?(:view_issue_watchers, @project)) %> |
| 173 | + <div id="watchers"> |
| 174 | + <%= render :partial => 'watchers/watchers', :locals => {:watched => @issue} %> |
| 175 | + </div> |
| 176 | + <% end %> |
| 177 | +<% end %> |
| 178 | + |
| 179 | +<% content_for :header_tags do %> |
| 180 | + <%= auto_discovery_link_tag(:atom, {:format => 'atom', :key => User.current.rss_key}, :title => "#{@issue.project} - #{@issue.tracker} ##{@issue.id}: #{@issue.subject}") %> |
| 181 | +<% end %> |
| 182 | + |
| 183 | +<%= context_menu %> |
0 commit comments