% content_for :title, t(".character_sheet", name: @character.name) %>
<%= @character.name %>
<% if @editable %>
<%= link_to t(".stop_editing"), url_for(editable: false) %>
<% else %>
<%= link_to t(".edit"), url_for(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 %>