(empty log message)
| @@ -1,44 +0,0 @@ | ||
| 1 | -class StatDatasController < ApplicationController | |
| 2 | - | |
| 3 | - # number of download | |
| 4 | - def number_of_download | |
| 5 | - statname = StatName.target_to("number_of_download") | |
| 6 | - @page_title = statname.name | |
| 7 | - @statdata = StatData.to_a(statname.id, "DESC", "r") | |
| 8 | - end | |
| 9 | - | |
| 10 | - # number of download group by tag | |
| 11 | - def number_of_download_tag | |
| 12 | - statname = StatName.target_to("number_of_download_tag") | |
| 13 | - @page_title = statname.name | |
| 14 | - @statdata = StatData.to_a(statname.id, "DESC", "r") | |
| 15 | - end | |
| 16 | - | |
| 17 | - # kind_of_license | |
| 18 | - def kind_of_license | |
| 19 | - statname = StatName.target_to("kind_of_license") | |
| 20 | - @page_title = statname.name | |
| 21 | - @statdata = StatData.to_a(statname.id) | |
| 22 | - end | |
| 23 | - | |
| 24 | - # bugs and steps group by tag | |
| 25 | - def bugs_and_steps | |
| 26 | - statname = StatName.target_to("bugs_and_steps") | |
| 27 | - @page_title = statname.name | |
| 28 | - @statdata = StatData.to_a(statname.id, "ASC", "r", 2) | |
| 29 | - end | |
| 30 | - | |
| 31 | - # bugs and steps group by tag | |
| 32 | - def bugs_and_steps | |
| 33 | - statname = StatName.target_to("bugs_and_steps") | |
| 34 | - @page_title = statname.name | |
| 35 | - @statdata = StatData.to_a(statname.id, "ASC", "r", 2) | |
| 36 | - end | |
| 37 | - | |
| 38 | - # number of website | |
| 39 | - def number_of_website | |
| 40 | - statname = StatName.target_to("number_of_website") | |
| 41 | - @page_title = statname.name | |
| 42 | - @statdata = StatData.to_a(statname.id, "DESC", "r") | |
| 43 | - end | |
| 44 | -end |
| @@ -1,22 +0,0 @@ | ||
| 1 | -class StatNamesController < ApplicationController | |
| 2 | - def index | |
| 3 | - @page_title = t("top.statistics.page_title") | |
| 4 | - @statlists = StatName.order("id") | |
| 5 | - end | |
| 6 | - | |
| 7 | - def show | |
| 8 | - end | |
| 9 | - | |
| 10 | - def edit | |
| 11 | - end | |
| 12 | - | |
| 13 | - def create | |
| 14 | - end | |
| 15 | - | |
| 16 | - def update | |
| 17 | - end | |
| 18 | - | |
| 19 | - def destory | |
| 20 | - end | |
| 21 | - | |
| 22 | -end |
| @@ -5,12 +5,6 @@ | ||
| 5 | 5 | |
| 6 | 6 | resources :articles |
| 7 | 7 | resources :members |
| 8 | - # 2012.12.26 ssl mod start | |
| 9 | - resources :stat_names | |
| 10 | - resources :stat_datas do | |
| 11 | - collection { get "number_of_download", "number_of_download_tag", "kind_of_license", "bugs_and_steps", "number_of_website" } | |
| 12 | - end | |
| 13 | - # 2012.12.26 ssl mod end | |
| 14 | 8 | resources :projects do |
| 15 | 9 | collection { get "index_name", "index_tag", "search" } |
| 16 | 10 | end |