lalala 4.0.0.dev.90 → 4.0.0.dev.92
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 +4 -4
- data/app/assets/javascripts/lalala/modules/editor.module.js +1 -1
- data/app/assets/stylesheets/lalala/components/_forms.css.scss +2 -0
- data/app/assets/stylesheets/lalala/components/_tables.css.scss +25 -3
- data/app/assets/stylesheets/lalala/modules/_flashes.css.scss +1 -1
- data/lib/lalala/engine.rb +3 -0
- data/lib/lalala/markdown/input_helper.rb +14 -0
- data/lib/lalala/markdown/preview.rb +24 -0
- data/lib/lalala/markdown.rb +1 -0
- data/lib/lalala/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05c7393296cfd28f3a17f148eaa3826c349eba86
|
4
|
+
data.tar.gz: f99ba6009a6c4892a48d1386cdc7a24b7f5d184c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63343012a51c001837f3eac3f8e63105c1579332e2d145980ca1c17fd1ade68aef4d1983496365ab56d4df3bd2e053176f107e76a6180a4ce3484a8993e6ff60
|
7
|
+
data.tar.gz: 57f4ec701ab3ad66e5085845f2c56f9e755e912cd631a5a51a2fa57ca9aa51947f219695c9b65ac3d1b507fd5f04c0564c0cfb919fceda90abe5d54d97b355cc
|
@@ -59,7 +59,7 @@
|
|
59
59
|
&:hover {
|
60
60
|
|
61
61
|
& > td > .member_link {
|
62
|
-
|
62
|
+
@include opacity(1);
|
63
63
|
}
|
64
64
|
|
65
65
|
}
|
@@ -86,7 +86,7 @@
|
|
86
86
|
}
|
87
87
|
|
88
88
|
&:last-child {
|
89
|
-
width: 75px;
|
89
|
+
//width: 75px;
|
90
90
|
}
|
91
91
|
|
92
92
|
}
|
@@ -96,7 +96,9 @@
|
|
96
96
|
text-decoration: none;
|
97
97
|
|
98
98
|
&.member_link {
|
99
|
-
|
99
|
+
@include opacity(0);
|
100
|
+
@include transition(opacity 300ms);
|
101
|
+
display: inline-block; // Will be shown on <tr:hover>
|
100
102
|
height: 16px;
|
101
103
|
margin: 0 3px;
|
102
104
|
text-indent: -9999px;
|
@@ -153,4 +155,24 @@
|
|
153
155
|
margin: 0;
|
154
156
|
}
|
155
157
|
|
158
|
+
&.index_table {
|
159
|
+
|
160
|
+
td {
|
161
|
+
|
162
|
+
&:last-child {
|
163
|
+
width: 75px;
|
164
|
+
}
|
165
|
+
|
166
|
+
}
|
167
|
+
|
168
|
+
}
|
169
|
+
|
170
|
+
}
|
171
|
+
|
172
|
+
#active_admin_content .attributes_table table {
|
173
|
+
|
174
|
+
th {
|
175
|
+
width: 25%;
|
176
|
+
}
|
177
|
+
|
156
178
|
}
|
data/lib/lalala/engine.rb
CHANGED
@@ -0,0 +1,14 @@
|
|
1
|
+
module Lalala::Markdown::InputHelper
|
2
|
+
extend ActiveSupport::Concern
|
3
|
+
|
4
|
+
def input(method, options = {})
|
5
|
+
|
6
|
+
if ( @object.respond_to?("#{method}_html") )
|
7
|
+
input_html = options[:input_html] || {}
|
8
|
+
input_html[:class] = [input_html[:class], 'markdown'].flatten.compact.join(" ")
|
9
|
+
options[:input_html] = input_html
|
10
|
+
end
|
11
|
+
|
12
|
+
super(method, options)
|
13
|
+
end
|
14
|
+
end
|
@@ -26,8 +26,32 @@ module Lalala::Markdown::Preview
|
|
26
26
|
key = instance_params.keys.first
|
27
27
|
val = instance_params[key]
|
28
28
|
|
29
|
+
if key.to_s == 'translations_writer'
|
30
|
+
instance_params = val
|
31
|
+
|
32
|
+
if instance_params.size > 1
|
33
|
+
raise "Expects exactly 1 param"
|
34
|
+
end
|
35
|
+
|
36
|
+
key = instance_params.keys.first
|
37
|
+
val = instance_params[key]
|
38
|
+
|
39
|
+
instance_params = val
|
40
|
+
|
41
|
+
if instance_params.size > 1
|
42
|
+
raise "Expects exactly 1 param"
|
43
|
+
end
|
44
|
+
|
45
|
+
key = instance_params.keys.first
|
46
|
+
val = instance_params[key]
|
47
|
+
end
|
48
|
+
|
29
49
|
resource[key] = val
|
30
50
|
|
51
|
+
unless resource.respond_to?("#{key}_html")
|
52
|
+
raise "Column (#{key}) is not a markdown column"
|
53
|
+
end
|
54
|
+
|
31
55
|
@content = resource.send("#{key}_html")
|
32
56
|
|
33
57
|
render layout: 'lalala/markdown', template: 'lalala/markdown/preview'
|
data/lib/lalala/markdown.rb
CHANGED
data/lib/lalala/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lalala
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.0.dev.
|
4
|
+
version: 4.0.0.dev.92
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simon Menke
|
@@ -1486,6 +1486,7 @@ files:
|
|
1486
1486
|
- lib/lalala/markdown/handlers/base.rb
|
1487
1487
|
- lib/lalala/markdown/handlers/youtube.rb
|
1488
1488
|
- lib/lalala/markdown/html_renderer.rb
|
1489
|
+
- lib/lalala/markdown/input_helper.rb
|
1489
1490
|
- lib/lalala/markdown/markdown_renderer.rb
|
1490
1491
|
- lib/lalala/markdown/preview.rb
|
1491
1492
|
- lib/lalala/pages.rb
|