summaryrefslogtreecommitdiff
path: root/app/views/downloads/index.html.erb
diff options
context:
space:
mode:
authorJesse Morgan <jesse@jesterpm.net>2015-03-28 23:14:33 -0700
committerJesse Morgan <jesse@jesterpm.net>2015-03-28 23:14:33 -0700
commit1370d21460255914e03754fb0f20052e6b3002d7 (patch)
tree7d8275a293e71286df430bef3e55d6b0ebdf9a4c /app/views/downloads/index.html.erb
parent43743c4b42b01eb95bec6ab5e4991121b06c9c36 (diff)
Crude first pass at downloading files.
Diffstat (limited to 'app/views/downloads/index.html.erb')
-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 %>