rich_table_component 0.0.18 → 0.0.21
Sign up to get free protection for your applications and to get access to all the features.
- data/app/helpers/menus_helper.rb +3 -1
- data/app/views/rich_table_component/component/_breadcrumbs_dropdown.html.haml +6 -0
- data/app/views/rich_table_component/rtc/_advanced_search.html.haml +3 -2
- data/app/views/rich_table_component/rtc/_advanced_search_recapitulation.html.haml +3 -2
- data/lib/rich_table_component/version.rb +1 -1
- metadata +2 -2
data/app/helpers/menus_helper.rb
CHANGED
@@ -94,7 +94,9 @@ module MenusHelper
|
|
94
94
|
elsif !controller_name.eql?('home')
|
95
95
|
results << t("#{controller_name.singularize}")
|
96
96
|
end
|
97
|
-
render 'rich_table_component/component/breadcrumbs', breadcrumbs: results, limit: limit
|
97
|
+
result = (render 'rich_table_component/component/breadcrumbs', breadcrumbs: results, limit: limit)
|
98
|
+
@parent_resources = nil
|
99
|
+
result
|
98
100
|
end
|
99
101
|
|
100
102
|
|
@@ -1,4 +1,10 @@
|
|
1
1
|
= breadcrumb[:current]
|
2
|
+
- puts '###############################'
|
3
|
+
- puts breadcrumb[:parent_object].nil?
|
4
|
+
- puts breadcrumb[:parent_object].present?
|
5
|
+
- puts breadcrumb[:parent_object].class.name
|
6
|
+
- puts breadcrumb[:resource]
|
7
|
+
- puts '###############################'
|
2
8
|
%ul.dropdown-menu
|
3
9
|
- if breadcrumb[:parent_object].present?
|
4
10
|
- if breadcrumb[:parent_object].respond_to?(breadcrumb[:resource])
|
@@ -10,8 +10,9 @@
|
|
10
10
|
- # Check attribute type, then breakdown att
|
11
11
|
- case att
|
12
12
|
- when Hash
|
13
|
-
-
|
14
|
-
|
13
|
+
- if att[:params].present?
|
14
|
+
- att_params = att[:params]
|
15
|
+
- att = att[:input]
|
15
16
|
|
16
17
|
- attribute = att.to_s
|
17
18
|
- range = true
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rich_table_component
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.21
|
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-03-
|
12
|
+
date: 2013-03-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sass-rails
|