* Adds a link to the version * Moves styles to the stylesheet * Indent the files git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2515 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
0123f7cde0
commit
7342a00e0a
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
<% delete_allowed = User.current.allowed_to?(:manage_files, @project) %>
|
<% delete_allowed = User.current.allowed_to?(:manage_files, @project) %>
|
||||||
|
|
||||||
<table class="list">
|
<table class="list files">
|
||||||
<thead><tr>
|
<thead><tr>
|
||||||
<%= sort_header_tag('filename', :caption => l(:field_filename)) %>
|
<%= sort_header_tag('filename', :caption => l(:field_filename)) %>
|
||||||
<%= sort_header_tag('created_on', :caption => l(:label_date), :default_order => 'desc') %>
|
<%= sort_header_tag('created_on', :caption => l(:label_date), :default_order => 'desc') %>
|
||||||
|
@ -19,15 +19,19 @@
|
||||||
<% @containers.each do |container| %>
|
<% @containers.each do |container| %>
|
||||||
<% next if container.attachments.empty? -%>
|
<% next if container.attachments.empty? -%>
|
||||||
<% if container.is_a?(Version) -%>
|
<% if container.is_a?(Version) -%>
|
||||||
<tr><th colspan="6" align="left"><span class="icon icon-package"><b><%=h container %></b></span></th></tr>
|
<tr>
|
||||||
|
<th colspan="6" align="left">
|
||||||
|
<%= link_to(h(container), {:controller => 'versions', :action => 'show', :id => container}, :class => "icon icon-package") %>
|
||||||
|
</th>
|
||||||
|
</tr>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
<% container.attachments.each do |file| %>
|
<% container.attachments.each do |file| %>
|
||||||
<tr class="<%= cycle("odd", "even") %>">
|
<tr class="file <%= cycle("odd", "even") %>">
|
||||||
<td><%= link_to_attachment file, :download => true, :title => file.description %></td>
|
<td class="filename"><%= link_to_attachment file, :download => true, :title => file.description %></td>
|
||||||
<td align="center"><%= format_time(file.created_on) %></td>
|
<td class="created_on"><%= format_time(file.created_on) %></td>
|
||||||
<td align="center"><%= number_to_human_size(file.filesize) %></td>
|
<td class="filesize"><%= number_to_human_size(file.filesize) %></td>
|
||||||
<td align="center"><%= file.downloads %></td>
|
<td class="downloads"><%= file.downloads %></td>
|
||||||
<td align="center"><small><%= file.digest %></small></td>
|
<td class="digest"><%= file.digest %></td>
|
||||||
<td align="center">
|
<td align="center">
|
||||||
<%= link_to(image_tag('delete.png'), {:controller => 'attachments', :action => 'destroy', :id => file},
|
<%= link_to(image_tag('delete.png'), {:controller => 'attachments', :action => 'destroy', :id => file},
|
||||||
:confirm => l(:text_are_you_sure), :method => :post) if delete_allowed %>
|
:confirm => l(:text_are_you_sure), :method => :post) if delete_allowed %>
|
||||||
|
|
|
@ -110,6 +110,10 @@ tr.entry.file td.filename a { margin-left: 16px; }
|
||||||
tr.changeset td.author { text-align: center; width: 15%; }
|
tr.changeset td.author { text-align: center; width: 15%; }
|
||||||
tr.changeset td.committed_on { text-align: center; width: 15%; }
|
tr.changeset td.committed_on { text-align: center; width: 15%; }
|
||||||
|
|
||||||
|
tr.file td { text-align: center; }
|
||||||
|
tr.file td.filename { text-align: left; padding-left: 24px; }
|
||||||
|
tr.file td.digest { font-size: 80%; }
|
||||||
|
|
||||||
tr.message { height: 2.6em; }
|
tr.message { height: 2.6em; }
|
||||||
tr.message td.last_message { font-size: 80%; }
|
tr.message td.last_message { font-size: 80%; }
|
||||||
tr.message.locked td.subject a { background-image: url(../images/locked.png); }
|
tr.message.locked td.subject a { background-image: url(../images/locked.png); }
|
||||||
|
|
Loading…
Reference in New Issue