@@ -1,116 +1,118 | |||
|
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 ? link_to_version(@issue.fixed_version) : "-" %></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 valign="top"><b><%= custom_value.custom_field.name %> :</b></td><td><%= simple_format(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 | |
|
48 | 48 | <% if @issue.changesets.any? %> |
|
49 | 49 | <div style="float:right;"> |
|
50 | 50 | <em><%= l(:label_revision_plural) %>: <%= @issue.changesets.collect{|changeset| link_to(changeset.revision, :controller => 'repositories', :action => 'revision', :id => @project, :rev => changeset.revision)}.join(", ") %></em> |
|
51 | 51 | </div> |
|
52 | 52 | <% end %> |
|
53 | 53 | |
|
54 | 54 | <b><%=l(:field_description)%> :</b><br /><br /> |
|
55 | 55 | <%= textilizable @issue.description, :attachments => @issue.attachments %> |
|
56 | 56 | <br /> |
|
57 | 57 | |
|
58 | 58 | <div class="contextual"> |
|
59 | 59 | <%= link_to_if_authorized l(:button_edit), {:controller => 'issues', :action => 'edit', :id => @issue}, :class => 'icon icon-edit' %> |
|
60 | 60 | <%= link_to_if_authorized l(:button_log_time), {:controller => 'timelog', :action => 'edit', :issue_id => @issue}, :class => 'icon icon-time' %> |
|
61 | 61 | <%= watcher_tag(@issue, @logged_in_user) %> |
|
62 | 62 | <%= link_to_if_authorized l(:button_move), {:controller => 'projects', :action => 'move_issues', :id => @project, "issue_ids[]" => @issue.id }, :class => 'icon icon-move' %> |
|
63 | 63 | <%= 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' %> |
|
64 | 64 | </div> |
|
65 | 65 | |
|
66 | 66 | <% if authorize_for('issues', 'change_status') and @status_options and !@status_options.empty? %> |
|
67 | 67 | <% form_tag({:controller => 'issues', :action => 'change_status', :id => @issue}) do %> |
|
68 | 68 | <%=l(:label_change_status)%> : |
|
69 | 69 | <select name="new_status_id"> |
|
70 | 70 | <%= options_from_collection_for_select @status_options, "id", "name" %> |
|
71 | 71 | </select> |
|
72 | 72 | <%= submit_tag l(:button_change) %> |
|
73 | 73 | <% end %> |
|
74 | 74 | <% end %> |
|
75 | 75 | |
|
76 | 76 | </div> |
|
77 | 77 | |
|
78 | 78 | <% if authorize_for('issue_relations', 'new') || @issue.relations.any? %> |
|
79 | 79 | <div id="relations" class="box"> |
|
80 | 80 | <%= render :partial => 'relations' %> |
|
81 | 81 | </div> |
|
82 | 82 | <% end %> |
|
83 | 83 | |
|
84 | <% if @journals_count > 0 %> | |
|
84 | 85 | <div id="history" class="box"> |
|
85 | 86 | <h3><%=l(:label_history)%> |
|
86 | 87 | <% if @journals_count > @journals.length %>(<%= l(:label_last_changes, @journals.length) %>)<% end %></h3> |
|
87 | 88 | <%= render :partial => 'history', :locals => { :journals => @journals } %> |
|
88 | 89 | <% if @journals_count > @journals.length %> |
|
89 | 90 | <p><center><small><%= link_to l(:label_change_view_all), :action => 'history', :id => @issue %></small></center></p> |
|
90 | 91 | <% end %> |
|
91 | 92 | </div> |
|
93 | <% end %> | |
|
92 | 94 | |
|
93 | 95 | <div class="box"> |
|
94 | 96 | <h3><%=l(:label_attachment_plural)%></h3> |
|
95 | 97 | <%= link_to_attachments @issue.attachments, :delete_url => (authorize_for('issues', 'destroy_attachment') ? {:controller => 'issues', :action => 'destroy_attachment', :id => @issue} : nil) %> |
|
96 | 98 | |
|
97 | 99 | <% if authorize_for('issues', 'add_attachment') %> |
|
98 | 100 | <p><%= toggle_link l(:label_attachment_new), "add_attachment_form" %></p> |
|
99 | 101 | <% form_tag({ :controller => 'issues', :action => 'add_attachment', :id => @issue }, :multipart => true, :class => "tabular", :id => "add_attachment_form", :style => "display:none;") do %> |
|
100 | 102 | <%= render :partial => 'attachments/form' %> |
|
101 | 103 | <%= submit_tag l(:button_add) %> |
|
102 | 104 | <% end %> |
|
103 | 105 | <% end %> |
|
104 | 106 | </div> |
|
105 | 107 | |
|
106 | 108 | <% if authorize_for('issues', 'add_note') %> |
|
107 | 109 | <div class="box"> |
|
108 | 110 | <h3><%= l(:label_add_note) %></h3> |
|
109 | 111 | <% form_tag({:controller => 'issues', :action => 'add_note', :id => @issue}, :class => "tabular" ) do %> |
|
110 | 112 | <p><label for="notes"><%=l(:field_notes)%></label> |
|
111 | 113 | <%= text_area_tag 'notes', '', :cols => 60, :rows => 10, :class => 'wiki-edit' %></p> |
|
112 | 114 | <%= wikitoolbar_for 'notes' %> |
|
113 | 115 | <%= submit_tag l(:button_add) %> |
|
114 | 116 | <% end %> |
|
115 | 117 | </div> |
|
116 | 118 | <% end %> |
General Comments 0
You need to be logged in to leave comments.
Login now