diff --git a/app/views/issues/_edit.html.erb b/app/views/issues/_edit.html.erb index 954f606f3..723bc66bb 100644 --- a/app/views/issues/_edit.html.erb +++ b/app/views/issues/_edit.html.erb @@ -47,17 +47,28 @@ <% if @issue.attachments.any? && @issue.safe_attribute?('deleted_attachment_ids') %>
<%= link_to l(:label_edit_attachments), '#', :onclick => "$('#existing-attachments').toggle(); return false;" %>
+ <% @issue.attachments.each do |attachment| %> - - <%= text_field_tag '', attachment.filename, :class => "icon icon-attachment filename", :disabled => true %> - - + + + + + + <% end %> +
+ <%= attachment.filename %> + (<%= number_to_human_size attachment.filesize %>) + <%= attachment.description unless attachment.description.blank? %> + <%= attachment.author %>, <%= format_time(attachment.created_on) %> + + +

<% end %> diff --git a/app/views/wiki/edit.html.erb b/app/views/wiki/edit.html.erb index c501d6e28..7c10af7a4 100644 --- a/app/views/wiki/edit.html.erb +++ b/app/views/wiki/edit.html.erb @@ -39,17 +39,28 @@ <% if @page.attachments.any? && @page.safe_attribute?('deleted_attachment_ids') %>
<%= link_to l(:label_edit_attachments), '#', :onclick => "$('#existing-attachments').toggle(); return false;" %>
+ <% @page.attachments.each do |attachment| %> - - <%= text_field_tag '', attachment.filename, :class => "icon icon-attachment filename", :disabled => true %> - - + + + + + + <% end %> +
+ <%= attachment.filename %> + (<%= number_to_human_size attachment.filesize %>) + <%= attachment.description unless attachment.description.blank? %> + <%= attachment.author %>, <%= format_time(attachment.created_on) %> + + +

<% end %> diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index 0c4102459..d6e41c522 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -921,14 +921,17 @@ span.required {color: #bb0000;} .check_box_group.bool_cf {border:0; background:inherit;} .check_box_group.bool_cf label {display: inline;} -.attachments_fields input.description, #existing-attachments input.description {margin-left:4px; width:340px;} -.attachments_fields>span, #existing-attachments>span {display:block; white-space:nowrap;} -.attachments_fields input.filename, #existing-attachments .filename {border:0; width:250px; color:#555; background-color:inherit; } +.attachments_fields input.description {margin-left:4px; width:340px;} +.attachments_fields>span {display:block; white-space:nowrap;} +.attachments_fields input.filename {border:0; width:250px; color:#555; background-color:inherit; } .tabular input.filename {max-width:75% !important;} .attachments_fields input.filename {height:1.8em;} .attachments_fields .ajax-waiting input.filename {background:url(../images/hourglass.png) no-repeat 0px 50%;} .attachments_fields .ajax-loading input.filename {background:url(../images/loading.gif) no-repeat 0px 50%;} .attachments_fields div.ui-progressbar { width: 100px; height:14px; margin: 2px 0 -5px 8px; display: inline-block; } +.existing-attachment .filename {display:block; float:left; max-width:250px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis;} +.existing-attachment .size {margin-left:2px;} +.existing-attachment .description {display:block; max-width:200px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis;} a.remove-upload:hover {text-decoration:none !important;} .existing-attachment.deleted .filename {text-decoration:line-through; color:#999 !important;}