|
| 1 | +<% provide :title, "CoderDojo #{@dojo[:name]} - 統計情報" %> |
| 2 | +<% provide :desc, "CoderDojo #{@dojo[:name]}に関する公開されている統計情報をまとめたページです。" %> |
| 3 | +<% provide :url, dojo_url(@dojo) %> |
| 4 | +<% provide :meta_image, "/img/ogp-events.jpeg" %> |
| 5 | + |
| 6 | +<section class="cover"> |
| 7 | + <%= lazy_image_tag "/events_cover.jpg", alt: "Cover Photo on Upcoming Events", min: true %> |
| 8 | +</section> |
| 9 | + |
| 10 | +<section id="events" class="text-center" style="margin-bottom: 100px;"> |
| 11 | + <br> |
| 12 | + <h1>☯️ |
| 13 | + CoderDojo <%= @dojo.name %> の統計情報<br><small>(公開情報のみ掲載)</small> |
| 14 | + </h1> |
| 15 | + <br> |
| 16 | + <p style="margin: 0 0px 40px 10px; line-height: 1.5em;"> |
| 17 | + CoderDojo <%= @dojo[:name] %>に関する公開されている統計情報をまとめたページです。 |
| 18 | + <br><br> |
| 19 | + <small> |
| 20 | + ※ |
| 21 | + <a href="<%= events_path %>">近日開催</a>のデータは含まず、<a href="<%= stats_path %>">過去開催</a>のデータを使っています。 |
| 22 | + <br> |
| 23 | + ※ |
| 24 | + より詳細データは<code><%= link_to dojo_path(@dojo) + '.json', dojo_url(@dojo) + ".json" %></code> でご確認いただけます。 |
| 25 | + <br> |
| 26 | + </small> |
| 27 | + </p> |
| 28 | + |
| 29 | + <div style="margin-top: 20px;" align="center"> |
| 30 | + <table border="1"> |
| 31 | + <tr> |
| 32 | + <th style="padding: 10px; text-align: center;"> |
| 33 | + <small>☯️ |
| 34 | + 開催日 |
| 35 | + </small> |
| 36 | + </th> |
| 37 | + <th style="padding: 10px; text-align: center;"> |
| 38 | + <small>👥 |
| 39 | + 参加数 |
| 40 | + </small> |
| 41 | + </th> |
| 42 | + <th style="padding: 10px; text-align: center;"> |
| 43 | + <small>📝 |
| 44 | + URL |
| 45 | + </small> |
| 46 | + </th> |
| 47 | + </tr> |
| 48 | + <% @event_histories.each do |event| %> |
| 49 | + <tr> |
| 50 | + <td style="padding: 1px 10px 1px 10px; text-align: right;"> |
| 51 | + <small><%= event[:evented_at].strftime("%F") %></small> |
| 52 | + </td> |
| 53 | + <td style="padding: 1px 10px 1px 10px;"> |
| 54 | + <small><%= event[:participants] %></small> |
| 55 | + </td> |
| 56 | + <td style="padding: 1px 10px 1px 10px; text-align: left;"> |
| 57 | + <small> |
| 58 | + <a href='<%= event[:event_url] %>'> |
| 59 | + <span title="<%= event[:event_url] %>"><%= event[:event_url] %></span> |
| 60 | + </a> |
| 61 | + </small> |
| 62 | + </td> |
| 63 | + </tr> |
| 64 | + <% end %> |
| 65 | + </table> |
| 66 | + </div> |
| 67 | +</section> |
0 commit comments