<% @page_title = "Account settings" %> <% content_for :nav do %>
<%= link_back_to_last_room_visited %>
<% if Current.user.administrator? %>
<%= link_to account_bots_path, class: "btn", style: "view-transition-name: chat-bots" do %> <%= image_tag "bot.svg", aria: { hidden: "true" }, size: 20 %> Set up chat bots <% end %> <%= link_to edit_account_custom_styles_path, class: "btn", style: "view-transition-name: custom-styles" do %> <%= image_tag "art.svg", size: 20, aria: { hidden: "true" } %> Custom styles <% end %>
<% end %> <% end %>
<% if Current.user.can_administer? %>
<%= form_with model: @account, method: :patch, class: "txt--medium", data: { controller: "form" } do |form| %> <% end %> <%= form_with model: @account, method: :patch, data: { controller: "form" } do |form| %> <% end %> <% if @account.logo.attached? %> <%= button_to fresh_account_logo_path, method: :delete, class: "btn btn--negative txt-small avatar__delete-btn" do %> <%= image_tag "minus.svg", aria: { hidden: "true" }, size: 20 %> Delete logo <% end %> <% end %>
<%= form_with model: @account, data: { controller: "form" }, class: "flex flex-column gap" do |form| %>
<%= translation_button(:account_name) %> <%= form.button class: "btn btn--reversed center", type: "submit" do %> <%= image_tag "check.svg", aria: { hidden: "true" }, size: 20 %> Save changes <% end %>
<% end %> <% else %> <%= account_logo_tag style: "txt-xx-large center" %>

<%= @account.name %>

<% end %>
<%= render "accounts/invite" %>
<%= render partial: "accounts/users/user", collection: @page.records, as: :user %> <%= render "accounts/users/next_page_container", page: @page.next_param unless @page.last? %>
<% content_for :footer do %>
Campfire™ version <%= version_badge %>
<% end %>