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

21 lines
536 B
Plaintext
Raw Normal View History

2024-06-12 17:20:14 +00:00
<% 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 %>
2024-06-13 12:24:54 +00:00
<li><%= link_to t(".events"), table_events_path(@table) %></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" %>