##// END OF EJS Templates
Slight change to issues/show....
Jean-Philippe Lang -
r751:24b000fb242e
parent child
Show More
@@ -3,7 +3,7
3 <p><%= link_to attachment.filename, {:controller => 'attachments', :action => 'download', :id => attachment }, :class => 'icon icon-attachment' %>
3 <p><%= link_to attachment.filename, {:controller => 'attachments', :action => 'download', :id => attachment }, :class => 'icon icon-attachment' %>
4 (<%= number_to_human_size attachment.filesize %>)
4 (<%= number_to_human_size attachment.filesize %>)
5 <% unless options[:no_author] %>
5 <% unless options[:no_author] %>
6 <em><%= attachment.author.name %>, <%= format_date(attachment.created_on) %></em>
6 <span class="author"><%= attachment.author.name %>, <%= format_date(attachment.created_on) %></span>
7 <% end %>
7 <% end %>
8 <% if options[:delete_url] %>
8 <% if options[:delete_url] %>
9 <%= link_to image_tag('delete.png'), options[:delete_url].update({:attachment_id => attachment}), :confirm => l(:text_are_you_sure), :method => :post %>
9 <%= link_to image_tag('delete.png'), options[:delete_url].update({:attachment_id => attachment}), :confirm => l(:text_are_you_sure), :method => :post %>
@@ -62,9 +62,13 end %>
62 </div>
62 </div>
63 <% end %>
63 <% end %>
64
64
65 <p><b><%=l(:field_description)%></b></p>
65 <p><strong><%=l(:field_description)%></strong></p>
66 <%= textilizable @issue.description, :attachments => @issue.attachments %>
66 <%= textilizable @issue.description, :attachments => @issue.attachments %>
67
67
68 <% if @issue.attachments.any? %>
69 <%= link_to_attachments @issue.attachments, :delete_url => (authorize_for('issues', 'destroy_attachment') ? {:controller => 'issues', :action => 'destroy_attachment', :id => @issue} : nil) %>
70 <% end %>
71
68 <% if authorize_for('issue_relations', 'new') || @issue.relations.any? %>
72 <% if authorize_for('issue_relations', 'new') || @issue.relations.any? %>
69 <hr />
73 <hr />
70 <div id="relations">
74 <div id="relations">
@@ -72,10 +76,6 end %>
72 </div>
76 </div>
73 <% end %>
77 <% end %>
74
78
75 <% if @issue.attachments.any? %>
76 <%= link_to_attachments @issue.attachments, :delete_url => (authorize_for('issues', 'destroy_attachment') ? {:controller => 'issues', :action => 'destroy_attachment', :id => @issue} : nil) %>
77 <% end %>
78
79 </div>
79 </div>
80
80
81 <% if authorize_for('issues', 'change_status') and @status_options and !@status_options.empty? %>
81 <% if authorize_for('issues', 'change_status') and @status_options and !@status_options.empty? %>
@@ -131,6 +131,8 margin*/
131 .required {color: #bb0000;}
131 .required {color: #bb0000;}
132 .summary {font-style: italic;}
132 .summary {font-style: italic;}
133
133
134 div.attachments p { margin:4px 0 2px 0; }
135
134 /***** Flash & error messages ****/
136 /***** Flash & error messages ****/
135 #flash div, #errorExplanation, .nodata {
137 #flash div, #errorExplanation, .nodata {
136 padding: 4px 4px 4px 30px;
138 padding: 4px 4px 4px 30px;
General Comments 0
You need to be logged in to leave comments. Login now