Class: Admin::Components::PanelWithLink

Inherits:
Arbre::Component
  • Object
show all
Defined in:
lib/light_admin/panel_with_link.rb

Instance Method Summary collapse

Instance Method Details

#build(title, link_text, link_url, attributes = {}) ⇒ Object



6
7
8
9
10
11
12
13
14
# File 'lib/light_admin/panel_with_link.rb', line 6

def build(title, link_text, link_url, attributes = {})
  super(attributes)
  div class: 'd-flex justify-content-between align-items-center title-panel-wrap' do
    h3(title, class: 'panel-title panel-with-link')
    div class: 'ml-auto' do
      link_to(link_text, link_url)
    end
  end
end