tkh_menus 0.2 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
 
4
4
 
5
+ ## 0.2.1
6
+
7
+ * Navbar menu items are not downcased anymore
8
+
9
+
5
10
  ## 0.2
6
11
 
7
12
  * Added language switcher partial
@@ -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.downcase %> <b class="caret"></b></a>
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.downcase, page) %>
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.downcase, pc) %>
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.downcase, page) %>
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.downcase <b class="caret"></b></a>
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.downcase, menu.path) %>
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.downcase, mc.path) %>
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.downcase, menu.path) %>
39
+ <%= content_tag :li, link_to(menu.name, menu.path) %>
40
40
  <% end -%>
41
41
  <% end %>
42
42
  <% end -%>
@@ -1,3 +1,3 @@
1
1
  module TkhMenus
2
- VERSION = "0.2"
2
+ VERSION = "0.2.1"
3
3
  end
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: '0.2'
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: -3862957743566485703
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: -3862957743566485703
183
+ hash: -2822789325055606849
184
184
  requirements: []
185
185
  rubyforge_project:
186
186
  rubygems_version: 1.8.23