root/extensions/retro_wiki/views/wiki_files/_file.html.erb

Download in other formats: Raw | Text
Revisions
Dimitrij Denissenko
Dimitrij Denissenko
May 13 2009 * 23:38
(over 1 year ago)

Revision 0d394207d5addb49bdd16ae1d0ba9c45924baa4c

Moved Ticket Report management out of admin area Minor visual updates

Unknown File Type

A viewable MIME type was not detected. Trying to display the file content as plain text.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<tr class="<%= cycle('odd', 'even') -%> record">
  <td class="strong">
    <%= boolean_format file.readable? %>
    <%= link_to h(file.wiki_title), path_to_wiki_file(file) %>
  </td>
  
  <td><%=h file.file_name %></td>
  <td><%=h file.content_type %></td>
  <td><%=h number_to_human_size(file.size) %></td>
  
  <td class="actions righted span-4">
    <% if permitted?(:wiki_files, :destroy) -%>
      <%= link_to _('Delete'), project_wiki_file_path(Project.current, file),
                                                :confirm => _('Are you really sure?'), 
                                                :method => :delete %>
    <% end -%>
  </td>
</tr>