2009-12-03 21:41:00 +03:00
|
|
|
<%= render :partial => 'action_menu' %>
|
2006-06-28 22:11:03 +04:00
|
|
|
|
2011-04-12 23:53:14 +04:00
|
|
|
<h2><%= issue_heading(@issue) %></h2>
|
2007-09-22 17:17:49 +04:00
|
|
|
|
2009-04-25 15:28:48 +04:00
|
|
|
<div class="<%= @issue.css_classes %> details">
|
2012-01-04 00:09:44 +04:00
|
|
|
<% if @prev_issue_id || @next_issue_id %>
|
|
|
|
<div class="next-prev-links contextual">
|
2012-01-04 09:50:10 +04:00
|
|
|
<%= link_to_if @prev_issue_id,
|
2012-01-04 12:09:20 +04:00
|
|
|
"\xc2\xab #{l(:label_previous)}",
|
2012-06-03 16:29:21 +04:00
|
|
|
(@prev_issue_id ? issue_path(@prev_issue_id) : nil),
|
2012-01-04 09:50:10 +04:00
|
|
|
:title => "##{@prev_issue_id}" %> |
|
2012-02-16 05:34:58 +04:00
|
|
|
<% if @issue_position && @issue_count %>
|
|
|
|
<span class="position"><%= l(:label_item_position, :position => @issue_position, :count => @issue_count) %></span> |
|
|
|
|
<% end %>
|
2012-01-04 09:50:10 +04:00
|
|
|
<%= link_to_if @next_issue_id,
|
2012-01-04 12:09:20 +04:00
|
|
|
"#{l(:label_next)} \xc2\xbb",
|
2012-06-03 16:29:21 +04:00
|
|
|
(@next_issue_id ? issue_path(@next_issue_id) : nil),
|
2012-01-04 09:50:10 +04:00
|
|
|
:title => "##{@next_issue_id}" %>
|
2012-01-04 00:09:44 +04:00
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<%= avatar(@issue.author, :size => "50") %>
|
2011-09-15 13:26:55 +04:00
|
|
|
|
|
|
|
<div class="subject">
|
2010-03-13 17:56:49 +03:00
|
|
|
<%= render_issue_subject_with_tree(@issue) %>
|
|
|
|
</div>
|
2007-09-15 18:54:15 +04:00
|
|
|
<p class="author">
|
2007-09-15 19:20:08 +04:00
|
|
|
<%= authoring @issue.created_on, @issue.author %>.
|
2009-07-04 16:36:26 +04:00
|
|
|
<% if @issue.created_on != @issue.updated_on %>
|
2011-12-18 02:05:29 +04:00
|
|
|
<%= l(:label_updated_time, time_tag(@issue.updated_on)).html_safe %>.
|
2009-07-04 16:36:26 +04:00
|
|
|
<% end %>
|
2007-09-15 18:54:15 +04:00
|
|
|
</p>
|
2007-09-22 17:17:49 +04:00
|
|
|
|
2009-07-29 22:35:29 +04:00
|
|
|
<table class="attributes">
|
2012-07-05 16:20:07 +04:00
|
|
|
<%= issue_fields_rows do |rows|
|
|
|
|
rows.left l(:field_status), h(@issue.status.name), :class => 'status'
|
|
|
|
rows.left l(:field_priority), h(@issue.priority.name), :class => 'priority'
|
|
|
|
|
|
|
|
unless @issue.disabled_core_fields.include?('assigned_to_id')
|
2012-07-09 20:46:22 +04:00
|
|
|
rows.left l(:field_assigned_to), avatar(@issue.assigned_to, :size => "14").to_s.html_safe + (@issue.assigned_to ? link_to_user(@issue.assigned_to) : "-"), :class => 'assigned-to'
|
2012-07-05 16:20:07 +04:00
|
|
|
end
|
|
|
|
unless @issue.disabled_core_fields.include?('category_id')
|
|
|
|
rows.left l(:field_category), h(@issue.category ? @issue.category.name : "-"), :class => 'category'
|
|
|
|
end
|
|
|
|
unless @issue.disabled_core_fields.include?('fixed_version_id')
|
|
|
|
rows.left l(:field_fixed_version), (@issue.fixed_version ? link_to_version(@issue.fixed_version) : "-"), :class => 'fixed-version'
|
|
|
|
end
|
|
|
|
|
|
|
|
unless @issue.disabled_core_fields.include?('start_date')
|
|
|
|
rows.right l(:field_start_date), format_date(@issue.start_date), :class => 'start-date'
|
|
|
|
end
|
|
|
|
unless @issue.disabled_core_fields.include?('due_date')
|
|
|
|
rows.right l(:field_due_date), format_date(@issue.due_date), :class => 'due-date'
|
|
|
|
end
|
|
|
|
unless @issue.disabled_core_fields.include?('done_ratio')
|
|
|
|
rows.right l(:field_done_ratio), progress_bar(@issue.done_ratio, :width => '80px', :legend => "#{@issue.done_ratio}%"), :class => 'progress'
|
|
|
|
end
|
|
|
|
unless @issue.disabled_core_fields.include?('estimated_hours')
|
2012-09-11 18:13:30 +04:00
|
|
|
unless @issue.estimated_hours.nil?
|
|
|
|
rows.right l(:field_estimated_hours), l_hours(@issue.estimated_hours), :class => 'estimated-hours'
|
|
|
|
end
|
2012-07-05 16:20:07 +04:00
|
|
|
end
|
|
|
|
if User.current.allowed_to?(:view_time_entries, @project)
|
2012-12-22 14:30:42 +04:00
|
|
|
rows.right l(:label_spent_time), (@issue.total_spent_hours > 0 ? link_to(l_hours(@issue.total_spent_hours), project_issue_time_entries_path(@project, @issue)) : "-"), :class => 'spent-time'
|
2012-07-05 16:20:07 +04:00
|
|
|
end
|
|
|
|
end %>
|
2009-07-29 23:04:27 +04:00
|
|
|
<%= render_custom_fields_rows(@issue) %>
|
2008-09-05 14:31:06 +04:00
|
|
|
<%= call_hook(:view_issues_show_details_bottom, :issue => @issue) %>
|
2007-03-12 20:59:02 +03:00
|
|
|
</table>
|
2007-04-24 17:57:27 +04:00
|
|
|
|
2010-10-19 23:26:07 +04:00
|
|
|
<% if @issue.description? || @issue.attachments.any? -%>
|
|
|
|
<hr />
|
2010-12-12 20:12:05 +03:00
|
|
|
<% if @issue.description? %>
|
2012-10-27 12:35:19 +04:00
|
|
|
<div class="description">
|
2011-09-15 13:27:20 +04:00
|
|
|
<div class="contextual">
|
2012-12-22 14:30:42 +04:00
|
|
|
<%= link_to l(:button_quote), quoted_issue_path(@issue), :remote => true, :method => 'post', :class => 'icon icon-comment' if authorize_for('issues', 'edit') %>
|
2011-09-15 13:27:20 +04:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<p><strong><%=l(:field_description)%></strong></p>
|
|
|
|
<div class="wiki">
|
|
|
|
<%= textilizable @issue, :description, :attachments => @issue.attachments %>
|
|
|
|
</div>
|
2012-10-27 12:35:19 +04:00
|
|
|
</div>
|
2010-12-12 20:12:05 +03:00
|
|
|
<% end %>
|
2012-07-07 17:48:07 +04:00
|
|
|
<%= link_to_attachments @issue, :thumbnails => true %>
|
2010-10-19 23:26:07 +04:00
|
|
|
<% end -%>
|
2007-09-24 23:26:09 +04:00
|
|
|
|
2009-03-21 03:22:59 +03:00
|
|
|
<%= call_hook(:view_issues_show_description_bottom, :issue => @issue) %>
|
|
|
|
|
2010-03-13 17:56:49 +03:00
|
|
|
<% if !@issue.leaf? || User.current.allowed_to?(:manage_subtasks, @project) %>
|
|
|
|
<hr />
|
|
|
|
<div id="issue_tree">
|
|
|
|
<div class="contextual">
|
2012-10-17 20:58:44 +04:00
|
|
|
<%= link_to_new_subtask(@issue) if User.current.allowed_to?(:manage_subtasks, @project) %>
|
2010-03-13 17:56:49 +03:00
|
|
|
</div>
|
2010-03-13 18:47:06 +03:00
|
|
|
<p><strong><%=l(:label_subtask_plural)%></strong></p>
|
2010-03-13 17:56:49 +03:00
|
|
|
<%= render_descendants_tree(@issue) unless @issue.leaf? %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
2011-04-12 23:37:56 +04:00
|
|
|
<% if @relations.present? || User.current.allowed_to?(:manage_issue_relations, @project) %>
|
2007-09-22 17:17:49 +04:00
|
|
|
<hr />
|
|
|
|
<div id="relations">
|
2007-05-05 17:22:27 +04:00
|
|
|
<%= render :partial => 'relations' %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
2007-08-29 20:52:35 +04:00
|
|
|
</div>
|
2007-09-22 17:17:49 +04:00
|
|
|
|
2010-05-14 21:15:09 +04:00
|
|
|
<% if @changesets.present? %>
|
2008-01-20 18:38:11 +03:00
|
|
|
<div id="issue-changesets">
|
|
|
|
<h3><%=l(:label_associated_revisions)%></h3>
|
2009-02-22 18:16:18 +03:00
|
|
|
<%= render :partial => 'changesets', :locals => { :changesets => @changesets} %>
|
2008-01-20 18:38:11 +03:00
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
2010-05-14 21:15:09 +04:00
|
|
|
<% if @journals.present? %>
|
2007-09-22 17:17:49 +04:00
|
|
|
<div id="history">
|
2007-08-12 17:57:29 +04:00
|
|
|
<h3><%=l(:label_history)%></h3>
|
2010-03-17 00:37:05 +03:00
|
|
|
<%= render :partial => 'history', :locals => { :issue => @issue, :journals => @journals } %>
|
2007-03-12 20:59:02 +03:00
|
|
|
</div>
|
2007-08-01 22:59:39 +04:00
|
|
|
<% end %>
|
2009-12-03 21:41:00 +03:00
|
|
|
|
|
|
|
|
2008-03-05 14:59:56 +03:00
|
|
|
<div style="clear: both;"></div>
|
2013-05-01 17:12:53 +04:00
|
|
|
<%= render :partial => 'action_menu' %>
|
2007-03-12 20:59:02 +03:00
|
|
|
|
2010-02-28 19:42:31 +03:00
|
|
|
<div style="clear: both;"></div>
|
2012-12-22 14:30:42 +04:00
|
|
|
<% if @issue.editable? %>
|
2008-01-06 20:06:14 +03:00
|
|
|
<div id="update" style="display:none;">
|
2013-11-16 12:32:09 +04:00
|
|
|
<h3><%= l(:button_edit) %></h3>
|
2008-02-09 19:11:18 +03:00
|
|
|
<%= render :partial => 'edit' %>
|
2007-03-12 20:59:02 +03:00
|
|
|
</div>
|
2006-06-28 22:11:03 +04:00
|
|
|
<% end %>
|
2007-09-02 18:34:13 +04:00
|
|
|
|
2009-01-29 16:53:17 +03:00
|
|
|
<% other_formats_links do |f| %>
|
2011-09-15 13:27:20 +04:00
|
|
|
<%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %>
|
|
|
|
<%= f.link_to 'PDF' %>
|
2009-01-29 16:53:17 +03:00
|
|
|
<% end %>
|
2007-09-08 00:52:45 +04:00
|
|
|
|
2011-10-02 22:45:17 +04:00
|
|
|
<% html_title "#{@issue.tracker.name} ##{@issue.id}: #{@issue.subject}" %>
|
2007-09-22 17:17:49 +04:00
|
|
|
|
|
|
|
<% content_for :sidebar do %>
|
2010-03-13 20:45:41 +03:00
|
|
|
<%= render :partial => 'issues/sidebar' %>
|
|
|
|
|
|
|
|
<% if User.current.allowed_to?(:add_issue_watchers, @project) ||
|
2010-05-14 21:15:09 +04:00
|
|
|
(@issue.watchers.present? && User.current.allowed_to?(:view_issue_watchers, @project)) %>
|
2010-03-13 20:45:41 +03:00
|
|
|
<div id="watchers">
|
|
|
|
<%= render :partial => 'watchers/watchers', :locals => {:watched => @issue} %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2007-09-22 17:17:49 +04:00
|
|
|
<% end %>
|
2008-03-05 11:25:22 +03:00
|
|
|
|
|
|
|
<% content_for :header_tags do %>
|
|
|
|
<%= auto_discovery_link_tag(:atom, {:format => 'atom', :key => User.current.rss_key}, :title => "#{@issue.project} - #{@issue.tracker} ##{@issue.id}: #{@issue.subject}") %>
|
|
|
|
<% end %>
|
2012-01-06 21:37:32 +04:00
|
|
|
|
|
|
|
<%= context_menu issues_context_menu_path %>
|