<% content_for :title, t(".character_sheet", name: @character.name) %>

<%= @character.name %>

<% if @editable %> <%= link_to t(".stop_editing"), character_character_sheet_sections_path(editable: false) %> <% else %> <%= link_to t(".edit"), character_character_sheet_sections_path(editable: true) %> <% end %>
<% if @sections.any? %> <%= render @sections %> <% else %>

<%= t(".no_sections") %>

<% end %>
<% if @editable %>
<%= link_to t(".add_section"), new_character_character_sheet_section_path(@character), data: { turbo_stream: true } %>
<% end %>