From 1370d21460255914e03754fb0f20052e6b3002d7 Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Sat, 28 Mar 2015 23:14:33 -0700 Subject: Crude first pass at downloading files. --- app/views/downloads/index.html.erb | 44 ++++++++++---------------------------- 1 file changed, 11 insertions(+), 33 deletions(-) (limited to 'app/views') diff --git a/app/views/downloads/index.html.erb b/app/views/downloads/index.html.erb index c017aab..0f0afc9 100644 --- a/app/views/downloads/index.html.erb +++ b/app/views/downloads/index.html.erb @@ -1,35 +1,13 @@

<%= notice %>

-

Listing Downloads

- - - - - - - - - - - - - - - <% @downloads.each do |download| %> - - - - - - - - - - - <% end %> - -
NameFilenameTypeDescriptionHits
<%= download.name %><%= download.filename %><%= download.type %><%= download.description %><%= download.hits %><%= link_to 'Show', download %><%= link_to 'Edit', edit_download_path(download) %><%= link_to 'Destroy', download, method: :delete, data: { confirm: 'Are you sure?' } %>
- -
- -<%= link_to 'New Download', new_download_path %> +<% @downloads.each do |download| %> +
+

<%= download.name %>

+

<%= download.description %>

+

+ Type: <%= download.type %> + Downloads: <%= download.hits %> +

+

<%= link_to "Download", download_path(download.filename) %>

+
+<% end %> -- cgit v1.2.3