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 校验和:

= 复制到剪贴板 已复制!

下载总量 5,273

这个版本 2,983

许可:

MIT

需要的 Ruby 版本: >= 0

链接: