2007-03-12 20:59:02 +03:00
|
|
|
<div class="contextual">
|
2008-06-29 23:50:07 +04:00
|
|
|
<%= link_to_if_authorized(l(:button_update), {:controller => 'issues', :action => 'edit', :id => @issue }, :onclick => 'showAndScrollTo("update", "notes"); return false;', :class => 'icon icon-edit', :accesskey => accesskey(:edit)) %>
|
2009-01-30 20:50:28 +03:00
|
|
|
<%= link_to_if_authorized l(:button_log_time), {:controller => 'timelog', :action => 'edit', :issue_id => @issue}, :class => 'icon icon-time-add' %>
|
2007-09-02 18:34:13 +04:00
|
|
|
<%= watcher_tag(@issue, User.current) %>
|
2008-01-20 14:30:57 +03:00
|
|
|
<%= link_to_if_authorized l(:button_copy), {:controller => 'issues', :action => 'new', :project_id => @project, :copy_from => @issue }, :class => 'icon icon-copy' %>
|
2008-02-10 16:17:41 +03:00
|
|
|
<%= link_to_if_authorized l(:button_move), {:controller => 'issues', :action => 'move', :id => @issue }, :class => 'icon icon-move' %>
|
2007-09-02 18:34:13 +04:00
|
|
|
<%= link_to_if_authorized l(:button_delete), {:controller => 'issues', :action => 'destroy', :id => @issue}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %>
|
2007-03-12 20:59:02 +03:00
|
|
|
</div>
|
2006-06-28 22:11:03 +04:00
|
|
|
|
2007-09-22 17:17:49 +04:00
|
|
|
<h2><%= @issue.tracker.name %> #<%= @issue.id %></h2>
|
|
|
|
|
2008-12-17 00:11:37 +03:00
|
|
|
<div class="<%= css_issue_classes(@issue) %>">
|
2008-11-09 17:52:16 +03:00
|
|
|
<%= avatar(@issue.author, :size => "64") %>
|
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 %>.
|
2008-04-12 21:25:06 +04:00
|
|
|
<%= l(:label_updated_time, distance_of_time_in_words(Time.now, @issue.updated_on)) + '.' if @issue.created_on != @issue.updated_on %>
|
2007-09-15 18:54:15 +04:00
|
|
|
</p>
|
2007-09-22 17:17:49 +04:00
|
|
|
|
2007-03-12 20:59:02 +03:00
|
|
|
<table width="100%">
|
|
|
|
<tr>
|
2009-02-15 11:33:48 +03:00
|
|
|
<td style="width:15%" class="status"><b><%=l(:field_status)%>:</b></td><td style="width:35%" class="status"><%= @issue.status.name %></td>
|
2008-10-30 05:58:04 +03:00
|
|
|
<td style="width:15%" class="start-date"><b><%=l(:field_start_date)%>:</b></td><td style="width:35%"><%= format_date(@issue.start_date) %></td>
|
2007-03-12 20:59:02 +03:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2009-02-13 20:29:49 +03:00
|
|
|
<td class="priority"><b><%=l(:field_priority)%>:</b></td><td class="priority"><%= @issue.priority.name %></td>
|
2008-10-30 05:58:04 +03:00
|
|
|
<td class="due-date"><b><%=l(:field_due_date)%>:</b></td><td class="due-date"><%= format_date(@issue.due_date) %></td>
|
2007-03-12 20:59:02 +03:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2008-11-09 17:52:16 +03:00
|
|
|
<td class="assigned-to"><b><%=l(:field_assigned_to)%>:</b></td><td><%= avatar(@issue.assigned_to, :size => "14") %><%= @issue.assigned_to ? link_to_user(@issue.assigned_to) : "-" %></td>
|
2008-10-30 05:58:04 +03:00
|
|
|
<td class="progress"><b><%=l(:field_done_ratio)%>:</b></td><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>
|
2008-10-30 05:58:04 +03:00
|
|
|
<td class="category"><b><%=l(:field_category)%>:</b></td><td><%=h @issue.category ? @issue.category.name : "-" %></td>
|
2007-09-15 18:54:15 +04:00
|
|
|
<% if User.current.allowed_to?(:view_time_entries, @project) %>
|
2008-10-30 05:58:04 +03:00
|
|
|
<td class="spent-time"><b><%=l(:label_spent_time)%>:</b></td>
|
2009-01-30 20:50:28 +03:00
|
|
|
<td class="spent-hours"><%= @issue.spent_hours > 0 ? (link_to lwr(:label_f_hour, @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>
|
2008-10-30 05:58:04 +03:00
|
|
|
<td class="fixed-version"><b><%=l(:field_fixed_version)%>:</b></td><td><%= @issue.fixed_version ? link_to_version(@issue.fixed_version) : "-" %></td>
|
2007-09-15 18:54:15 +04:00
|
|
|
<% if @issue.estimated_hours %>
|
2008-10-30 05:58:04 +03:00
|
|
|
<td class="estimated-hours"><b><%=l(:field_estimated_hours)%>:</b></td><td><%= lwr(:label_f_hour, @issue.estimated_hours) %></td>
|
2007-09-15 18:54:15 +04:00
|
|
|
<% end %>
|
2007-03-12 20:59:02 +03:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2008-06-28 00:13:56 +04:00
|
|
|
<% n = 0 -%>
|
|
|
|
<% @issue.custom_values.each do |value| -%>
|
|
|
|
<td valign="top"><b><%=h value.custom_field.name %>:</b></td><td valign="top"><%= simple_format(h(show_value(value))) %></td>
|
2007-03-12 20:59:02 +03:00
|
|
|
<% n = n + 1
|
|
|
|
if (n > 1)
|
|
|
|
n = 0 %>
|
|
|
|
</tr><tr>
|
|
|
|
<%end
|
|
|
|
end %>
|
|
|
|
</tr>
|
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
|
|
|
|
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
|
|
|
|
2008-01-20 18:38:11 +03:00
|
|
|
<% if @issue.changesets.any? && User.current.allowed_to?(:view_changesets, @project) %>
|
|
|
|
<div id="issue-changesets">
|
|
|
|
<h3><%=l(:label_associated_revisions)%></h3>
|
|
|
|
<%= render :partial => 'changesets', :locals => { :changesets => @issue.changesets} %>
|
|
|
|
</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 %>
|
2008-03-05 14:59:56 +03:00
|
|
|
<div style="clear: both;"></div>
|
2007-03-12 20:59:02 +03:00
|
|
|
|
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 %>
|