tabletop-companion/app/views/layouts/table.html.erb

27 lines
917 B
Plaintext
Raw Permalink Normal View History

2024-06-14 07:39:38 +00:00
<%= content_for :header_content do %>
<ul id="table-notifications"></ul>
<% end %>
2024-06-12 17:20:14 +00:00
<% content_for :submenu do %>
2024-06-13 16:04:25 +00:00
<%= turbo_stream_from @table %>
2024-06-12 17:20:14 +00:00
<h2><%= @table.name %></h2>
2024-06-13 13:18:12 +00:00
<nav class="table-tabs">
2024-06-12 17:20:14 +00:00
<ul>
2024-06-13 13:18:12 +00:00
<li><%= link_to t(".overview"), @table, class: class_names(active: params[:controller] == "tables") %></li>
2024-06-12 17:20:14 +00:00
<% @characters.each do |character| %>
2024-06-13 13:18:12 +00:00
<li><%= link_to character.name, table_character_character_sheet_sections_path(@table, character),
class: class_names(active: params[:controller] == "character_sheet_sections") %></li>
2024-06-12 17:20:14 +00:00
<% end %>
2024-06-13 13:18:12 +00:00
<li><%= link_to t(".events"), table_events_path(@table), class: class_names(active: params[:controller] == "events") %></li>
2024-06-12 17:20:14 +00:00
</ul>
</nav>
<% end %>
<% content_for :main do %>
<%= turbo_frame_tag("table-content") do %>
<%= yield %>
<% end %>
<% end %>
<%= render template: "layouts/application" %>