|
1 |
| -<% provide(:title, '道場情報 - 直近の開催日まとめ') %> |
2 |
| -<% provide(:desc, '道場別の直近開催日をまとめたページです。') %> |
| 1 | +<% provide(:title, '道場情報 - 活動状況まとめ') %> |
| 2 | +<% provide(:desc, '道場別の掲載日と直近開催日をまとめたページです。') %> |
3 | 3 | <% provide(:url, activity_dojos_url) %>
|
4 | 4 | <% provide(:meta_image, '/img/ogp-events.jpeg') %>
|
5 | 5 |
|
|
9 | 9 |
|
10 | 10 | <section id="events" class="text-center" style="margin-bottom: 100px;">
|
11 | 11 | <br />
|
12 |
| - <h1>☯️ 道場別の直近の開催日まとめ</h1> |
| 12 | + <h1>☯️ 道場別の活動状況まとめ</h1> |
13 | 13 | <br />
|
14 | 14 | <p style="margin: 0 0px 40px 10px; line-height: 1.5em;">
|
15 | 15 | 主にデータ分析や
|
|
18 | 18 | <br>
|
19 | 19 | <div class='form__terms list'>
|
20 | 20 | <ul style='list-style-type: "\2713\0020"; font-size: smaller;'>
|
21 |
| - <li><%= link_to '近日開催', events_path %>のデータは含まず、<%= link_to '過去開催', stats_path %>のデータを使っています。</li> |
| 21 | + <li>「掲載日」は <%= link_to '/dojos', dojos_path %> ページと同じロジックで表示しています。</li> |
| 22 | + <li>「開催日」は <%= link_to '過去開催', stats_path %> のデータから直近の開催日を表示しています(<%= link_to '近日開催', events_path %>は含まず)。</li> |
22 | 23 | <li>開催データは <a href='https://doorkeeper.jp/'>Doorkeeper</a> と <a href='http://connpass.com/'>connpass</a> にのみ対応しています。</li>
|
23 |
| - <li>上記以外でイベント管理している場合は掲載日を表示しています。</li> |
24 | 24 | </ul>
|
25 | 25 | </div>
|
26 | 26 | </p>
|
|
29 | 29 | <table border="1" class="stats-table">
|
30 | 30 | <tr>
|
31 | 31 | <th>
|
32 |
| - <small>☯️ 道場名</small> |
| 32 | + <small> |
| 33 | + ☯️ |
| 34 | + <br class='ignore-pc'> |
| 35 | + 道場名 |
| 36 | + </small> |
33 | 37 | </th>
|
34 | 38 | <th>
|
35 |
| - <small><small> |
36 |
| - 🗓 直近の開催日または掲載日 |
37 |
| - </small></small> |
| 39 | + <small> |
| 40 | + 🗓 |
| 41 | + <br class='ignore-pc'> |
| 42 | + <a href='/signup'>掲載日</a> |
| 43 | + </small> |
38 | 44 | </th>
|
39 | 45 | <th>
|
40 |
| - <small>📝 ノート</small> |
| 46 | + <small> |
| 47 | + 👥 |
| 48 | + <br class='ignore-pc'> |
| 49 | + 開催日 |
| 50 | + </small> |
| 51 | + </th> |
| 52 | + <th> |
| 53 | + <small> |
| 54 | + 📝 |
| 55 | + <br class='ignore-pc'> |
| 56 | + ノート |
| 57 | + </small> |
41 | 58 | </th>
|
42 | 59 | </tr>
|
43 | 60 | <% @latest_event_by_dojos.each do |dojo| %>
|
|
47 | 64 | <a href="<%= dojo[:url] %>"><%= dojo[:name] %></a>
|
48 | 65 | </small>
|
49 | 66 | </td>
|
| 67 | + <td> |
| 68 | + <small><%= dojo[:created_at].strftime("%Y-%m-%d") %></small> |
| 69 | + </td> |
50 | 70 | <td>
|
51 | 71 | <small>
|
52 |
| - <% if dojo[:has_event_histories] %> |
53 |
| - <!-- 過去1年間イベント開催していない Dojo で、"Active" マークが無い場合はハイライトする --> |
54 |
| - <span class=<%= 'expired' if dojo[:event_at] <= Time.current.prev_year && !dojo[:note].include?('Active') %>> |
55 |
| - <%= link_to dojo[:event_at], dojo[:event_url] %> |
56 |
| - </span> |
| 72 | + <% if dojo[:latest_event_at] %> |
| 73 | + <!-- イベント履歴がある場合 --> |
| 74 | + <% expired = dojo[:latest_event_at] <= Time.current.prev_year && !dojo[:note].include?('Active') %> |
| 75 | + <span class="<%= 'expired' if expired %>"> |
| 76 | + <%= link_to dojo[:latest_event_at].strftime("%Y-%m-%d"), dojo[:latest_event_url] %> |
| 77 | + </span> |
| 78 | + <% elsif dojo[:note_date] %> |
| 79 | + <!-- note内に日付がある場合 --> |
| 80 | + <% expired = dojo[:note_date] <= Time.current.prev_year && !dojo[:note].include?('Active') %> |
| 81 | + <span class="<%= 'expired' if expired %>"> |
| 82 | + <% if dojo[:note_link] %> |
| 83 | + <%= link_to dojo[:note_date].strftime("%Y-%m-%d"), dojo[:note_link] %> |
| 84 | + <% else %> |
| 85 | + <%= dojo[:note_date].strftime("%Y-%m-%d") %> |
| 86 | + <% end %> |
| 87 | + </span> |
57 | 88 | <% else %>
|
58 |
| - <!-- 別サービスでイベント管理している Dojo で、"Active" マークが無い場合はハイライトする --> |
59 |
| - <!-- 別サービスでイベント管理している Dojo なら、note にある日付とリンクがあれば表示する --> |
60 |
| - <span class=<%= 'expired' if dojo[:event_at] <= Time.current.prev_year && !dojo[:note].include?('Active') %>> |
61 |
| - <%= link_to dojo[:event_at], dojo[:event_url] %> |
62 |
| - </span> |
| 89 | + <!-- 開催日情報なし --> |
| 90 | + <span style="color: #999;">-</span> |
63 | 91 | <% end %>
|
64 | 92 | </small>
|
65 | 93 | </td>
|
|
0 commit comments