tkh_menus 0.9.4 → 0.9.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/app/views/menus/_form.html.erb +4 -8
- data/app/views/menus/_tab_admin_menu.html.erb +3 -1
- data/lib/tkh_menus/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b700b880fbf4b2182a5950166f3e1a7d40ef7a51
|
4
|
+
data.tar.gz: 1d8ca5ff883a7342bf5a6e4461d41d03816a67d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18af85ce4b9f2c0caadcc0a06fe336b86e2ea94a5f826a62cbe246340c3a338aea14103939f52893ae7879052a596763cd5930f42a6284bfc3b186205d10132f
|
7
|
+
data.tar.gz: 78fb552c21fc0dcbebb6769b8788648ffe19b1734224397af3be0771f2fa10c10e9b7da155059e6aea007b5c979ae46f37b1f0ed87d316c342b28e402ded7421
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
<%= simple_form_for @menu, :html => { class: 'form-horizontal' } do |f| %>
|
2
2
|
<%= f.error_notification %>
|
3
|
-
|
4
|
-
<div class="form-inputs">
|
3
|
+
|
5
4
|
<%= f.input :name, label: t('activerecord.attributes.menu.name'), hint: t('menus.hint.name') %>
|
6
5
|
<%= f.input :path, label: t('activerecord.attributes.menu.path'), hint: t('menus.hint.path') %>
|
7
6
|
<%# = f.input :parent_id, label: t('activerecord.attributes.menu.parent'), hint: t('menus.hint.parent') %>
|
@@ -9,14 +8,11 @@
|
|
9
8
|
as: :string,
|
10
9
|
:wrapper_html => { :id => 'parent-menu-name' },
|
11
10
|
label: t('activerecord.attributes.menu.parent'),
|
12
|
-
:input_html => {
|
11
|
+
:input_html => {
|
13
12
|
:autocomplete => 'off',
|
14
13
|
:data => { provide: 'typeahead',
|
15
|
-
source: Menu.orphans.alphabetical.map(&:name).to_json }
|
14
|
+
source: Menu.orphans.alphabetical.map(&:name).to_json }
|
16
15
|
} %>
|
17
|
-
|
18
|
-
|
19
|
-
<div class="form-actions">
|
16
|
+
<br />
|
20
17
|
<%= f.button :submit, :class => 'btn btn-primary' %>
|
21
|
-
</div>
|
22
18
|
<% end %>
|
@@ -2,5 +2,7 @@
|
|
2
2
|
<%= content_tag :li, link_to(t('new'), new_menu_path), ({ class: 'active' } if controller.action_name.to_s == 'new' ) %>
|
3
3
|
<%= content_tag :li, link_to(t('list'), menus_path), ({ class: 'active' } if controller.action_name.to_s == 'index' ) %>
|
4
4
|
<%= content_tag :li, link_to(t('edit'), '#'), ({ class: 'active' }) if controller.action_name.to_s == 'edit' %>
|
5
|
-
|
5
|
+
<% if Menu.count > 0 # Exception is raised if there are no menu items %>
|
6
|
+
<%= content_tag :li, link_to(t('menus.reorder'), reorder_menu_path(Menu.orphans.first.id)), ({ class: 'active' } if controller.action_name.to_s == 'reorder' ) %>
|
7
|
+
<% end %>
|
6
8
|
</ul>
|
data/lib/tkh_menus/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tkh_menus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Swami Atma
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|