2007-03-12 20:59:02 +03:00
|
|
|
<div class="contextual">
|
2008-02-09 19:11:18 +03:00
|
|
|
<%= show_and_goto_link(l(:button_update), 'update', :class => 'icon icon-edit', :accesskey => accesskey(:edit)) if authorize_for('issues', 'edit') %>
|
2007-09-02 18:34:13 +04:00
|
|
|
<%= link_to_if_authorized l(:button_log_time), {:controller => 'timelog', :action => 'edit', :issue_id => @issue}, :class => 'icon icon-time' %>
|
|
|
|
<%= 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>
|
|
|
|
|
2007-11-18 17:32:39 +03:00
|
|
|
<div class="issue <%= "status-#{@issue.status.position} priority-#{@issue.priority.position}" %>">
|
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>
|
2008-06-21 14:15:07 +04:00
|
|
|
<td style="width:15%"><b><%=l(:field_status)%>:</b></td><td style="width:35%"><%= @issue.status.name %></td>
|
|
|
|
<td style="width:15%"><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>
|
2008-06-21 14:15:07 +04:00
|
|
|
<td><b><%=l(:field_priority)%>:</b></td><td><%= @issue.priority.name %></td>
|
|
|
|
<td><b><%=l(:field_due_date)%>:</b></td><td><%= format_date(@issue.due_date) %></td>
|
2007-03-12 20:59:02 +03:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2008-06-21 14:15:07 +04:00
|
|
|
<td><b><%=l(:field_assigned_to)%>:</b></td><td><%= @issue.assigned_to ? link_to_user(@issue.assigned_to) : "-" %></td>
|
|
|
|
<td><b><%=l(:field_done_ratio)%>:</b></td><td><%= progress_bar @issue.done_ratio, :width => '80px', :legend => "#{@issue.done_ratio}%" %></td>
|
2007-03-12 20:59:02 +03:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2008-06-21 14:15:07 +04:00
|
|
|
<td><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-06-21 14:15:07 +04:00
|
|
|
<td><b><%=l(:label_spent_time)%>:</b></td>
|
2008-03-15 00:17:09 +03:00
|
|
|
<td><%= @issue.spent_hours > 0 ? (link_to lwr(:label_f_hour, @issue.spent_hours), {:controller => 'timelog', :action => 'details', :project_id => @project, :issue_id => @issue}, :class => 'icon icon-time') : "-" %></td>
|
2007-09-15 18:54:15 +04:00
|
|
|
<% end %>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2008-06-21 14:15:07 +04:00
|
|
|
<td><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-06-21 14:15:07 +04:00
|
|
|
<td><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>
|
|
|
|
<% n = 0
|
|
|
|
for custom_value in @custom_values %>
|
2008-06-21 14:15:07 +04:00
|
|
|
<td valign="top"><b><%= custom_value.custom_field.name %>:</b></td><td valign="top"><%= simple_format(h(show_value(custom_value))) %></td>
|
2007-03-12 20:59:02 +03:00
|
|
|
<% n = n + 1
|
|
|
|
if (n > 1)
|
|
|
|
n = 0 %>
|
|
|
|
</tr><tr>
|
|
|
|
<%end
|
|
|
|
end %>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<hr />
|
2007-04-24 17:57:27 +04:00
|
|
|
|
2008-05-30 21:42:25 +04:00
|
|
|
<div class="contextual">
|
|
|
|
<%= link_to_remote(image_tag('comment.png'),
|
|
|
|
{ :url => {:controller => 'issues', :action => 'reply', :id => @issue} },
|
|
|
|
:title => l(:button_reply)) if authorize_for('issues', 'edit') %>
|
|
|
|
</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
|
|
|
|
2007-09-24 23:26:09 +04:00
|
|
|
<% if @issue.attachments.any? %>
|
|
|
|
<%= link_to_attachments @issue.attachments, :delete_url => (authorize_for('issues', 'destroy_attachment') ? {:controller => 'issues', :action => 'destroy_attachment', :id => @issue} : nil) %>
|
|
|
|
<% end %>
|
|
|
|
|
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 %>
|
|
|
|
|
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
|
|
|
|
2008-03-05 11:25:22 +03:00
|
|
|
<p class="other-formats">
|
|
|
|
<%= l(:label_export_to) %>
|
|
|
|
<span><%= link_to 'Atom', {:format => 'atom', :key => User.current.rss_key}, :class => 'feed' %></span>
|
|
|
|
<span><%= link_to 'PDF', {:format => 'pdf'}, :class => 'pdf' %></span>
|
|
|
|
</p>
|
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 %>
|