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">
|
2010-01-08 00:28:45 +03:00
|
|
|
<%= avatar(@issue.author, :size => "50") %>
|
2010-03-13 17:56:49 +03:00
|
|
|
|
|
|
|
<div class="subject">
|
|
|
|
<%= 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 %>
|
|
|
|
<%= l(:label_updated_time, time_tag(@issue.updated_on)) %>.
|
|
|
|
<% 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">
|
2007-03-12 20:59:02 +03:00
|
|
|
<tr>
|
2011-07-30 03:20:36 +04:00
|
|
|
<th class="status"><%=l(:field_status)%>:</th><td class="status"><%= h(@issue.status.name) %></td>
|
2009-11-15 18:27:40 +03:00
|
|
|
<th class="start-date"><%=l(:field_start_date)%>:</th><td class="start-date"><%= format_date(@issue.start_date) %></td>
|
2007-03-12 20:59:02 +03:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2011-07-30 03:20:36 +04:00
|
|
|
<th class="priority"><%=l(:field_priority)%>:</th><td class="priority"><%= h(@issue.priority.name) %></td>
|
2009-07-29 22:35:29 +04:00
|
|
|
<th class="due-date"><%=l(:field_due_date)%>:</th><td class="due-date"><%= format_date(@issue.due_date) %></td>
|
2007-03-12 20:59:02 +03:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2009-11-15 18:27:40 +03:00
|
|
|
<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>
|
2009-07-29 22:35:29 +04:00
|
|
|
<th class="progress"><%=l(:field_done_ratio)%>:</th><td class="progress"><%= progress_bar @issue.done_ratio, :width => '80px', :legend => "#{@issue.done_ratio}%" %></td>
|
2007-03-12 20:59:02 +03:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2011-07-30 03:20:36 +04:00
|
|
|
<th class="category"><%=l(:field_category)%>:</th><td class="category"><%=h(@issue.category ? @issue.category.name : "-") %></td>
|
2007-09-15 18:54:15 +04:00
|
|
|
<% if User.current.allowed_to?(:view_time_entries, @project) %>
|
2009-07-29 22:35:29 +04:00
|
|
|
<th class="spent-time"><%=l(:label_spent_time)%>:</th>
|
2010-10-06 22:23:45 +04:00
|
|
|
<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>
|
2007-09-15 18:54:15 +04:00
|
|
|
<% end %>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2009-11-15 18:27:40 +03:00
|
|
|
<th class="fixed-version"><%=l(:field_fixed_version)%>:</th><td class="fixed-version"><%= @issue.fixed_version ? link_to_version(@issue.fixed_version) : "-" %></td>
|
2007-09-15 18:54:15 +04:00
|
|
|
<% if @issue.estimated_hours %>
|
2009-11-15 18:27:40 +03:00
|
|
|
<th class="estimated-hours"><%=l(:field_estimated_hours)%>:</th><td class="estimated-hours"><%= l_hours(@issue.estimated_hours) %></td>
|
2007-09-15 18:54:15 +04:00
|
|
|
<% end %>
|
2007-03-12 20:59:02 +03:00
|
|
|
</tr>
|
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? %>
|
|
|
|
<div class="contextual">
|
2010-12-18 16:40:50 +03:00
|
|
|
<%= link_to_remote_if_authorized(l(:button_quote), { :url => {:controller => 'journals', :action => 'new', :id => @issue} }, :class => 'icon icon-comment') %>
|
2010-12-12 20:12:05 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<p><strong><%=l(:field_description)%></strong></p>
|
|
|
|
<div class="wiki">
|
|
|
|
<%= textilizable @issue, :description, :attachments => @issue.attachments %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2008-12-09 19:54:46 +03:00
|
|
|
<%= link_to_attachments @issue %>
|
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">
|
|
|
|
<%= 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) %>
|
|
|
|
</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>
|
2011-04-05 16:09:15 +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>
|
2008-02-09 19:11:18 +03:00
|
|
|
<% if authorize_for('issues', 'edit') %>
|
2008-01-06 20:06:14 +03:00
|
|
|
<div id="update" style="display:none;">
|
|
|
|
<h3><%= l(:button_update) %></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| %>
|
|
|
|
<%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %>
|
|
|
|
<%= f.link_to 'PDF' %>
|
|
|
|
<% end %>
|
2007-09-08 00:52:45 +04:00
|
|
|
|
2011-08-02 17:05:09 +04:00
|
|
|
<% html_title h("#{@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}") %>
|
2008-06-18 20:49:40 +04:00
|
|
|
<%= stylesheet_link_tag 'scm' %>
|
2010-03-13 17:56:49 +03:00
|
|
|
<%= javascript_include_tag 'context_menu' %>
|
|
|
|
<%= stylesheet_link_tag 'context_menu' %>
|
2010-08-22 23:12:21 +04:00
|
|
|
<%= stylesheet_link_tag 'context_menu_rtl' if l(:direction) == 'rtl' %>
|
2008-03-05 11:25:22 +03:00
|
|
|
<% end %>
|
2010-03-13 17:56:49 +03:00
|
|
|
<div id="context-menu" style="display: none;"></div>
|
2010-08-19 22:16:54 +04:00
|
|
|
<%= javascript_tag "new ContextMenu('#{issues_context_menu_path}')" %>
|