Sha256: e027e6a68d9d1daf9bf452169d599af0cd20cfb2aec3b53b4c16a7e6ad38e9d0
Contents?: true
Size: 1.45 KB
Versions: 2
Compression:
Stored size: 1.45 KB
Contents
<% destroy_user_session_path = "destroy_#{Avo.configuration.current_user_resource_name}_session_path".to_sym %> <div <% if main_app.respond_to?(destroy_user_session_path) %> data-controller="toggle-panel" <% end %>> <a href="javascript:void(0);" class="flex items-center cursor-pointer font-semibold text-gray-700" data-action="click->toggle-panel#togglePanel"> <% if _current_user.respond_to?(:avatar) && _current_user.avatar.present? %> <%= image_tag _current_user.avatar, class: "h-12 rounded-full border-4 border-white mr-1" %> <% end %> <% if _current_user.respond_to?(:name) && _current_user.name.present? %> <%= _current_user.name %> <% elsif _current_user.respond_to?(:email) && _current_user.email.present? %> <%= _current_user.email %> <% else %> Avo user <% end %> <% if main_app.respond_to?(destroy_user_session_path) %> <%= svg 'chevron-down', class: "ml-1 h-4" %> <% end %> </a> <% if main_app.respond_to?(destroy_user_session_path) %> <div class="hidden absolute inset-auto right-0 mr-6 mt-0 py-4 bg-white rounded-xl min-w-[200px] shadow-context" data-toggle-panel-target="panel"> <%= button_to t('avo.sign_out'), main_app.send(destroy_user_session_path), method: :delete, form: { "data-turbo" => "false" }, class: "appearance-none bg-white text-left cursor-pointer text-green-600 font-semibold hover:text-white hover:bg-green-500 block px-4 py-1 w-full" %> </div> <% end %> </div>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
avo-1.25.2 | app/views/avo/partials/_profile_dropdown.html.erb |
avo-1.25.1 | app/views/avo/partials/_profile_dropdown.html.erb |