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

20 lines
466 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_path(@table, character) %></li>
<% end %>
</ul>
</nav>
<% end %>
<% content_for :main do %>
<%= turbo_frame_tag("table-content") do %>
<%= yield %>
<% end %>
<% end %>
<%= render template: "layouts/application" %>