draw_uml 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/draw_uml/default.rb +1 -1
- data/lib/draw_uml/engine.rb +3 -1
- data/lib/draw_uml/version.rb +1 -1
- data/lib/templates/layouts/application.html.erb +13 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd1697c861dc6734e7fbd8b7b14df436aa95cd0a
|
4
|
+
data.tar.gz: c91f7ba11cb7e53a10ef2b393c879b8c583d57c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 445229e093a9f9dbcfd247ba95377b0765947311838c989eb9b56ddc347630ba03fc583c93350d2bbb911994a1962d4d7c1419a36185e133e9b5abf62c3ed0ab
|
7
|
+
data.tar.gz: 14d5d7c2a71b2c16388908a261a7fcae58f946d40118a580589f384edade7ba4c36d0dcf131f087cf5ac488e585aa6c2ffe551c9e313b82834b7891aa9e13f50
|
data/lib/draw_uml/default.rb
CHANGED
data/lib/draw_uml/engine.rb
CHANGED
@@ -57,7 +57,9 @@ module DrawUml
|
|
57
57
|
end
|
58
58
|
end
|
59
59
|
raw += "<ul>" + arr.map do |entry|
|
60
|
-
"<li
|
60
|
+
raw = "<li"
|
61
|
+
raw += " class='active'"if entry.id == request.path_info
|
62
|
+
raw += "><a href=#{request.script_name}#{entry.id}>#{entry.name}</a></li>"
|
61
63
|
end.join("\n")
|
62
64
|
raw += "</ul></div></div>\n"
|
63
65
|
raw
|
data/lib/draw_uml/version.rb
CHANGED
@@ -18,16 +18,25 @@
|
|
18
18
|
white-space: pre-wrap;
|
19
19
|
}
|
20
20
|
|
21
|
-
a {
|
22
|
-
|
23
|
-
|
21
|
+
a {
|
22
|
+
color: #000;
|
23
|
+
text-decoration: none;
|
24
|
+
padding-left: 4px;
|
25
|
+
padding-right: 10px;
|
26
|
+
}
|
27
|
+
a:visited { color: #000; }
|
28
|
+
a:hover { color: #000; background-color:#fff; }
|
24
29
|
|
25
30
|
h2 { padding-left: 10px; }
|
26
31
|
h3 { padding-left: 10px; }
|
27
32
|
|
33
|
+
li.active { background-color: #666; }
|
34
|
+
li.active > a { color: #fff; }
|
35
|
+
li.active > a:hover { color: #fff; background-color:#666; }
|
36
|
+
|
28
37
|
div.diagrams {
|
29
38
|
float:left;
|
30
|
-
padding-right:
|
39
|
+
padding-right: 10px;
|
31
40
|
padding-bottom: 10px;
|
32
41
|
border-right: solid #eee;
|
33
42
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: draw_uml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ogom
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-09-
|
11
|
+
date: 2014-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|