File tree Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,8 @@ def latest
39
39
event_at : latest_event . nil? ?
40
40
last_session_date . strftime ( "%Y-%m-%d" ) :
41
41
latest_event . evented_at . strftime ( "%Y-%m-%d" ) ,
42
+
43
+ # 過去のイベント開催データが無ければ、note 内にあるリンクまたは個別統計ページを表示
42
44
event_url : latest_event . nil? ?
43
45
last_session_link . to_s :
44
46
latest_event . event_url
Original file line number Diff line number Diff line change 77
77
< td >
78
78
< small >
79
79
<% if dojo [ :has_event_histories ] %>
80
- <!-- 過去1年間イベント開催していない Dojo で、"Active" の確認が無い場合はハイライトする -->
80
+ <!-- 過去1年間イベント開催していない Dojo で、"Active" マークが無い場合はハイライトする -->
81
81
< span class =<%= 'expired' if dojo [ :event_at ] <= Time . current . prev_year && !dojo [ :note ] . include? ( 'Active' ) %> >
82
82
<%= link_to dojo [ :event_at ] , dojo [ :event_url ] %>
83
83
</ span >
84
84
<% else %>
85
- <!-- 別サービスでイベント管理している Dojo で、"Active" の確認が無い場合はハイライトする -->
85
+ <!-- 別サービスでイベント管理している Dojo で、"Active" マークが無い場合はハイライトする -->
86
+ <!-- 別サービスでイベント管理している Dojo の場合、note にある日付とリンクで分岐処理する -->
86
87
< span class =<%= 'expired' if dojo [ :event_at ] <= Time . current . prev_year && !dojo [ :note ] . include? ( 'Active' ) %> >
87
88
<%= link_to dojo [ :event_at ] , dojo [ :event_url ] %>
88
89
</ span >
Original file line number Diff line number Diff line change 43
43
- 電子工作
44
44
- id : 100
45
45
order : ' 012319'
46
- note : ' Last session was 2024-07-21 https://www.facebook.com/CoderDojoEniwa/posts/pfbid0SfrehQRyN9LS78ewt6y2coxHiKhvy1ddg77zCBhZoKyqBD4MYrK8XH9FhKDBJXF2l'
46
+ note : ' 2024-07-21 https://www.facebook.com/CoderDojoEniwa/posts/pfbid0SfrehQRyN9LS78ewt6y2coxHiKhvy1ddg77zCBhZoKyqBD4MYrK8XH9FhKDBJXF2l'
47
47
created_at : ' 2017-09-20'
48
48
name : 恵庭
49
49
prefecture_id : 1
1961
1961
- LEGO
1962
1962
- id : 257
1963
1963
order : ' 162086'
1964
+ note : ' 2024-12-07 https://coderdojo-tonami.org/event/weekly-188th/'
1964
1965
created_at : ' 2020-11-13'
1965
1966
name : となみ
1966
1967
prefecture_id : 16
3044
3045
- 電子工作
3045
3046
- id : 48
3046
3047
order : ' 281107'
3047
- note : ' Active for years. '
3048
+ note : ' Active - 2025-03-08 https://www.facebook.com/CoderDojoKobe/posts/pfbid02oraVjAR3BVbVnK7eGhTMrjBSEWEnTassxb9fkx3kTWajccUNDXx8s359HYs6tX6Vl '
3048
3049
created_at : ' 2016-09-28'
3049
3050
name : 神戸
3050
3051
prefecture_id : 28
3261
3262
- Viscuit
3262
3263
- id : 47
3263
3264
order : ' 302015'
3265
+ note : ' Active for years - 2025-03-16 https://coderdojo-wakayama.hatenablog.com/entry/2025/03/16/230604'
3264
3266
created_at : ' 2016-11-01'
3265
3267
name : 和歌山
3266
3268
prefecture_id : 30
3267
3269
logo : " /img/dojos/wakayama.webp"
3268
- url : https://www.facebook .com/coderdojo.wakayama /
3270
+ url : https://coderdojo-wakayama.hatenablog .com/
3269
3271
description : 和歌山市で毎月開催
3270
3272
tags :
3271
3273
- Scratch
3281
3283
- Scratch
3282
3284
- id : 99
3283
3285
order : ' 302066'
3284
- note : ' Active for years.'
3286
+ note : ' Active for years. https://coderdojo-nanki-tanabe.jimdofree.com/%E9%96%8B%E5%82%AC%E4%BA%88%E5%AE%9A-%E5%8F%82%E5%8A%A0%E6%96%B9%E6%B3%95/ '
3285
3287
created_at : ' 2017-09-06'
3286
3288
name : 南紀田辺
3287
3289
prefecture_id : 30
3920
3922
- Python
3921
3923
- id : 55
3922
3924
order : ' 454419'
3925
+ note : ' Active for years - 2025-04-13 https://x.com/YoseiIto/status/1889435600337641670'
3923
3926
created_at : ' 2016-09-15'
3924
3927
name : 宮崎
3925
3928
prefecture_id : 45
3959
3962
- micro:bit
3960
3963
- id : 106
3961
3964
order : ' 472051'
3965
+ note : ' 2020-08-16 から浦添と合同でイベント開催? https://www.facebook.com/coderdojo.ginowan/posts/pfbid0wKhwQAbNXcoEfEwZc9e1CxqKB7dfNZ8xmhZFf6SpxRC99vYWdrVGwBr7Y3W1GkxVl'
3962
3966
created_at : ' 2017-09-20'
3963
3967
name : 宜野湾
3964
3968
prefecture_id : 47
4104
4108
- Scratch
4105
4109
- id : 318
4106
4110
order : ' 473502'
4107
- note : ' Active - Reports are here https://note.com/code_for_haebaru/m/ mb9902e30b85a'
4111
+ note : ' 2025-03-24 https://note.com/code_for_haebaru/n/n2823cfb85bbc?magazine_key= mb9902e30b85a'
4108
4112
created_at : ' 2024-05-19'
4109
4113
name : 南風原
4110
4114
prefecture_id : 47
You can’t perform that action at this time.
0 commit comments