File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 34
34
35
35
%h3 各統計の推移
36
36
%div {align: 'center'}
37
+ (計測対象のみ)
37
38
%table
38
39
%thead
39
40
%tr
40
41
%th
41
42
- @range.each do |year|
42
43
%td {style: 'padding: 0 5px; font-weight: bold;'} #{year}年
44
+ %td{style: 'padding: 0 5px; font-weight: bold;'} 合計
43
45
%tbody{align: 'center'}
44
46
%tr
45
47
%td 道場数
46
48
- @range.each do |year|
47
- %td #{ @dojos[year]}
49
+ %td = @dojos[year]
48
50
%tr
49
51
%td 開催回数
50
52
- @range.each do |year|
51
- %td #{@events[year]}
53
+ %td = @events[year]
54
+ %td = @events.values.inject(:+)
52
55
%tr
53
56
%td 参加者数
54
57
- @range.each do |year|
55
- %td #{@participants[year]}
58
+ %td = @participants[year]
59
+ %td = @participants.values.inject(:+)
56
60
57
61
%h3 関連リンク
58
62
%ul {:style => " list-style: none; margin-left: -40px;" }
You can’t perform that action at this time.
0 commit comments