File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 28
28
29
29
<!-- 年次データフィルタリング -->
30
30
< div style ="margin: 30px auto; padding: 20px; background: #f8f9fa; border-radius: 8px; max-width: 600px; ">
31
- < h3 > 📊 年次データのフィルタリング</ h3 >
31
+ < h3 id ="table ">
32
+ < a href ="#table "> 📊</ a >
33
+ 年次データのフィルタリング
34
+ </ h3 >
32
35
33
36
<% if @selected_year %>
34
37
< div style ="padding: 10px; background: #d1ecf1; border: 1px solid #bee5eb; border-radius: 4px; margin-bottom: 15px; ">
35
38
< strong > <%= @selected_year %> 年末時点</ strong > のアクティブな道場を表示中
36
- <%= link_to '全道場を表示' , dojos_path , style : 'margin-left: 10px;' %>
39
+ <%= link_to '全道場を表示' , dojos_path ( anchor : 'table' ) , style : 'margin-left: 10px;' %>
37
40
</ div >
38
41
<% end %>
39
42
45
48
params [ :year ]
46
49
) ,
47
50
include_blank : '全期間' ,
48
- onchange : "window.location.href = '#{ dojos_path } ?year=' + this.value" ,
51
+ onchange : "window.location.href = '#{ dojos_path } ?year=' + this.value + '#table' " ,
49
52
style : 'padding: 5px; border: 1px solid #ced4da; border-radius: 4px; cursor: pointer;' %>
50
53
51
54
<%= link_to 'CSV' , dojos_path ( format : :csv , year : params [ :year ] ) ,
You can’t perform that action at this time.
0 commit comments