tkh_admin_panel 0.2.6 → 0.2.7

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.7
6
+
7
+ * Removed language switcher partial. It's been moved to the tkh_menus gem
8
+
9
+
5
10
  ## 0.2.6
6
11
 
7
12
  * Fixed typo in language switcher
@@ -1,3 +1,3 @@
1
1
  module TkhAdminPanel
2
- VERSION = "0.2.6"
2
+ VERSION = "0.2.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tkh_admin_panel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-15 00:00:00.000000000 Z
12
+ date: 2013-01-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties
@@ -117,7 +117,6 @@ files:
117
117
  - app/views/settings/edit.html.erb
118
118
  - app/views/settings/show.html.erb
119
119
  - app/views/shared/_admin_sidebar.html.erb
120
- - app/views/shared/_language_switcher.html.erb
121
120
  - config/routes.rb
122
121
  - lib/generators/tkh_admin_panel/copy_files/copy_files_generator.rb
123
122
  - lib/generators/tkh_admin_panel/copy_files/templates/_admin_sidebar.html.erb
@@ -1,26 +0,0 @@
1
- <% def full_language_name( lang = :en) %>
2
- <% list = { :en => 'English',
3
- :fr => 'Français',
4
- :es => 'Español',
5
- :de => 'Deutsch'
6
- }
7
- %>
8
- <% list[lang] %>
9
- <% end %>
10
-
11
- <% if I18n.available_locales.size > 1 %>
12
-
13
- <div class="btn-group">
14
- <a class="btn btn-medium btn-primary btn-success dropdown-toggle" data-toggle="dropdown" href="#">
15
- <%= full_language_name(I18n.locale) %>
16
- <span class="caret"></span>
17
- </a>
18
- <ul class="dropdown-menu">
19
- <% for loc in I18n.available_locales %>
20
- <%= content_tag( :li, link_to( full_language_name(loc), :locale => loc )) unless loc.to_s == I18n.locale.to_s %>
21
- <% end %>
22
- </ul>
23
- </div>
24
-
25
- <% end -%>
26
- <br />