RubyGems Navigation menu

add_active_to_link 0.1.1

jQuery snippet for Rails projects that parses the url for the current page, and adds an 'active' class decoration to links that match the current page. By default this snippet is designed to work with Twitter Bootstrap v4 header navigation. However, you can target different elements in your page(s) by modifying the active_element variable. In the default it is targetting links within a line item within a header element with a class of navbar-nav.

Gemfile:
= 複製 已複製

安裝:
=

版本列表:

  1. 0.1.1 - January 12, 2017 (9.0 KB)
  2. 0.1.0 - January 12, 2017 (9.0 KB)

Development 相依性套件 (2):

bundler ~> 1.13
rake ~> 10.0

擁有者:

作者:

  • David Chmura

SHA 256 總和檢查碼:

458c93e93fdbd78e28bb72059746db47ae43995ce0de8b9e6797f050fed6ab9d

總下載次數 5,267

這個版本 2,979

授權:

MIT

Ruby 版本需求: >= 0

相關連結: