b74d298196
Allow alternate sort-orders (by filename, by date). Restrict to files in the given Web.
30 lines
No EOL
1.1 KiB
Text
30 lines
No EOL
1.1 KiB
Text
<%- @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>
|
|
|
|
<%- 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 -%>
|
|
<li>
|
|
<input type="checkbox" name="<%= file.file_name %>" value="delete"/>
|
|
<a href="<%= url_for :web => @web.address, :action => 'file',
|
|
:id => file.file_name %>"><%= file.file_name%></a> (<%= file.created_at.asctime %>)
|
|
</li>
|
|
<%- end -%>
|
|
</ul>
|
|
<label for="system_password">Enter system password</label>
|
|
<%= password_field_tag "system_password", '', :class => "disableAutoComplete" %>
|
|
and <%= submit_tag("Delete Files") %>
|
|
<%- end -%>
|
|
</div>
|
|
<%- end -%> |