@@ -1,113 +1,113 | |||
|
1 | 1 | <div class="contextual"> |
|
2 | 2 | <%= l(:label_export_to) %><%= link_to 'PDF', {:action => 'export_pdf', :id => @issue}, :class => 'icon icon-pdf' %> |
|
3 | 3 | </div> |
|
4 | 4 | |
|
5 | 5 | <h2><%= @issue.tracker.name %> #<%= @issue.id %> - <%=h @issue.subject %></h2> |
|
6 | 6 | |
|
7 | 7 | <div class="box"> |
|
8 | 8 | <table width="100%"> |
|
9 | 9 | <tr> |
|
10 | 10 | <td style="width:15%"><b><%=l(:field_status)%> :</b></td><td style="width:35%"><%= @issue.status.name %></td> |
|
11 | 11 | <td style="width:15%"><b><%=l(:field_priority)%> :</b></td><td style="width:35%"><%= @issue.priority.name %></td> |
|
12 | 12 | </tr> |
|
13 | 13 | <tr> |
|
14 | 14 | <td><b><%=l(:field_assigned_to)%> :</b></td><td><%= @issue.assigned_to ? link_to_user(@issue.assigned_to) : "-" %></td> |
|
15 | 15 | <td><b><%=l(:field_category)%> :</b></td><td><%=h @issue.category ? @issue.category.name : "-" %></td> |
|
16 | 16 | </tr> |
|
17 | 17 | <tr> |
|
18 | 18 | <td><b><%=l(:field_author)%> :</b></td><td><%= link_to_user @issue.author %></td> |
|
19 | 19 | <td><b><%=l(:field_start_date)%> :</b></td><td><%= format_date(@issue.start_date) %></td> |
|
20 | 20 | </tr> |
|
21 | 21 | <tr> |
|
22 | 22 | <td><b><%=l(:field_created_on)%> :</b></td><td><%= format_date(@issue.created_on) %></td> |
|
23 | 23 | <td><b><%=l(:field_due_date)%> :</b></td><td><%= format_date(@issue.due_date) %></td> |
|
24 | 24 | </tr> |
|
25 | 25 | <tr> |
|
26 | 26 | <td><b><%=l(:field_updated_on)%> :</b></td><td><%= format_date(@issue.updated_on) %></td> |
|
27 | 27 | <td><b><%=l(:field_done_ratio)%> :</b></td><td><%= @issue.done_ratio %> %</td> |
|
28 | 28 | </tr> |
|
29 | 29 | <tr> |
|
30 | 30 | <td><b><%=l(:field_fixed_version)%> :</b></td><td><%= @issue.fixed_version ? @issue.fixed_version.name : "-" %></td> |
|
31 | 31 | <td><b><%=l(:label_spent_time)%> :</b></td> |
|
32 | 32 | <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> |
|
33 | 33 | </tr> |
|
34 | 34 | <tr> |
|
35 | 35 | <% n = 0 |
|
36 | 36 | for custom_value in @custom_values %> |
|
37 | 37 | <td><b><%= custom_value.custom_field.name %> :</b></td><td><%= h(show_value(custom_value)) %></td> |
|
38 | 38 | <% n = n + 1 |
|
39 | 39 | if (n > 1) |
|
40 | 40 | n = 0 %> |
|
41 | 41 | </tr><tr> |
|
42 | 42 | <%end |
|
43 | 43 | end %> |
|
44 | 44 | </tr> |
|
45 | 45 | </table> |
|
46 | 46 | <hr /> |
|
47 | 47 | <br /> |
|
48 | 48 | |
|
49 | 49 | <b><%=l(:field_description)%> :</b><br /><br /> |
|
50 | 50 | <%= textilizable @issue.description %> |
|
51 | 51 | <br /> |
|
52 | 52 | |
|
53 | 53 | <div class="contextual"> |
|
54 | 54 | <%= link_to_if_authorized l(:button_edit), {:controller => 'issues', :action => 'edit', :id => @issue}, :class => 'icon icon-edit' %> |
|
55 | 55 | <%= link_to_if_authorized l(:button_log_time), {:controller => 'timelog', :action => 'edit', :issue_id => @issue}, :class => 'icon icon-time' %> |
|
56 | 56 | <%= link_to_if_authorized l(:button_move), {:controller => 'projects', :action => 'move_issues', :id => @project, "issue_ids[]" => @issue.id }, :class => 'icon icon-move' %> |
|
57 | 57 | <%= 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' %> |
|
58 | 58 | </div> |
|
59 | 59 | |
|
60 | 60 | <% if authorize_for('issues', 'change_status') and @status_options and !@status_options.empty? %> |
|
61 |
<% form_tag |
|
|
61 | <% form_tag({:controller => 'issues', :action => 'change_status', :id => @issue}) do %> | |
|
62 | 62 | <%=l(:label_change_status)%> : |
|
63 | 63 | <select name="new_status_id"> |
|
64 | 64 | <%= options_from_collection_for_select @status_options, "id", "name" %> |
|
65 | 65 | </select> |
|
66 | 66 | <%= submit_tag l(:button_change) %> |
|
67 | 67 | <% end %> |
|
68 | 68 | <% end %> |
|
69 | 69 | |
|
70 | 70 | </div> |
|
71 | 71 | |
|
72 | 72 | <div id="history" class="box"> |
|
73 | 73 | <h3><%=l(:label_history)%> |
|
74 | 74 | <% if @journals_count > @journals.length %>(<%= l(:label_last_changes, @journals.length) %>)<% end %></h3> |
|
75 | 75 | <%= render :partial => 'history', :locals => { :journals => @journals } %> |
|
76 | 76 | <% if @journals_count > @journals.length %> |
|
77 | 77 | <p><center><small><%= link_to l(:label_change_view_all), :action => 'history', :id => @issue %></small></center></p> |
|
78 | 78 | <% end %> |
|
79 | 79 | </div> |
|
80 | 80 | |
|
81 | 81 | <div class="box"> |
|
82 | 82 | <h3><%=l(:label_attachment_plural)%></h3> |
|
83 | 83 | <table width="100%"> |
|
84 | 84 | <% for attachment in @issue.attachments %> |
|
85 | 85 | <tr> |
|
86 | 86 | <td><%= link_to attachment.filename, { :action => 'download', :id => @issue, :attachment_id => attachment }, :class => 'icon icon-attachment' %> (<%= number_to_human_size(attachment.filesize) %>)</td> |
|
87 | 87 | <td><%= format_date(attachment.created_on) %></td> |
|
88 | 88 | <td><%= attachment.author.display_name %></td> |
|
89 | 89 | <td><div class="contextual"><%= link_to_if_authorized l(:button_delete), {:controller => 'issues', :action => 'destroy_attachment', :id => @issue, :attachment_id => attachment }, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %></div></td> |
|
90 | 90 | </tr> |
|
91 | 91 | <% end %> |
|
92 | 92 | </table> |
|
93 | 93 | <br /> |
|
94 | 94 | <% if authorize_for('issues', 'add_attachment') %> |
|
95 | 95 | <% form_tag({ :controller => 'issues', :action => 'add_attachment', :id => @issue }, :multipart => true, :class => "tabular") do %> |
|
96 | 96 | <p id="attachments_p"><label><%=l(:label_attachment_new)%> |
|
97 | 97 | <%= image_to_function "add.png", "addFileField();return false" %></label> |
|
98 | 98 | <%= file_field_tag 'attachments[]', :size => 30 %> <em>(<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>)</em></p> |
|
99 | 99 | <%= submit_tag l(:button_add) %> |
|
100 | 100 | <% end %> |
|
101 | 101 | <% end %> |
|
102 | 102 | </div> |
|
103 | 103 | |
|
104 | 104 | <% if authorize_for('issues', 'add_note') %> |
|
105 | 105 | <div class="box"> |
|
106 | 106 | <h3><%= l(:label_add_note) %></h3> |
|
107 |
<% form_tag |
|
|
107 | <% form_tag({:controller => 'issues', :action => 'add_note', :id => @issue}, :class => "tabular" ) do %> | |
|
108 | 108 | <p><label for="notes"><%=l(:field_notes)%></label> |
|
109 | 109 | <%= text_area_tag 'notes', '', :cols => 60, :rows => 10, :class => 'wiki-edit' %></p> |
|
110 | 110 | <%= submit_tag l(:button_add) %> |
|
111 | 111 | <% end %> |
|
112 | 112 | </div> |
|
113 | 113 | <% end %> |
General Comments 0
You need to be logged in to leave comments.
Login now