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

21 lines
561 B
Plaintext

<% content_for :submenu do %>
<h2><%= @table.name %></h2>
<nav>
<ul>
<li><%= link_to t(".overview"), @table %></li>
<% @characters.each do |character| %>
<li><%= link_to character.name, table_character_character_sheet_sections_path(@table, character) %></li>
<% end %>
<li><%= link_to t(".events"), table_events_path(@table) %></li>
</ul>
</nav>
<% end %>
<% content_for :main do %>
<%= turbo_frame_tag("table-content") do %>
<%= yield %>
<% end %>
<% end %>
<%= render template: "layouts/application" %>