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