Sha256: f966a6565a803329910dd197984ad9ab7cd2a9262162c1fd1092bbffb9e6db5e

Contents?: true

Size: 509 Bytes

Versions: 10

Compression:

Stored size: 509 Bytes

Contents

# frozen_string_literal: true
module Admin
  module Components
    class PanelWithLink < Arbre::Component
      builder_method :panel_with_link
      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
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
light_admin-1.1.4 lib/light_admin/panel_with_link.rb
light_admin-1.1.3 lib/light_admin/panel_with_link.rb
light_admin-1.1.2 lib/light_admin/panel_with_link.rb
light_admin-1.1.1 lib/light_admin/panel_with_link.rb
light_admin-1.1.0 lib/light_admin/panel_with_link.rb
light_admin-1.0.9 lib/light_admin/panel_with_link.rb
light_admin-1.0.8 lib/light_admin/panel_with_link.rb
light_admin-1.0.7 lib/light_admin/panel_with_link.rb
light_admin-1.0.6 lib/light_admin/panel_with_link.rb
light_admin-1.0.5 lib/light_admin/panel_with_link.rb