<%=_(@issue.tracker.name)%> #<%= @issue.id %> - <%= @issue.subject %>

<%=_('Status')%>: <%= @issue.status.name %>

<%=_('Priority')%>: <%= @issue.priority.name %>

<%=_('Category')%>: <%= @issue.category.name unless @issue.category_id.nil? %>

<%=_('Author')%>: <%= @issue.author.display_name %>

<%=_('Assigned to')%>: <%= @issue.assigned_to.display_name unless @issue.assigned_to.nil? %>

<%=_('Subject')%>: <%= @issue.subject %>

<%=_('Description')%>: <%= simple_format auto_link @issue.description %>

<%=_('Created on')%>: <%= format_date(@issue.created_on) %>

<% for custom_value in @custom_values %>

<%= custom_value.custom_field.name %>: <%= show_value custom_value %>

<% end %> <% if authorize_for('issues', 'edit') %> <%= start_form_tag ({:controller => 'issues', :action => 'edit', :id => @issue}, :method => "get" ) %> <%= submit_tag _('Edit') %> <%= 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}) %> <%= submit_tag _ "Update..." %> <%= end_form_tag %>    <% end %> <% if authorize_for('issues', 'destroy') %> <%= start_form_tag ({:controller => 'issues', :action => 'destroy', :id => @issue} ) %> <%= submit_tag _ "Delete" %> <%= end_form_tag %>    <% end %>

<%=_('History')%>

<% for history in @issue.histories.find(:all, :include => :author) %> <% if history.notes? %> <% end %> <% end %>
<%= format_date(history.created_on) %> <%= history.author.display_name %> <%= history.status.name %>
<%= history.notes %>

<%=_('Attachments')%>

<% for attachment in @issue.attachments %> <% if authorize_for('issues', 'destroy_attachment') %> <% end %> <% end %>
<%= link_to attachment.filename, :action => 'download', :id => @issue, :attachment_id => attachment %> (<%= human_size(attachment.filesize) %>) <%= format_date(attachment.created_on) %> <%= attachment.author.display_name %> <%= start_form_tag :action => 'destroy_attachment', :id => @issue, :attachment_id => attachment %> <%= submit_tag _('Delete'), :class => "button-small" %> <%= end_form_tag %>

<% if authorize_for('issues', 'add_attachment') %> <%= start_form_tag ({ :controller => 'issues', :action => 'add_attachment', :id => @issue }, :multipart => true) %> <%=_('Add file')%>: <%= file_field 'attachment', 'file' %> <%= submit_tag _('Add') %> <%= end_form_tag %> <% end %>