Class: Maquina::Navbar::MobileMenu
- Inherits:
-
Phlex::HTML
- Object
- Phlex::HTML
- Maquina::Navbar::MobileMenu
- Includes:
- ApplicationView
- Defined in:
- app/views/maquina/navbar/mobile_menu.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 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'app/views/maquina/navbar/mobile_menu.rb', line 8 def view_template div class: "hidden lg:hidden", **data_attributes do render Maquina::Navbar::Menu.new(desktop: false) div class: "pt-4 pb-3 border-t border-gray-200" do div class: "flex items-center px-4" do div class: "flex-shrink-0" do img class: "h-10 w-10 rounded-full", src: "https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80", alt: "" end div class: "ml-3" do div(class: "text-base font-medium text-skin-muted") { "Tom Cook" } div(class: "text-sm font-medium text-skin-dimmed") { "[email protected]" } end render Maquina::Navbar::Notification.new(desktop: false) end render Maquina::Navbar::ProfileMenu.new(desktop: false) end end end |