This just shows a list of the downloads pulled down from the
`download` task. Potentially useful for remote-admin, I
guess, but it falls far short of what's needed for actual
debugging (and I can't think of a single time when it would
have been helpful).

It also seems to cause rendering exceptions on the
production site when spam requests look at it.

Let's just drop it as ancient and not-useful.
This commit is contained in:
Jeff King 2017-10-11 13:27:03 -04:00
Родитель 775101e178
Коммит ce63db9a45
3 изменённых файлов: 0 добавлений и 18 удалений

Просмотреть файл

@ -7,10 +7,6 @@ class SiteController < ApplicationController
@subsection = ""
end
def admin
@downloads = Download.all
end
def search
@term = sname = params['search'].to_s.downcase
@data = search_term(sname)

Просмотреть файл

@ -1,12 +0,0 @@
<div id='main'>
<h1>Admin Page</h1>
<table>
<% @downloads.each do |down| %>
<tr>
<td><%= down.version.name %></td>
<td><%= down.platform %></td>
</tr>
<% end %>
</table>
</div>

Просмотреть файл

@ -80,8 +80,6 @@ Gitscm::Application.routes.draw do
get "/community" => "community#index"
get "/admin" => "site#admin"
get "/search" => "site#search"
get "/search/results" => "site#search_results"