Skip to content

Commit 68cc4bf

Browse files
committed
ハイライトを付け、Active/In-active チェックの対応リストをわかりやすくした
1 parent 3b07192 commit 68cc4bf

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

app/views/events/latest.html.erb

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,19 @@
7575
<td>
7676
<small>
7777
<% if dojo[:event_url].nil? %>
78-
<span><%= dojo[:event_at] %></span>
78+
<!-- 別サービスでイベント管理している Dojo で、"Active" の確認が無い場合はハイライトする -->
79+
<span class=<%= 'expired' if !dojo[:note].include?('Active') %>>
80+
<%= link_to dojo[:event_at], dojo_path(dojo[:id]) %>
81+
</span>
7982
<% elsif dojo[:event_at] <= Time.current.prev_year && !dojo[:note].include?('Active') %>
80-
<!-- 1年以上開催が確認できていない Dojo で、"Active" の確認が無い場合はハイライトする -->
81-
<span class='expired'><a href="<%= dojo[:event_url] %>"><%= dojo[:event_at] %></a></span>
83+
<!-- 過去1年間イベント開催していない Dojo で、"Active" の確認が無い場合はハイライトする -->
84+
<span class='expired'>
85+
<%= link_to dojo[:event_at], dojo[:event_url] %>
86+
</span>
8287
<% else %>
83-
<span><a href="<%= dojo[:event_url] %>"><%= dojo[:event_at] %></a></span>
88+
<span>
89+
<%= link_to dojo[:event_at], dojo[:event_url] %>
90+
</span>
8491
<% end %>
8592
</small>
8693
</td>

0 commit comments

Comments
 (0)