tkh_menus 0.2 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +5 -0
- data/app/views/shared/_menu_for_navbar.html.erb +8 -8
- data/lib/tkh_menus/version.rb +1 -1
- metadata +3 -3
data/CHANGELOG.md
CHANGED
@@ -3,17 +3,17 @@
|
|
3
3
|
<% Page.not_for_blog.orphans.published.by_menu_position.each do |page| %>
|
4
4
|
<% if page.has_children? %>
|
5
5
|
<li class='dropdown'>
|
6
|
-
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><%= page.nickname
|
6
|
+
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><%= page.nickname %> <b class="caret"></b></a>
|
7
7
|
<ul class="dropdown-menu">
|
8
|
-
<%= content_tag :li, link_to(page.nickname
|
8
|
+
<%= content_tag :li, link_to(page.nickname, page) %>
|
9
9
|
<li class="divider"></li>
|
10
10
|
<% page.children.by_menu_position.each do |pc| %>
|
11
|
-
<%= content_tag :li, link_to(pc.nickname
|
11
|
+
<%= content_tag :li, link_to(pc.nickname, pc) %>
|
12
12
|
<% end %>
|
13
13
|
</ul>
|
14
14
|
</li>
|
15
15
|
<% else %>
|
16
|
-
<%= content_tag :li, link_to(page.nickname
|
16
|
+
<%= content_tag :li, link_to(page.nickname, page) %>
|
17
17
|
<% end -%>
|
18
18
|
<% end %>
|
19
19
|
<% end -%>
|
@@ -26,17 +26,17 @@
|
|
26
26
|
<% Menu.orphans.ordered.each do |menu| %>
|
27
27
|
<% if menu.has_children? %>
|
28
28
|
<li class='dropdown'>
|
29
|
-
<a href="#" class="dropdown-toggle" data-toggle="dropdown">menu.name
|
29
|
+
<a href="#" class="dropdown-toggle" data-toggle="dropdown">menu.name <b class="caret"></b></a>
|
30
30
|
<ul class="dropdown-menu">
|
31
|
-
<%= content_tag :li, link_to(menu.name
|
31
|
+
<%= content_tag :li, link_to(menu.name, menu.path) %>
|
32
32
|
<li class="divider"></li>
|
33
33
|
<% menu.children.each do |mc| %>
|
34
|
-
<%= content_tag :li, link_to(mc.name
|
34
|
+
<%= content_tag :li, link_to(mc.name, mc.path) %>
|
35
35
|
<% end %>
|
36
36
|
</ul>
|
37
37
|
</li>
|
38
38
|
<% else %>
|
39
|
-
<%= content_tag :li, link_to(menu.name
|
39
|
+
<%= content_tag :li, link_to(menu.name, menu.path) %>
|
40
40
|
<% end -%>
|
41
41
|
<% end %>
|
42
42
|
<% end -%>
|
data/lib/tkh_menus/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tkh_menus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -171,7 +171,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
171
171
|
version: '0'
|
172
172
|
segments:
|
173
173
|
- 0
|
174
|
-
hash: -
|
174
|
+
hash: -2822789325055606849
|
175
175
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
176
176
|
none: false
|
177
177
|
requirements:
|
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
180
180
|
version: '0'
|
181
181
|
segments:
|
182
182
|
- 0
|
183
|
-
hash: -
|
183
|
+
hash: -2822789325055606849
|
184
184
|
requirements: []
|
185
185
|
rubyforge_project:
|
186
186
|
rubygems_version: 1.8.23
|