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