Sha256: bab3876175df8adc000183800601a6c702baa022c7c57dabdc31ebbfc7fb4075

Contents?: true

Size: 413 Bytes

Versions: 124

Compression:

Stored size: 413 Bytes

Contents

# frozen_string_literal: true

module Renalware
  module NavigationHelper
    # Path here must be already resolved to a string using url_for
    # e.g. Engine.routes.url_for({controller: .., action: .., only_path: true})
    def sub_nav_item(label, path)
      current_page = current_page?(path)
      content_tag(:dd, class: ("active" if current_page)) do
        link_to label, path
      end
    end
  end
end

Version data entries

124 entries across 124 versions & 1 rubygems

Version Path
renalware-core-2.0.149 app/helpers/renalware/navigation_helper.rb
renalware-core-2.0.148 app/helpers/renalware/navigation_helper.rb
renalware-core-2.0.147 app/helpers/renalware/navigation_helper.rb
renalware-core-2.0.146 app/helpers/renalware/navigation_helper.rb
renalware-core-2.0.145 app/helpers/renalware/navigation_helper.rb
renalware-core-2.0.144 app/helpers/renalware/navigation_helper.rb
renalware-core-2.0.143 app/helpers/renalware/navigation_helper.rb
renalware-core-2.0.142 app/helpers/renalware/navigation_helper.rb
renalware-core-2.0.141 app/helpers/renalware/navigation_helper.rb
renalware-core-2.0.140 app/helpers/renalware/navigation_helper.rb
renalware-core-2.0.139 app/helpers/renalware/navigation_helper.rb
renalware-core-2.0.138 app/helpers/renalware/navigation_helper.rb
renalware-core-2.0.137 app/helpers/renalware/navigation_helper.rb
renalware-core-2.0.136 app/helpers/renalware/navigation_helper.rb
renalware-core-2.0.135 app/helpers/renalware/navigation_helper.rb
renalware-core-2.0.134 app/helpers/renalware/navigation_helper.rb
renalware-core-2.0.133 app/helpers/renalware/navigation_helper.rb
renalware-core-2.0.132 app/helpers/renalware/navigation_helper.rb
renalware-core-2.0.131 app/helpers/renalware/navigation_helper.rb
renalware-core-2.0.130 app/helpers/renalware/navigation_helper.rb