1 <p class="foldertitle">
\r
2 <%= path(@folder, false) %>
\r
4 <% if @logged_in_user.can_update_folderinfo?(@folder) %>
\r
5 <a href="#" onclick="ShowProperties();" class="small" id="rights_link">properties</a>
\r
6 <a href="#" onclick="ShowList();" class="small" id="list_link" style="display:none;">back to folder</a>
\r
8 <%= link_to 'RSS', { :controller => 'folder', :action => 'feed', :id => controller.folder_id, :access_key => @logged_in_user.rss_access_key }, { :class => 'small' } %><%= link_to '(!)', { :controller => 'folder', :action => 'feed_warning' }, { :class => 'small', :style => 'margin-left:1px;' } %>
\r
11 <div id="list" style="position:relative;"><div>
\r
13 <% if flash[:folder_error] %>
\r
14 <div id="error"><%= flash[:folder_error] %></div>
\r
16 <% if flash[:folder_info] %>
\r
17 <div id="confirmation"><%= flash[:folder_info] %></div>
\r
19 <% if @folder.note_inherited %>
\r
20 <div id="note"><%= @folder.note_inherited %></div>
\r
23 <% form_tag({:controller => 'folder', :action => 'multichange', :id => params[:id]}, {:name => 'folderlist', :id=>'folderlist'}) do %>
\r
26 <table class="grid">
\r
30 <th width="239"><%= link_order 'Name', 'name' %></th>
\r
31 <th width="82"><%= link_order 'Size', 'filesize' %></th>
\r
32 <th><%= link_order 'Date Modified', 'date_modified' %></th>
\r
38 <tr class="<%= cycle('even', 'odd') %>">
\r
40 <td><%= image_tag('folder.png') %></td>
\r
41 <td><%= link_to image_tag('arrow_up.png') + "<i>go up one folder</i>", { :action => 'list', :id => @folder_up }, {:title => "Go one folder up" } %></td>
\r
49 <% @folders.each do |folder| %>
\r
50 <tr class="<%= cycle('even', 'odd') %>">
\r
51 <td> <%= check_box('checked_folder', folder.id, {}, 'yes', 'no') %></td>
\r
52 <td><%= image_tag('folder.png') %></td>
\r
53 <td><%= link_to h(folder.name), :action => 'list', :id => folder %></td>
\r
55 <td><%= folder.date_modified.to_formatted_s(format=:short) %></td>
\r
57 <% if @can_update %>
\r
58 <%= link_to image_tag('edit.png'), { :action => 'rename', :id => folder}, { :title => 'Rename this folder' } %>
\r
62 <% if @can_delete %>
\r
63 <%= link_to image_tag('delete.png'), {:action => 'destroy', :id => folder}, { :title => 'Delete this folder', :confirm => "All files and subfolders will be deleted!\nAre you sure?" } %>
\r
67 <td><% if @logged_in_user.is_admin? %>
\r
68 <%= link_to image_tag('log.png'), {:controller => 'admin_tool', :action => 'show_log', :id => folder }%>
\r
72 <% @myfiles.each do |myfile| %>
\r
73 <tr class="<%= cycle('even', 'odd') %>">
\r
74 <td> <%= check_box('checked_file', myfile.id, {}, 'yes', 'no') %></td>
\r
75 <td><%= image_tag(myfile.icon_file) %></td>
\r
76 <td><%= link_to h(myfile.short_fname), {:controller => 'file', :action => 'download', :id => myfile}, {:title => myfile.filename} %></td>
\r
77 <td><%= myfile.filesize %> KB</td>
\r
78 <td><%= myfile.date_modified.to_formatted_s(format=:short) %></td>
\r
80 <% if @can_update %>
\r
81 <%= link_to image_tag('edit.png'), { :controller => 'file', :action => 'rename', :id => myfile }, { :title => 'Rename this file' } %>
\r
85 <% if @can_delete %>
\r
86 <%= link_to image_tag('delete.png'), { :controller => 'file', :action => 'destroy', :id => myfile }, { :title => 'Delete this file', :confirm => 'Are you sure?' } %>
\r
90 <% if myfile.indexed %>
\r
91 <%= link_to image_tag('zoom.png'), { :controller => 'file', :action => 'preview', :id => myfile }, { :title => 'Preview', :class => 'noBackground' } %>
\r
94 <% if @logged_in_user.is_admin? %>
\r
96 <td> <%= link_to image_tag('log.png'), {:controller => 'admin_tool', :action => 'show_log', :id => myfile, :file => true}, { :title => 'View log'} %><%end%>
\r
102 <%if @can_delete%><%= select 'checked', 'action', [['download all'], ['delete'], ['add to clipboard']] %>
\r
103 <input type="submit" name="Apply" value="Apply"
\r
104 onClick="if (document.folderlist.checked_action.value == 'delete') {return confirmSubmit()} else {return true}">
\r
107 <% unless @logged_in_user.clipboards.size == 0 || !@logged_in_user.can_create(controller.folder_id)
\r
108 folder = @logged_in_user.no_folders_clipboard
\r
109 file = @logged_in_user.no_files_clipboard
\r
111 text << " " << folder.to_s << " folders" if folder
\r
112 text << " and" if folder && file
\r
113 text << " " << file.to_s << " files" if file
\r
114 text << " from clipboard to this folder"
\r
116 <%= link_to text, {:controller => 'folder', :action => 'multimove', :id => @folder}%> | <%= link_to "Remove files from clipboard", {:controller => 'folder', :action => 'cancel_moving', :id => @folder}%>
\r
122 <% if @logged_in_user.can_update_folderinfo?(@folder) %>
\r
124 <div id="folder_rights" style="display:none;position:relative;"><div>
\r
126 <% form_tag :action => 'update_permissions', :id => params[:id] do %>
\r
127 <% if @logged_in_user.can_update_perms? %> <table>
\r
131 <th class="rights">Create</th>
\r
132 <th class="rights">Read</th>
\r
133 <th class="rights">Update</th>
\r
134 <th class="rights">Delete</th>
\r
136 <% Group.find(:all, :order => 'name').each do |group| %>
\r
137 <tr class="<%= cycle('even', 'odd') %>">
\r
138 <% disabled = group.is_the_administrators_group? %>
\r
140 <td><%= image_tag('group_grey.png') %></td>
\r
141 <td style="color:#818181;"><%= h(group.name) %></td>
\r
143 <td><%= image_tag('group.png') %></td>
\r
144 <td><%= h(group.name) %></td>
\r
146 <td class="rights"><%= CRUD_check_box('create', group.id, controller.folder_id, disabled) %></td>
\r
147 <td class="rights"><%= CRUD_check_box('read', group.id, controller.folder_id, disabled) %></td>
\r
148 <td class="rights"><%= CRUD_check_box('update', group.id, controller.folder_id, disabled) %></td>
\r
149 <td class="rights"><%= CRUD_check_box('delete', group.id, controller.folder_id, disabled) %></td>
\r
154 <br> <%= check_box('update_recursively', 'checked', {}, 'yes', 'no') %> Apply changes in permissions to subfolders
\r
155 <hr> Owner of folder:
\r
156 <input type='text' id='owner' name='owner' value=<%= @folder.user.name %> /> <br>
\r
157 <%= check_box('owner_recursive', 'checked', {}, 'yes', 'no') %> Apply changes in ownership to subfolders
\r
159 <br> <label for="folder_note">Folder note:</label> <%= check_box('folder','note_inheritable', {}, 1, 0) %> Make sub-folders inherit this note<br>
\r
160 <%= text_area 'folder', 'note', :cols => 60, :rows => 3 %>
\r
161 <br> <label for="folder_note_upload">Upload instructions:</label> <%= check_box('folder','note_upload_inheritable', {}, 1, 0) %> Make sub-folders inherit these instructions<br>
\r
162 <%= text_area 'folder', 'note_upload', :cols => 60, :rows => 3 %>
\r
166 <%= submit_tag 'Save' %>
\r