changeset 256:e0dc03c8d745 feature_80

Layout adjustments
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Thu, 03 Mar 2011 19:52:16 +0000
parents a7002a8f0eca
children 3ecf99348b9f
files app/views/files/index.html.erb public/stylesheets/application.css
diffstat 2 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/app/views/files/index.html.erb	Thu Mar 03 19:35:02 2011 +0000
+++ b/app/views/files/index.html.erb	Thu Mar 03 19:52:16 2011 +0000
@@ -9,7 +9,7 @@
 
 <table class="list files">
   <thead><tr>
-    <%= sort_header_tag('active', :caption => l(:label_new)) %>
+    <%= sort_header_tag('active', :caption => l(:field_active)) %>
     <%= sort_header_tag('filename', :caption => l(:field_filename)) %>
     <%= sort_header_tag('created_on', :caption => l(:label_date), :default_order => 'desc') %>
     <%= sort_header_tag('size', :caption => l(:field_filesize), :default_order => 'desc') %>
@@ -29,13 +29,13 @@
 	<% end -%>
   <% container.attachments.each do |file| %>		
   <tr class="file <%= cycle("odd", "even") %>">
-    <td class="active">
-      <% if active_change_allowed -%>
-        <%= check_box_tag 'active', file.id, file.active? %>
-      <% else -%> 
-        <%= image_tag('fav.png') if file.active? %>
-      <% end -%>
-    </td>
+    <td class="active"><%=
+       if active_change_allowed
+         check_box_tag 'active', file.id, file.active?
+       else
+         image_tag('fav.png') if file.active?
+       end
+    %></td>
     <td class="filename <%= "active" if file.active? %>"><%= link_to_attachment file, :download => true, :title => file.description %></td>
     <td class="created_on"><%= format_time(file.created_on) %></td>
     <td class="filesize"><%= number_to_human_size(file.filesize) %></td>
--- a/public/stylesheets/application.css	Thu Mar 03 19:35:02 2011 +0000
+++ b/public/stylesheets/application.css	Thu Mar 03 19:52:16 2011 +0000
@@ -157,7 +157,7 @@
 tr.changeset td.committed_on { text-align: center; width: 15%; }
 
 table.files tr.file td { text-align: center; }
-table.files tr.file td.filename { text-align: left; padding-left: 24px; }
+table.files tr.file td.filename { text-align: left; }
 table.files tr.file td.digest { font-size: 80%; }
 
 table.members td.roles, table.memberships td.roles { width: 45%; }