-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathindex.html.erb
More file actions
39 lines (35 loc) · 1.54 KB
/
index.html.erb
File metadata and controls
39 lines (35 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<%= render 'admin/layout' do %>
<nav>
<div class="nav nav-tabs" id="nav-tab" role="tablist">
<% @conference.conference_days.each do |day| %>
<%= link_to day.date, admin_tracks_path(date: day.date.strftime("%Y-%m-%d"), track_name: @conference.tracks.first.name),
{
class: "nav-item nav-link #{active_date_tab?(day)? 'active' : ''}",
id: "nav-#{day.date}-tab",
role: "tab",
'aria-controls': "nav-#{day.date}",
'aria-selected': "true",
}
%>
<% end %>
</div>
</nav>
<div class="tab-content" id="nav-tabContent">
<% @conference.conference_days.each do |day| %>
<div class="tab-pane fade show <%= active_date_tab?(day) ? 'active' : '' %>" id="nav-<%= day.date %>" role="tabpanel" aria-labelledby="nav-<%= day.date %>-tab">
<% if active_date_tab?(day) %>
<%= render 'admin/tracks/tracks_nav', conference: @conference, conference_day: day %>
<% end %>
</div>
<% end %>
</div>
<% end %>
<div id="transit_nav" class="p-4">
<%= form_with url: admin_update_offset_path, id: 'time' do |f| %>
<%= f.submit("Offsetを更新", {id: "submit-offset", class: "btn transit_button" }) %>
<% end %>
</div>
<%= turbo_frame_tag "modal" %>
<div id="flashes" class="position-fixed bottom-0 end-0" style="margin: 0.75rem"></div>
<%= javascript_include_tag 'admin/tracks/media_live.js' %>
<%= javascript_include_tag 'admin/tracks/tracks_control.js' %>