<% if signed_in? %> <%= link_to t('profile'), settings_profile_index_path %> <%= link_to t('settings'), settings_path %> <% if current_account.testing? && (can?(:manage, EncryptedConfig) || current_user != true_user) %> <%= button_to '', testing_account_path, method: :delete, form: { data: { turbo_action: 'replace' } } %> <% end %> <% if can?(:create, ::Template) %> <% end %> <% if can?(:create, ::Template) && controller_name.in?(%w[templates_dashboard submissions_dashboard template_folders templates_archived submissions_archived]) %> <% folder_name = @template_folder&.full_name %> <%= link_to t('create'), new_template_path(folder_name: folder_name), data: { turbo_frame: :modal, native_modal: :medium } %> <% unless controller_name.in?(%w[templates_archived submissions_archived]) %> <%= link_to t('create'), new_template_path(folder_name: folder_name), data: { turbo_frame: :modal, native_modal: :medium } %> <% end %> <% end %> <% end %>