2007-03-12 20:59:02 +03:00
|
|
|
<div class="contextual">
|
|
|
|
<%= l(:label_export_to) %><%= link_to 'PDF', {:action => 'export_pdf', :id => @issue}, :class => 'icon icon-pdf' %>
|
|
|
|
</div>
|
2006-06-28 22:11:03 +04:00
|
|
|
|
2007-03-12 20:59:02 +03:00
|
|
|
<h2><%= @issue.tracker.name %> #<%= @issue.id %> - <%=h @issue.subject %></h2>
|
|
|
|
|
|
|
|
<div class="box">
|
|
|
|
<table width="100%">
|
|
|
|
<tr>
|
|
|
|
<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_priority)%> :</b></td><td style="width:35%"><%= @issue.priority.name %></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2007-04-08 21:44:54 +04:00
|
|
|
<td><b><%=l(:field_assigned_to)%> :</b></td><td><%= @issue.assigned_to ? link_to_user(@issue.assigned_to) : "-" %></td>
|
2007-03-12 20:59:02 +03:00
|
|
|
<td><b><%=l(:field_category)%> :</b></td><td><%=h @issue.category ? @issue.category.name : "-" %></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><b><%=l(:field_author)%> :</b></td><td><%= link_to_user @issue.author %></td>
|
|
|
|
<td><b><%=l(:field_start_date)%> :</b></td><td><%= format_date(@issue.start_date) %></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><b><%=l(:field_created_on)%> :</b></td><td><%= format_date(@issue.created_on) %></td>
|
|
|
|
<td><b><%=l(:field_due_date)%> :</b></td><td><%= format_date(@issue.due_date) %></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><b><%=l(:field_updated_on)%> :</b></td><td><%= format_date(@issue.updated_on) %></td>
|
|
|
|
<td><b><%=l(:field_done_ratio)%> :</b></td><td><%= @issue.done_ratio %> %</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2007-06-13 03:07:00 +04:00
|
|
|
<td><b><%=l(:field_fixed_version)%> :</b></td><td><%= @issue.fixed_version ? link_to_version(@issue.fixed_version) : "-" %></td>
|
2007-03-23 15:22:31 +03:00
|
|
|
<td><b><%=l(:label_spent_time)%> :</b></td>
|
|
|
|
<td><%= @issue.spent_hours > 0 ? (link_to lwr(:label_f_hour, @issue.spent_hours), {:controller => 'timelog', :action => 'details', :issue_id => @issue}, :class => 'icon icon-time') : "-" %></td>
|
2007-03-12 20:59:02 +03:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<% n = 0
|
|
|
|
for custom_value in @custom_values %>
|
2007-06-27 23:12:52 +04:00
|
|
|
<td valign="top"><b><%= custom_value.custom_field.name %> :</b></td><td><%= 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
|
|
|
|
|
|
|
<% if @issue.changesets.any? %>
|
|
|
|
<div style="float:right;">
|
|
|
|
<em><%= l(:label_revision_plural) %>: <%= @issue.changesets.collect{|changeset| link_to(changeset.revision, :controller => 'repositories', :action => 'revision', :id => @project, :rev => changeset.revision)}.join(", ") %></em>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2007-03-12 20:59:02 +03:00
|
|
|
|
|
|
|
<b><%=l(:field_description)%> :</b><br /><br />
|
2007-05-26 19:42:37 +04:00
|
|
|
<%= textilizable @issue.description, :attachments => @issue.attachments %>
|
2007-03-12 20:59:02 +03:00
|
|
|
<br />
|
|
|
|
|
|
|
|
<div class="contextual">
|
|
|
|
<%= link_to_if_authorized l(:button_edit), {:controller => 'issues', :action => 'edit', :id => @issue}, :class => 'icon icon-edit' %>
|
2007-03-23 15:22:31 +03:00
|
|
|
<%= link_to_if_authorized l(:button_log_time), {:controller => 'timelog', :action => 'edit', :issue_id => @issue}, :class => 'icon icon-time' %>
|
2007-05-13 23:43:35 +04:00
|
|
|
<%= watcher_tag(@issue, @logged_in_user) %>
|
2007-03-12 20:59:02 +03:00
|
|
|
<%= link_to_if_authorized l(:button_move), {:controller => 'projects', :action => 'move_issues', :id => @project, "issue_ids[]" => @issue.id }, :class => 'icon icon-move' %>
|
|
|
|
<%= 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' %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<% if authorize_for('issues', 'change_status') and @status_options and !@status_options.empty? %>
|
2007-04-20 14:23:25 +04:00
|
|
|
<% form_tag({:controller => 'issues', :action => 'change_status', :id => @issue}) do %>
|
2007-03-12 20:59:02 +03:00
|
|
|
<%=l(:label_change_status)%> :
|
|
|
|
<select name="new_status_id">
|
|
|
|
<%= options_from_collection_for_select @status_options, "id", "name" %>
|
|
|
|
</select>
|
|
|
|
<%= submit_tag l(:button_change) %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2007-05-05 17:22:27 +04:00
|
|
|
<% if authorize_for('issue_relations', 'new') || @issue.relations.any? %>
|
|
|
|
<div id="relations" class="box">
|
|
|
|
<%= render :partial => 'relations' %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
2007-08-01 22:59:39 +04:00
|
|
|
<% if @journals_count > 0 %>
|
2007-03-12 20:59:02 +03:00
|
|
|
<div id="history" class="box">
|
|
|
|
<h3><%=l(:label_history)%>
|
|
|
|
<% if @journals_count > @journals.length %>(<%= l(:label_last_changes, @journals.length) %>)<% end %></h3>
|
|
|
|
<%= render :partial => 'history', :locals => { :journals => @journals } %>
|
|
|
|
<% if @journals_count > @journals.length %>
|
|
|
|
<p><center><small><%= link_to l(:label_change_view_all), :action => 'history', :id => @issue %></small></center></p>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
2007-08-01 22:59:39 +04:00
|
|
|
<% end %>
|
2007-03-12 20:59:02 +03:00
|
|
|
|
|
|
|
<div class="box">
|
|
|
|
<h3><%=l(:label_attachment_plural)%></h3>
|
2007-05-26 19:42:37 +04:00
|
|
|
<%= link_to_attachments @issue.attachments, :delete_url => (authorize_for('issues', 'destroy_attachment') ? {:controller => 'issues', :action => 'destroy_attachment', :id => @issue} : nil) %>
|
|
|
|
|
2007-03-12 20:59:02 +03:00
|
|
|
<% if authorize_for('issues', 'add_attachment') %>
|
2007-05-26 19:42:37 +04:00
|
|
|
<p><%= toggle_link l(:label_attachment_new), "add_attachment_form" %></p>
|
|
|
|
<% form_tag({ :controller => 'issues', :action => 'add_attachment', :id => @issue }, :multipart => true, :class => "tabular", :id => "add_attachment_form", :style => "display:none;") do %>
|
|
|
|
<%= render :partial => 'attachments/form' %>
|
|
|
|
<%= submit_tag l(:button_add) %>
|
|
|
|
<% end %>
|
2007-03-12 20:59:02 +03:00
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<% if authorize_for('issues', 'add_note') %>
|
|
|
|
<div class="box">
|
|
|
|
<h3><%= l(:label_add_note) %></h3>
|
2007-04-20 14:23:25 +04:00
|
|
|
<% form_tag({:controller => 'issues', :action => 'add_note', :id => @issue}, :class => "tabular" ) do %>
|
2007-03-12 20:59:02 +03:00
|
|
|
<p><label for="notes"><%=l(:field_notes)%></label>
|
|
|
|
<%= text_area_tag 'notes', '', :cols => 60, :rows => 10, :class => 'wiki-edit' %></p>
|
2007-06-27 23:12:52 +04:00
|
|
|
<%= wikitoolbar_for 'notes' %>
|
2007-03-12 20:59:02 +03:00
|
|
|
<%= submit_tag l(:button_add) %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
2006-06-28 22:11:03 +04:00
|
|
|
<% end %>
|