Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%= javascript_include_tag "myjs" %>
- <% if @folder.empty? && @searchval.empty? %>
- <div id = "empty">NO Files Uploaded Yet!<br />Click <a href = "/uploadfiles">here</a> to upload files </div>
- <% end %>
- <% if @folder.empty? && ! @searchval.empty? %>
- <div id = "noresults">No matching results!<br /> Please modify your search terms.</div>
- <% end %>
- <% if ! @folder.empty? %>
- <div id = "foldercontainer">
- <div id = "allfiles">
- <% i=0 %>
- <% fc=0 %>
- <% @folder.each do |folder| %>
- <% underscoref = folder.folder %>
- <%underscorefolder = underscoref.gsub(" ", "_") %>
- <div class="folder_container">
- <div class = "folder" id = "<%= underscorefolder %>_folder"><span><%= folder.folder %></span></div>
- <% i=i+1 %>
- <div class = "filecontainer" id = "<%= underscorefolder %>">
- <% fc = fc+1 %>
- <% @allfiles.each do |allfiles| %>
- <% if folder.folder == allfiles.folder %>
- <div class = "filehover"><div class = "files" id = "t<%= fc %>" ><%= check_box_tag "fid[]", allfiles.id %><%= truncate(allfiles.name, :length => 30) %>
- <%= link_to( image_tag('trash1.png'), {:controller => "paintings", :action => "destroy_one", :id => allfiles.id}, {:remote =>true, :class => "delete_one"}) %>
- <%= link_to( image_tag('send_email.gif'), {:controller => "paintings", :action => "show", :id => allfiles.id}, {:remote =>true, :class => "send_one"}) %><br>
- </div></div>
- <% end %>
- <% end %>
- </div>
- </div>
- <% end %>
- <br />
- <div class = "delete_file_button"><%= submit_tag "Delete", :id => "submit_form" %></div>
- </div>
- </div>
- <% end %>
Add Comment
Please, Sign In to add comment