Sha256: c791f8ab3ba48a8b334430dfcba571be31190b1fda105f78562bd958c03c9934
Contents?: true
Size: 702 Bytes
Versions: 1
Compression:
Stored size: 702 Bytes
Contents
module RedisMonitor module Helpers module LayoutsHelper def main_layout 'layouts/main'.to_sym end def selected_section(section, selected) 'active' if section == selected end def content_menu(selected_section) capture_haml do haml_tag :ul, class: 'nav navbar-nav' do haml_tag :li, class: selected_section('info', selected_section) do haml_tag :a, 'Info', href: '/info' end haml_tag :li, class: selected_section('performance', selected_section) do haml_tag :a, 'Performance', href: '/performance' end end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
redis_monitor-0.0.4 | lib/helpers/layouts_helper.rb |