diff options
Diffstat (limited to 'app/views/downloads/index.html.erb')
-rw-r--r-- | app/views/downloads/index.html.erb | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/app/views/downloads/index.html.erb b/app/views/downloads/index.html.erb new file mode 100644 index 0000000..c017aab --- /dev/null +++ b/app/views/downloads/index.html.erb @@ -0,0 +1,35 @@ +<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 %> |