2009-12-03 21:41:00 +03:00
|
|
|
<%= render :partial => 'action_menu' %>
|
2006-06-28 22:11:03 +04:00
|
|
|
|
2007-09-22 17:17:49 +04:00
|
|
|
<h2><%= @issue.tracker.name %> #<%= @issue.id %></h2>
|
|
|
|
|
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") %>
|
2007-09-22 17:17:49 +04:00
|
|
|
<h3><%=h @issue.subject %></h3>
|
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>
|
2009-07-29 22:35:29 +04:00
|
|
|
<th class="status"><%=l(:field_status)%>:</th><td class="status"><%= @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>
|
2009-07-29 22:35:29 +04:00
|
|
|
<th class="priority"><%=l(:field_priority)%>:</th><td class="priority"><%= @issue.priority.name %></td>
|
|
|
|
<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>
|
2009-11-15 18:27:40 +03: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>
|
2009-11-15 18:27:40 +03:00
|
|
|
<td class="spent-time"><%= @issue.spent_hours > 0 ? (link_to l_hours(@issue.spent_hours), {:controller => 'timelog', :action => 'details', :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>
|
|
|
|
<hr />
|
2007-04-24 17:57:27 +04:00
|
|
|
|
2008-05-30 21:42:25 +04:00
|
|
|
<div class="contextual">
|
2009-01-07 22:47:24 +03:00
|
|
|
<%= link_to_remote_if_authorized(l(:button_quote), { :url => {:action => 'reply', :id => @issue} }, :class => 'icon icon-comment') unless @issue.description.blank? %>
|
2008-05-30 21:42:25 +04:00
|
|
|
</div>
|
|
|
|
|
2007-09-24 23:26:09 +04:00
|
|
|
<p><strong><%=l(:field_description)%></strong></p>
|
2008-01-04 20:55:08 +03:00
|
|
|
<div class="wiki">
|
2007-11-12 17:36:33 +03:00
|
|
|
<%= textilizable @issue, :description, :attachments => @issue.attachments %>
|
2008-01-04 20:55:08 +03:00
|
|
|
</div>
|
2007-03-12 20:59:02 +03:00
|
|
|
|
2008-12-09 19:54:46 +03:00
|
|
|
<%= link_to_attachments @issue %>
|
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) %>
|
|
|
|
|
2007-05-05 17:22:27 +04:00
|
|
|
<% if authorize_for('issue_relations', 'new') || @issue.relations.any? %>
|
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 %>
|
|
|
|
|
2008-08-03 13:14:43 +04:00
|
|
|
<% if User.current.allowed_to?(:add_issue_watchers, @project) ||
|
|
|
|
(@issue.watchers.any? && User.current.allowed_to?(:view_issue_watchers, @project)) %>
|
|
|
|
<hr />
|
|
|
|
<div id="watchers">
|
|
|
|
<%= render :partial => 'watchers/watchers', :locals => {:watched => @issue} %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
2007-08-29 20:52:35 +04:00
|
|
|
</div>
|
2007-09-22 17:17:49 +04:00
|
|
|
|
2010-01-31 19:25:06 +03:00
|
|
|
<% if @changesets.any? %>
|
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 %>
|
|
|
|
|
2007-08-12 17:57:29 +04:00
|
|
|
<% if @journals.any? %>
|
2007-09-22 17:17:49 +04:00
|
|
|
<div id="history">
|
2007-08-12 17:57:29 +04:00
|
|
|
<h3><%=l(:label_history)%></h3>
|
2007-03-12 20:59:02 +03:00
|
|
|
<%= render :partial => 'history', :locals => { :journals => @journals } %>
|
|
|
|
</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>
|
2010-02-28 19:42:31 +03:00
|
|
|
<%= render :partial => 'action_menu', :locals => {:replace_watcher => 'watcher2' } %>
|
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
|
|
|
|
2008-01-03 01:41:53 +03:00
|
|
|
<% html_title "#{@issue.tracker.name} ##{@issue.id}: #{@issue.subject}" %>
|
2007-09-22 17:17:49 +04:00
|
|
|
|
|
|
|
<% content_for :sidebar do %>
|
|
|
|
<%= render :partial => 'issues/sidebar' %>
|
|
|
|
<% 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' %>
|
2008-03-05 11:25:22 +03:00
|
|
|
<% end %>
|