Class: Maquina::Navbar::ProfileButton
- Inherits:
-
Phlex::HTML
- Object
- Phlex::HTML
- Maquina::Navbar::ProfileButton
- Includes:
- ApplicationView
- Defined in:
- app/views/maquina/navbar/profile_button.rb
Instance Method Summary collapse
Methods included from ApplicationView
#attribute_human_name, #button_to, #image_tag, #link_to, #model_human_name, #svg_icon
Instance Method Details
#view_template ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'app/views/maquina/navbar/profile_button.rb', line 8 def view_template div do type: "button", class: "bg-white rounded-full hidden lg:flex text-sm focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500", id: "user-menu-button", "aria-expanded": false, "aria-haspopup": true, "data-action": "popup-menu#toggleTransition" do span(class: "sr-only") { "Open user menu" } svg_icon(:outline, stroke_width: 1.5, icon: user_icon) end end end |