tkh_menus 0.9.4 → 0.9.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0db7ca1119b1376827cbff2ebc5416ac43fe90f7
4
- data.tar.gz: 045d1199e94a1af84a9fd5cde78ca0581712367d
3
+ metadata.gz: b700b880fbf4b2182a5950166f3e1a7d40ef7a51
4
+ data.tar.gz: 1d8ca5ff883a7342bf5a6e4461d41d03816a67d7
5
5
  SHA512:
6
- metadata.gz: f18793e889360931de56c58bf29b42d5c895dc5cb2a128610feb630a7c7934180e089fed775638e45b4fdbe09d8d9503d239941835da07f5b8a053f64f887a39
7
- data.tar.gz: 3bee6bd377aa9cc822a3f4377a07d7b7c65e26caad1a64368c27e61855a1322bbc674b9adf04108b96965542451b6efe66bacde715b88c6d7a092f17b6ad0574
6
+ metadata.gz: 18af85ce4b9f2c0caadcc0a06fe336b86e2ea94a5f826a62cbe246340c3a338aea14103939f52893ae7879052a596763cd5930f42a6284bfc3b186205d10132f
7
+ data.tar.gz: 78fb552c21fc0dcbebb6769b8788648ffe19b1734224397af3be0771f2fa10c10e9b7da155059e6aea007b5c979ae46f37b1f0ed87d316c342b28e402ded7421
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
 
4
4
 
5
+ ## 0.9.5
6
+
7
+ * Cleaned up menus form
8
+ * Debugged tab admin menu for when menu table is empty
9
+
10
+
5
11
  ## 0.9.4
6
12
 
7
13
  * Changed markup in context menu page to match bootstrap 3 lists.
@@ -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
- </div>
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
- <%= content_tag :li, link_to(t('menus.reorder'), reorder_menu_path(Menu.orphans.first.id)), ({ class: 'active' } if controller.action_name.to_s == 'reorder' ) %>
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>
@@ -1,3 +1,3 @@
1
1
  module TkhMenus
2
- VERSION = "0.9.4"
2
+ VERSION = "0.9.5"
3
3
  end
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
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-04 00:00:00.000000000 Z
11
+ date: 2014-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails