2008-12-31 10:54:23 +01:00
|
|
|
<%- @title = "Uploaded Files" -%>
|
|
|
|
|
|
|
|
<% form_tag({ :controller => 'admin', :action => 'delete_files', :web => @web.address },
|
|
|
|
{'method' => 'post', 'accept-charset' => 'utf-8' }) do
|
|
|
|
%>
|
|
|
|
<div id="allFiles">
|
|
|
|
<h2>
|
|
|
|
Uploaded Files in <%= @web.name %>
|
|
|
|
</h2>
|
|
|
|
|
2008-12-31 18:30:33 +01:00
|
|
|
<%- if @file_list.empty? -%>
|
|
|
|
<p>No uploaded files in this Web</p>
|
|
|
|
<%- else -%>
|
|
|
|
<p>Check the files you wish to delete (<%= link_to "sort by #{@alt_sort_name}", :controller => 'wiki',
|
|
|
|
:web => @web.address, :action => 'file_list', :sort_order => @alt_sort_order %>).</p>
|
|
|
|
<ul style="list-style-type:none">
|
|
|
|
<%- for file in @file_list -%>
|
2008-12-31 10:54:23 +01:00
|
|
|
<li>
|
2008-12-31 18:30:33 +01:00
|
|
|
<input type="checkbox" name="<%= file.file_name %>" value="delete"/>
|
2009-01-09 03:44:22 +01:00
|
|
|
<a href="<%= url_for :web => @web.address, :action => 'files',
|
2009-01-10 07:38:00 +01:00
|
|
|
:id => file.file_name %>"><%= file.file_name%></a> (<%= file.created_at.asctime %>) <span class="linked"><%= "Linked to by: " unless
|
2009-06-03 05:17:15 +02:00
|
|
|
@web.pages_that_link_to_file(file.file_name).empty? -%>
|
2010-05-26 07:27:49 +02:00
|
|
|
<%= @web.pages_that_link_to_file(file.file_name).collect { |referring_page| link_to_page(referring_page) }.join(", ").html_safe %></span>
|
2008-12-31 10:54:23 +01:00
|
|
|
</li>
|
|
|
|
<%- end -%>
|
2008-12-31 18:30:33 +01:00
|
|
|
</ul>
|
|
|
|
<label for="system_password">Enter system password</label>
|
|
|
|
<%= password_field_tag "system_password", '', :class => "disableAutoComplete" %>
|
2008-12-31 10:54:23 +01:00
|
|
|
and <%= submit_tag("Delete Files") %>
|
2008-12-31 18:30:33 +01:00
|
|
|
<%- end -%>
|
2008-12-31 10:54:23 +01:00
|
|
|
</div>
|
2008-12-31 18:30:33 +01:00
|
|
|
<%- end -%>
|