Sha256: f8baebe783999fc248d5ad6ae319119ef46cb971fca9aeb3b05db612cfb37f20
Contents?: true
Size: 920 Bytes
Versions: 1
Compression:
Stored size: 920 Bytes
Contents
class NavBar include Inesita::Component def render nav.navbar.navbar_expand_lg.navbar_light.bg_light do span.navbar_brand do text '<%= config[:project_name] %>' end div.collapse.navbar_collapse do ul.nav.navbar_nav.mr_auto do li.nav_item class: class_names(active: router.current_url?(:home)) do a.nav_link href: router.url_for(:home) do text 'Home' end end li.nav_item class: class_names(active: router.current_url?(:description)) do a.nav_link href: router.url_for(:description) do text 'Description' end end li.nav_item class: class_names(active: router.current_url?(:counters)) do a.nav_link href: router.url_for(:counters) do text 'Example Counters' end end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
inesita-0.9.0 | lib/inesita/cli/template/app/components/navbar.rb.tt |