2006-07-29 23:54:22 +04:00
|
|
|
<h2><%= @issue.tracker.name %> #<%= @issue.id %> - <%= @issue.subject %></h2>
|
2006-06-28 22:11:03 +04:00
|
|
|
|
|
|
|
<div class="box">
|
2006-07-29 23:54:22 +04:00
|
|
|
<p>
|
|
|
|
<b><%=l(:field_status)%> :</b> <%= @issue.status.name %>    
|
|
|
|
<b><%=l(:field_priority)%> :</b> <%= @issue.priority.name %>    
|
|
|
|
<b><%=l(:field_assigned_to)%> :</b> <%= @issue.assigned_to ? @issue.assigned_to.display_name : "-" %>    
|
|
|
|
<b><%=l(:field_category)%> :</b> <%= @issue.category ? @issue.category.name : "-" %>
|
|
|
|
</p>
|
|
|
|
<p><b><%=l(:field_author)%> :</b> <%= @issue.author.display_name %></p>
|
|
|
|
<p><b><%=l(:field_subject)%> :</b> <%= @issue.subject %></p>
|
|
|
|
<p><b><%=l(:field_description)%> :</b> <%= simple_format auto_link @issue.description %></p>
|
|
|
|
<p><b><%=l(:field_due_date)%> :</b> <%= format_date(@issue.due_date) %></p>
|
|
|
|
<p><b><%=l(:field_created_on)%> :</b> <%= format_date(@issue.created_on) %></p>
|
2006-06-28 22:11:03 +04:00
|
|
|
|
2006-07-29 13:32:58 +04:00
|
|
|
<% for custom_value in @custom_values %>
|
2006-07-29 23:54:22 +04:00
|
|
|
<p><b><%= custom_value.custom_field.name %></b> : <%= show_value custom_value %></p>
|
2006-07-29 13:32:58 +04:00
|
|
|
<% end %>
|
|
|
|
|
2006-06-28 22:11:03 +04:00
|
|
|
<% if authorize_for('issues', 'edit') %>
|
|
|
|
<%= start_form_tag ({:controller => 'issues', :action => 'edit', :id => @issue}, :method => "get" ) %>
|
2006-07-29 23:54:22 +04:00
|
|
|
<%= submit_tag l(:button_edit) %>
|
2006-06-28 22:11:03 +04:00
|
|
|
<%= end_form_tag %>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% if authorize_for('issues', 'change_status') and @status_options and !@status_options.empty? %>
|
|
|
|
<%= start_form_tag ({:controller => 'issues', :action => 'change_status', :id => @issue}) %>
|
2006-07-29 23:54:22 +04:00
|
|
|
<label for="history_status_id"><%=l(:label_change_status)%> :</label>
|
2006-06-28 22:11:03 +04:00
|
|
|
<select name="history[status_id]">
|
|
|
|
<%= options_from_collection_for_select @status_options, "id", "name" %>
|
|
|
|
</select>
|
2006-07-29 23:54:22 +04:00
|
|
|
<%= submit_tag l(:button_change) %>
|
2006-06-28 22:11:03 +04:00
|
|
|
<%= end_form_tag %>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% if authorize_for('issues', 'destroy') %>
|
|
|
|
<%= start_form_tag ({:controller => 'issues', :action => 'destroy', :id => @issue} ) %>
|
2006-07-29 23:54:22 +04:00
|
|
|
<%= submit_tag l(:button_delete) %>
|
2006-06-28 22:11:03 +04:00
|
|
|
<%= end_form_tag %>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="splitcontentleft">
|
|
|
|
<div class="box">
|
2006-07-29 23:54:22 +04:00
|
|
|
<h3><%=l(:label_history)%></h3>
|
2006-06-28 22:11:03 +04:00
|
|
|
<table width="100%">
|
2006-09-09 20:07:02 +04:00
|
|
|
<% for history in @issue.histories.find(:all, :include => [:author, :status]) %>
|
2006-06-28 22:11:03 +04:00
|
|
|
<tr>
|
|
|
|
<td><%= format_date(history.created_on) %></td>
|
|
|
|
<td><%= history.author.display_name %></td>
|
|
|
|
<td><b><%= history.status.name %></b></td>
|
|
|
|
</tr>
|
|
|
|
<% if history.notes? %>
|
|
|
|
<tr><td colspan=3><div class="notes"><%= history.notes %></td></tr>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="splitcontentright">
|
|
|
|
<div class="box">
|
2006-07-29 23:54:22 +04:00
|
|
|
<h3><%=l(:label_attachment_plural)%></h3>
|
2006-06-28 22:11:03 +04:00
|
|
|
<table width="100%">
|
|
|
|
<% for attachment in @issue.attachments %>
|
|
|
|
<tr>
|
2006-07-09 20:30:01 +04:00
|
|
|
<td><%= link_to attachment.filename, :action => 'download', :id => @issue, :attachment_id => attachment %> (<%= human_size(attachment.filesize) %>)</td>
|
2006-06-28 22:11:03 +04:00
|
|
|
<td><%= format_date(attachment.created_on) %></td>
|
|
|
|
<td><%= attachment.author.display_name %></td>
|
|
|
|
<% if authorize_for('issues', 'destroy_attachment') %>
|
|
|
|
<td>
|
|
|
|
<%= start_form_tag :action => 'destroy_attachment', :id => @issue, :attachment_id => attachment %>
|
2006-07-29 23:54:22 +04:00
|
|
|
<%= submit_tag l(:button_delete), :class => "button-small" %>
|
2006-06-28 22:11:03 +04:00
|
|
|
<%= end_form_tag %>
|
|
|
|
</td>
|
|
|
|
<% end %>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</table>
|
|
|
|
<br />
|
|
|
|
<% if authorize_for('issues', 'add_attachment') %>
|
|
|
|
<%= start_form_tag ({ :controller => 'issues', :action => 'add_attachment', :id => @issue }, :multipart => true) %>
|
2006-07-29 23:54:22 +04:00
|
|
|
<%=l(:label_attachment_new)%>: <%= file_field 'attachment', 'file' %>
|
|
|
|
<%= submit_tag l(:button_add) %>
|
2006-06-28 22:11:03 +04:00
|
|
|
<%= end_form_tag %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|