graph_starter 0.9.2 → 0.9.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e98f3c7ee6475a49cb99d72b761c13d3a790ff83
|
4
|
+
data.tar.gz: 70c586c7ab39e375eb2283835faa2ba534faa465
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32003ffb3bb3bbc43ab83e046b317332a7cda0a51342aef9e7223dbf947b3599576f197c5b5fc9ec0f7f69edcd364cf4143d0c2451150e8218990b32257ba112
|
7
|
+
data.tar.gz: 900d2853774e51b3bf0baad68387a137528f3bb394237460b7e9a00821aafa22814d887223336d814e6046d526df5b8641e2bed0bc571289924195d9a7fc260e
|
@@ -25,7 +25,10 @@
|
|
25
25
|
- field_name = (association.type == :has_many ? "#{name.to_s.singularize}_ids" : "#{name}_id")
|
26
26
|
- target_class = association.target_class
|
27
27
|
- options = target_class.as(:n).pluck(target_class.name_property, target_class.id_property_name)
|
28
|
-
|
28
|
+
|
29
|
+
- html_options = {class: 'ui fluid search dropdown'}
|
30
|
+
- html_options[:multiple] = '' if association.type == :has_many
|
31
|
+
= f.select field_name, options, {}, html_options
|
29
32
|
|
30
33
|
javascript:
|
31
34
|
$('.ui.dropdown').dropdown()
|
@@ -1,10 +1,11 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
-
|
7
|
-
|
8
|
-
|
1
|
+
- unless @hide_menu
|
2
|
+
#menu.ui.secondary.pointing.menu
|
3
|
+
= link_to 'Home', '/', class: "item #{'active' if request.path == '/'}"
|
4
|
+
- config = GraphStarter::CONFIG
|
5
|
+
- menu_models = config.menu_models && config.menu_models.map(&:to_s)
|
6
|
+
- GraphStarter::Asset.descendants.sort_by {|m| (menu_models || []).index(m.name) || 0 }.each do |model_class|
|
7
|
+
- next if menu_models && !model_class.name.in?(menu_models)
|
8
|
+
- path = graph_starter.assets_path(model_slug: model_class.model_slug)
|
9
|
+
= link_to model_class.name.tableize.humanize, path, class: "item #{'active' if request.path.match(/^#{path}/)}"
|
9
10
|
|
10
|
-
|
11
|
+
= render 'layouts/graph_starter/custom_menu'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graph_starter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Underwood
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|