Sha256: cca9f1ae5d58791a413df57645a8e37a80febcfe158039eb284f7e23268bbe14
Contents?: true
Size: 891 Bytes
Versions: 5
Compression:
Stored size: 891 Bytes
Contents
<%# headmin/layout/sidebar/menu/account accepts block: yes parameters: scope: (symbol) devise scope, i.e. ':users' => current_user %> <% scope = local_assigns.has_key?(:scope) ? scope : 'users' %> <% singular = scope.to_s.singularize.to_sym %> <% user = send("current_#{singular}") %> <%= render 'headmin/dropdown', class: 'nav-item' do %> <%= render 'headmin/dropdown/button', class: 'nav-link', id: 'nav-item-devise' do %> <%= user.to_s %> <% end %> <%= render 'headmin/dropdown/list', id: 'nav-item-devise' do %> <%= render 'headmin/dropdown/item', name: t('.edit_profile'), url: polymorphic_path([:edit, singular, :registration]) %> <%= render 'headmin/dropdown/divider' %> <%= render 'headmin/dropdown/item', name: t('.log_out'), url: polymorphic_path([:destroy, singular, :session]), data: { "turbo-method": "delete" } %> <% end %> <% end %>
Version data entries
5 entries across 5 versions & 1 rubygems