summaryrefslogtreecommitdiff
path: root/app/views/downloads
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/downloads')
-rw-r--r--app/views/downloads/index.html.erb44
1 files changed, 11 insertions, 33 deletions
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 @@
<p id="notice"><%= notice %></p>
-<h1>Listing Downloads</h1>
-
-<table>
- <thead>
- <tr>
- <th>Name</th>
- <th>Filename</th>
- <th>Type</th>
- <th>Description</th>
- <th>Hits</th>
- <th colspan="3"></th>
- </tr>
- </thead>
-
- <tbody>
- <% @downloads.each do |download| %>
- <tr>
- <td><%= download.name %></td>
- <td><%= download.filename %></td>
- <td><%= download.type %></td>
- <td><%= download.description %></td>
- <td><%= download.hits %></td>
- <td><%= link_to 'Show', download %></td>
- <td><%= link_to 'Edit', edit_download_path(download) %></td>
- <td><%= link_to 'Destroy', download, method: :delete, data: { confirm: 'Are you sure?' } %></td>
- </tr>
- <% end %>
- </tbody>
-</table>
-
-<br>
-
-<%= link_to 'New Download', new_download_path %>
+<% @downloads.each do |download| %>
+ <article>
+ <h3><%= download.name %></h3>
+ <p><%= download.description %></p>
+ <p class="filedetails">
+ <span>Type:</span> <%= download.type %>
+ <span>Downloads:</span> <%= download.hits %>
+ </p>
+ <p><%= link_to "Download", download_path(download.filename) %></p>
+ </article>
+<% end %>