drop /admin route
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:
Родитель
775101e178
Коммит
ce63db9a45
|
@ -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"
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче