graph_starter 0.13.9 → 0.13.10

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: feef09140d10b28ee5ca6709777b87788bd1df6b
4
- data.tar.gz: 184aed9f1240d516403b4eb74c0456dc342f683d
3
+ metadata.gz: f0dd5b781979ac553ebb2daff3e3c0be0d616850
4
+ data.tar.gz: 0d977229a3d297881082f04dc8e2aabdc65e5d81
5
5
  SHA512:
6
- metadata.gz: 63b22e0a72db950b7e8bb9d8186dfa75c800868cac515b81f943dec1a3452fe27ac04c8cba2343dc4c1bc869f47ba53a64f0e830e4332d832a84a09d310f6e85
7
- data.tar.gz: 7281d302157f7f4bfec6a56142483037bb2306a8be6171685b2346cf97424b72d5d19415dc6d516205b084b6bd194eca6cc876749539d444787a55ddd86959eb
6
+ metadata.gz: 94cffea81ed27356211be2002ffadc125be90632cdb1ed6a94564b826aedd631aed2f374b1011063dfb2a86afe03d42737dad7cfe9488e37d427d0c1e949ecde
7
+ data.tar.gz: 6b24856569bb58da566e04f70b390787e72e9810cced01a3c678878510840b25f14e5a0a27ca6b319747c3ac6a724bf304e6ae8f0593626ca0f337b9967f00a6
@@ -14,3 +14,7 @@
14
14
  display: none;
15
15
  z-index: 1000;
16
16
  }
17
+
18
+ #main {
19
+ margin-top: 60px;
20
+ }
@@ -1,11 +1,25 @@
1
1
  - unless @hide_menu
2
- #menu.ui.secondary.pointing.menu
3
- = link_to 'Home', '/', class: "item #{'active' if request.path == '/'}"
2
+ #menu.ui.pointing.top.fixed.menu
3
+ = link_to 'Home', '/', class: "item"
4
4
  - config = GraphStarter::CONFIG
5
5
  - menu_models = config.menu_models && config.menu_models.map(&:to_s)
6
6
  - GraphStarter::Asset.descendants.sort_by {|m| (menu_models || []).index(m.name) || 0 }.each do |model_class|
7
7
  - next if menu_models && !model_class.name.in?(menu_models)
8
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
+ = link_to model_class.name.tableize.humanize, path, class: "item"
10
10
 
11
11
  = render 'layouts/graph_starter/custom_menu'
12
+
13
+ javascript:
14
+ var request_path = '#{request.path}';
15
+
16
+ coffee:
17
+ for link in $('#menu a')
18
+ link = $(link)
19
+ href = link.attr('href')
20
+ active = if request_path is '/'
21
+ href == '/'
22
+ else
23
+ request_path.match(new RegExp('^'+ href, 'i')) unless href is '/'
24
+
25
+ link.addClass('active') if active
@@ -27,16 +27,16 @@ html
27
27
 
28
28
  = render partial: 'layouts/graph_starter/menu'
29
29
 
30
- - if notice.present?
31
- p.ui.green.message
32
- i.close.icon
33
- = notice
34
- - if alert.present?
35
- p.ui.yellow.message
36
- i.close.icon
37
- = alert
38
-
39
- .ui.container
30
+ #main.ui.container
31
+ - if notice.present?
32
+ p.ui.green.message
33
+ i.close.icon
34
+ = notice
35
+ - if alert.present?
36
+ p.ui.yellow.message
37
+ i.close.icon
38
+ = alert
39
+
40
40
 
41
41
  = yield
42
42
 
@@ -1,3 +1,3 @@
1
1
  module GraphStarter
2
- VERSION = "0.13.9"
2
+ VERSION = "0.13.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graph_starter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.9
4
+ version: 0.13.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Underwood