graph_starter 0.13.9 → 0.13.10
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: f0dd5b781979ac553ebb2daff3e3c0be0d616850
|
4
|
+
data.tar.gz: 0d977229a3d297881082f04dc8e2aabdc65e5d81
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94cffea81ed27356211be2002ffadc125be90632cdb1ed6a94564b826aedd631aed2f374b1011063dfb2a86afe03d42737dad7cfe9488e37d427d0c1e949ecde
|
7
|
+
data.tar.gz: 6b24856569bb58da566e04f70b390787e72e9810cced01a3c678878510840b25f14e5a0a27ca6b319747c3ac6a724bf304e6ae8f0593626ca0f337b9967f00a6
|
@@ -1,11 +1,25 @@
|
|
1
1
|
- unless @hide_menu
|
2
|
-
#menu.ui.
|
3
|
-
= link_to 'Home', '/', class: "item
|
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
|
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
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
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
|
|