app/views/masks/actors/current.html.erb in masks-0.3.2 vs app/views/masks/actors/current.html.erb in masks-0.4.0

- old
+ new

@@ -50,11 +50,10 @@ <%= t(@actor.emails.empty? ? ".add_email" : ".add_more_email") %> </a> </div> </div> - <div class="divider text-xs"> <%= t(".credentials") %> </div> <div class="alert text-left bg-neutral flex items-center gap-4"> @@ -62,13 +61,12 @@ <span class="flex-grow"> <%= t(".password") %> </span> <a - href="<%= password_path %>" - class="btn btn-sm btn-ghost hover:btn-secondary" - > + href="<%= password_path %>" + class="btn btn-sm btn-ghost hover:btn-secondary"> <%= t(".change") %> </a> </div> <div class="alert text-left flex items-center gap-4 <%= @actor.totp_secret ? 'bg-neutral' : 'bg-base-100' %>"> @@ -81,51 +79,46 @@ <span class="flex-grow"> <%= t(".one_time_codes") %> </span> <a href="<%= one_time_codes_path %>" - class="btn btn-sm btn-ghost hover:btn-secondary" - > + class="btn btn-sm btn-ghost hover:btn-secondary"> <%= @actor.totp_secret ? t(".manage") : t(".enable") %> </a> </div> <% if @actor.factor2? %> <div - class="alert text-left flex items-center gap-4 <%= @actor.saved_backup_codes? ? 'bg-neutral' : 'bg-base-100' %>" - > + class="alert text-left flex items-center gap-4 <%= @actor.saved_backup_codes? ? 'bg-neutral' : 'bg-base-100' %>"> <% if @actor.saved_backup_codes? %> <%= lucide_icon("check-circle-2", class: "stroke-success") %> <% else %> <%= lucide_icon("minus-circle") %> <% end %> <span class="flex-grow"> <%= t(".backup_codes") %> </span> <a href="<%= backup_codes_path %>" - class="btn btn-sm btn-ghost hover:btn-secondary" - > + class="btn btn-sm btn-ghost hover:btn-secondary"> <%= @actor.saved_backup_codes? ? t(".manage") : t(".enable") %> </a> </div> <% end %> <div - class="alert text-left flex items-center gap-4 <%= @actor.keys.any? ? 'bg-neutral' : 'bg-base-100' %>" - > + class="alert text-left flex items-center gap-4 <%= @actor.keys.any? ? 'bg-neutral' : 'bg-base-100' %>"> <% if @actor.keys.any? %> <%= lucide_icon("check-circle-2", class: "stroke-success") %> <% else %> <%= lucide_icon("minus-circle") %> <% end %> <span class="flex-grow"> <%= t(".keys") %> </span> <a href="<%= keys_path %>" - class="btn btn-sm btn-ghost hover:btn-secondary" - > + class="btn btn-sm btn-ghost hover:btn-secondary"> <%= @actor.keys.any? ? t(".add_more_key") : t(".add_key") %> </a> </div> <div class="divider text-xs"><%= t('.devices') %></div>