Skip to content

Commit 06bd9eb

Browse files
committed
Tweak layout and order of Stats information
1 parent 9812574 commit 06bd9eb

File tree

1 file changed

+44
-19
lines changed

1 file changed

+44
-19
lines changed

app/views/static_pages/stats.html.haml

Lines changed: 44 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,18 @@
66
%section#dojos.dojos.text-center
77
%bpr
88
%h1 統計情報
9-
%p 本ページでは全国の CoderDojo の統計情報をまとめています。
9+
%div 本ページでは全国の CoderDojo の統計情報をまとめています。
1010
CoderDojo の活動状況を把握する際などにご活用ください。
11+
%br
12+
%h3 推移グラフ
13+
%div{align: 'center'}
14+
= high_chart("annual_dojos", @annual_dojos_chart)
15+
= high_chart("annual_event_histories", @annual_event_histories_chart)
16+
= high_chart("annual_participants", @annual_participants_chart)
1117

12-
%h3 開催回数
13-
= @sum_of_events
14-
15-
%h3 参加者数
16-
延べ
17-
= @sum_of_participants
18-
19-
%h3 集計対象
20-
= @sum_of_dojos
21-
\/ #{@dojo_count} Dojos
22-
%h3 集計間隔
23-
毎週月曜日 午前10時頃
24-
25-
%h3 これまでの推移
18+
%h3 推移テーブル
2619
%div{align: 'center'}
27-
(集計対象のみ)
20+
%i *集計対象のみ
2821
%table{style: 'margin-top: 4px;'}
2922
%thead
3023
%tr
@@ -47,9 +40,41 @@
4740
- @range.each do |year|
4841
%td= @participants[year]
4942
%td= @participants.values.inject(:+)
50-
= high_chart("annual_dojos", @annual_dojos_chart)
51-
= high_chart("annual_event_histories", @annual_event_histories_chart)
52-
= high_chart("annual_participants", @annual_participants_chart)
43+
44+
%div{style: 'margin-top: 20px;'}
45+
%b 集計について
46+
%br
47+
毎週月曜日の午前10時頃に集計をしています。
48+
%br
49+
集計対象としている Dojo 数は次のとおりです。
50+
%div{style: 'margin-top: 5px;'}
51+
%b= @sum_of_dojos
52+
%b / #{@dojo_count} Dojos
53+
54+
55+
%h3 最新データ
56+
2018年のデータも含めた最新の統計情報は次のとおりです。
57+
%div{align: 'center'}
58+
%table{style: 'margin-top: 4px;'}
59+
%thead
60+
%tr
61+
%th
62+
%td{style: 'padding: 0 10px; font-weight: bold;'} 道場数
63+
%td{style: 'padding: 0 10px; font-weight: bold;'} 開催回数
64+
%td{style: 'padding: 0 10px; font-weight: bold;'} 参加者数
65+
%tbody{style: 'text-align: center;'}
66+
%tr
67+
%td
68+
%td= @dojo_count
69+
%td= @sum_of_events
70+
%td= @sum_of_participants
71+
72+
%h3 備考
73+
%ul{style: 'list-style: none;'}
74+
%li 参加者数はユニーク数ではなく、延べ数で計算
75+
%li API で自動的に集計できる Dojo が集計の対象
76+
%li 最新の開発状況は末尾の「関連リンク」を参照
77+
5378
%h3 全国の道場
5479
#accordion.panel-group{"aria-multiselectable" => "true", :role => "tablist"}
5580
- @regions_and_dojos.each_with_index do |(region, dojos), index|

0 commit comments

Comments
 (0)