diff --git a/doc/downloads/downloads_controller.rb b/doc/downloads/downloads_controller.rb deleted file mode 100644 index 59a76d80d..000000000 --- a/doc/downloads/downloads_controller.rb +++ /dev/null @@ -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 diff --git a/doc/downloads/index.html.haml b/doc/downloads/index.html.haml deleted file mode 100644 index f8d35caeb..000000000 --- a/doc/downloads/index.html.haml +++ /dev/null @@ -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' diff --git a/doc/downloads/schedule.rb b/doc/downloads/schedule.rb deleted file mode 100644 index 884c2ed43..000000000 --- a/doc/downloads/schedule.rb +++ /dev/null @@ -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