summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
Diffstat (limited to 'app/views')
-rw-r--r--app/views/downloads/_form.html.erb37
-rw-r--r--app/views/downloads/edit.html.erb6
-rw-r--r--app/views/downloads/new.html.erb5
-rw-r--r--app/views/downloads/show.html.erb29
-rw-r--r--app/views/downloads/show.json.jbuilder1
5 files changed, 0 insertions, 78 deletions
diff --git a/app/views/downloads/_form.html.erb b/app/views/downloads/_form.html.erb
deleted file mode 100644
index 1ab1879..0000000
--- a/app/views/downloads/_form.html.erb
+++ /dev/null
@@ -1,37 +0,0 @@
-<%= form_for(@download) do |f| %>
- <% if @download.errors.any? %>
- <div id="error_explanation">
- <h2><%= pluralize(@download.errors.count, "error") %> prohibited this download from being saved:</h2>
-
- <ul>
- <% @download.errors.full_messages.each do |message| %>
- <li><%= message %></li>
- <% end %>
- </ul>
- </div>
- <% end %>
-
- <div class="field">
- <%= f.label :name %><br>
- <%= f.text_field :name %>
- </div>
- <div class="field">
- <%= f.label :filename %><br>
- <%= f.text_field :filename %>
- </div>
- <div class="field">
- <%= f.label :type %><br>
- <%= f.text_field :type %>
- </div>
- <div class="field">
- <%= f.label :description %><br>
- <%= f.text_area :description %>
- </div>
- <div class="field">
- <%= f.label :hits %><br>
- <%= f.number_field :hits %>
- </div>
- <div class="actions">
- <%= f.submit %>
- </div>
-<% end %>
diff --git a/app/views/downloads/edit.html.erb b/app/views/downloads/edit.html.erb
deleted file mode 100644
index 3b57a65..0000000
--- a/app/views/downloads/edit.html.erb
+++ /dev/null
@@ -1,6 +0,0 @@
-<h1>Editing Download</h1>
-
-<%= render 'form' %>
-
-<%= link_to 'Show', @download %> |
-<%= link_to 'Back', downloads_path %>
diff --git a/app/views/downloads/new.html.erb b/app/views/downloads/new.html.erb
deleted file mode 100644
index ac31df5..0000000
--- a/app/views/downloads/new.html.erb
+++ /dev/null
@@ -1,5 +0,0 @@
-<h1>New Download</h1>
-
-<%= render 'form' %>
-
-<%= link_to 'Back', downloads_path %>
diff --git a/app/views/downloads/show.html.erb b/app/views/downloads/show.html.erb
deleted file mode 100644
index 276888a..0000000
--- a/app/views/downloads/show.html.erb
+++ /dev/null
@@ -1,29 +0,0 @@
-<p id="notice"><%= notice %></p>
-
-<p>
- <strong>Name:</strong>
- <%= @download.name %>
-</p>
-
-<p>
- <strong>Filename:</strong>
- <%= @download.filename %>
-</p>
-
-<p>
- <strong>Type:</strong>
- <%= @download.type %>
-</p>
-
-<p>
- <strong>Description:</strong>
- <%= @download.description %>
-</p>
-
-<p>
- <strong>Hits:</strong>
- <%= @download.hits %>
-</p>
-
-<%= link_to 'Edit', edit_download_path(@download) %> |
-<%= link_to 'Back', downloads_path %>
diff --git a/app/views/downloads/show.json.jbuilder b/app/views/downloads/show.json.jbuilder
deleted file mode 100644
index 6bab62c..0000000
--- a/app/views/downloads/show.json.jbuilder
+++ /dev/null
@@ -1 +0,0 @@
-json.extract! @download, :id, :name, :filename, :type, :description, :hits, :created_at, :updated_at