2006-07-29 23:54:22 +04:00
|
|
|
<h2><%= @issue.tracker.name %> #<%= @issue.id %> - <%= @issue.subject %></h2>
|
2006-10-22 18:47:25 +04:00
|
|
|
<div class="topright">
|
|
|
|
<small>
|
2006-12-10 23:18:13 +03:00
|
|
|
<%= l(:label_export_to) %>
|
2006-10-22 18:47:25 +04:00
|
|
|
<%= link_to 'PDF', :action => 'export_pdf', :id => @issue %>
|
|
|
|
</small>
|
|
|
|
</div>
|
2006-06-28 22:11:03 +04:00
|
|
|
|
|
|
|
<div class="box">
|
2006-11-05 19:49:27 +03:00
|
|
|
<table width="100%">
|
|
|
|
<tr>
|
|
|
|
<td width="15%"><b><%=l(:field_status)%> :</b></td><td width="35%"><%= @issue.status.name %></td>
|
|
|
|
<td width="15%"><b><%=l(:field_priority)%> :</b></td><td width="35%"><%= @issue.priority.name %></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2006-11-12 21:50:30 +03:00
|
|
|
<td><b><%=l(:field_assigned_to)%> :</b></td><td><%= @issue.assigned_to ? @issue.assigned_to.name : "-" %></td>
|
2006-11-05 19:49:27 +03:00
|
|
|
<td><b><%=l(:field_category)%> :</b></td><td><%= @issue.category ? @issue.category.name : "-" %></td>
|
|
|
|
</tr>
|
2006-11-12 21:50:30 +03:00
|
|
|
<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>
|
2006-11-05 19:49:27 +03:00
|
|
|
<tr>
|
|
|
|
<td><b><%=l(:field_created_on)%> :</b></td><td><%= format_date(@issue.created_on) %></td>
|
2006-11-12 21:50:30 +03:00
|
|
|
<td><b><%=l(:field_due_date)%> :</b></td><td><%= format_date(@issue.due_date) %></td>
|
2006-11-05 19:49:27 +03:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><b><%=l(:field_updated_on)%> :</b></td><td><%= format_date(@issue.updated_on) %></td>
|
2006-11-12 21:50:30 +03:00
|
|
|
<td><b><%=l(:field_done_ratio)%> :</b></td><td><%= @issue.done_ratio %> %</td>
|
2006-11-05 19:49:27 +03:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<% n = 0
|
|
|
|
for custom_value in @custom_values %>
|
|
|
|
<td><b><%= custom_value.custom_field.name %> :</b></td><td><%= show_value custom_value %></td>
|
|
|
|
<% n = n + 1
|
|
|
|
if (n > 1)
|
|
|
|
n = 0 %>
|
|
|
|
</tr><tr>
|
|
|
|
<%end
|
|
|
|
end %>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<hr />
|
|
|
|
<br />
|
2006-06-28 22:11:03 +04:00
|
|
|
|
2006-11-05 19:49:27 +03:00
|
|
|
<b><%=l(:field_description)%> :</b><br /><br />
|
2006-11-12 21:50:30 +03:00
|
|
|
<%= textilizable @issue.description %>
|
2006-11-28 01:31:14 +03:00
|
|
|
<br />
|
|
|
|
<div style="float:left;">
|
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-10-22 18:47:25 +04:00
|
|
|
<%=l(:label_change_status)%> :
|
2006-11-28 01:31:14 +03:00
|
|
|
<select name="new_status_id">
|
2006-06-28 22:11:03 +04:00
|
|
|
<%= 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 %>
|
|
|
|
|
2006-10-15 18:33:04 +04:00
|
|
|
<% if authorize_for('projects', 'move_issues') %>
|
|
|
|
<%= start_form_tag ({:controller => 'projects', :action => 'move_issues', :id => @project} ) %>
|
|
|
|
<%= hidden_field_tag "issue_ids[]", @issue.id %>
|
|
|
|
<%= submit_tag l(:button_move) %>
|
|
|
|
<%= end_form_tag %>
|
|
|
|
|
|
|
|
<% end %>
|
2006-11-28 01:31:14 +03:00
|
|
|
</div>
|
|
|
|
<div style="float:right;">
|
2006-06-28 22:11:03 +04:00
|
|
|
<% 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 %>
|
2006-11-28 01:31:14 +03:00
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
2006-06-28 22:11:03 +04:00
|
|
|
</div>
|
|
|
|
|
2006-11-28 01:31:14 +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>
|
2006-06-28 22:11:03 +04:00
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<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-11-12 21:50:30 +03:00
|
|
|
<td><%= image_tag('attachment') %> <%= 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') %>
|
2006-11-05 21:38:20 +03:00
|
|
|
<%= start_form_tag ({ :controller => 'issues', :action => 'add_attachment', :id => @issue }, :multipart => true, :class => "tabular") %>
|
2006-11-12 21:50:30 +03:00
|
|
|
<p id="attachments_p"><label><%=l(:label_attachment_new)%>
|
|
|
|
<%= link_to_function image_tag('add'), "addFileField()" %></label>
|
2006-11-05 21:38:20 +03:00
|
|
|
<%= file_field_tag 'attachments[]', :size => 30 %></p>
|
2006-07-29 23:54:22 +04:00
|
|
|
<%= submit_tag l(:button_add) %>
|
2006-06-28 22:11:03 +04:00
|
|
|
<%= end_form_tag %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
|
2006-11-05 21:38:20 +03:00
|
|
|
<% if authorize_for('issues', 'add_note') %>
|
|
|
|
<div class="box">
|
|
|
|
<h3><%= l(:label_add_note) %></h3>
|
|
|
|
<%= start_form_tag ({:controller => 'issues', :action => 'add_note', :id => @issue}, :class => "tabular" ) %>
|
2006-11-28 01:31:14 +03:00
|
|
|
<p><label for="notes"><%=l(:field_notes)%></label>
|
|
|
|
<%= text_area_tag 'notes', '', :cols => 60, :rows => 10 %></p>
|
2006-11-05 21:38:20 +03:00
|
|
|
<%= submit_tag l(:button_add) %>
|
2006-11-28 01:31:14 +03:00
|
|
|
<%= end_form_tag %>
|
2006-11-05 21:38:20 +03:00
|
|
|
</div>
|
|
|
|
<% end %>
|