[refs #404] Remove unnessacary downloads files

This commit is contained in:
konstantin.grabar 2012-04-17 12:41:05 +04:00
parent 1b871bf6dd
commit 74b21381e2
3 changed files with 0 additions and 51 deletions

View File

@ -1,16 +0,0 @@
# -*- encoding : utf-8 -*-
class DownloadsController < ApplicationController
before_filter :authenticate_user!
load_and_authorize_resource
def index
@downloads = Download.paginate :page => params[:page], :per_page => 30
end
def refresh
Download.rotate_nginx_log
Download.parse_and_remove_nginx_log
redirect_to downloads_path, :notice => t('flash.downloads.statistics_refreshed')
end
end

View File

@ -1,30 +0,0 @@
.block
.content
%h2.title
= title t("layout.downloads.title")
.inner
%h3= t("layout.downloads.message")
.inner
%table.table
%tr
%th.first= t("activerecord.attributes.download.name")
%th= t("activerecord.attributes.download.version")
%th= t("activerecord.attributes.download.distro")
%th= t("activerecord.attributes.download.platform")
%th.last= t("activerecord.attributes.download.counter")
- @downloads.each do |download|
%tr{:class => cycle("odd", "even")}
%td
= download.name
%td
= download.version
%td
= download.distro
%td
= download.platform
%td.last
= download.counter
.actions-bar.wat-cf
.actions
= will_paginate @downloads
= render 'admin/submenu'

View File

@ -1,5 +0,0 @@
every 1.day, :at => '5:00' do
#rake "sudo_test:projects"
runner "Download.rotate_nginx_log"
runner "Download.parse_and_remove_nginx_log"
end