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