rbbt-rest 1.4.6 → 1.4.7
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed44cd9c2fdfc19e20a2379705cab17e8b39d685
|
4
|
+
data.tar.gz: 0a3690b989742b71a19f725ed5081e376a5f6f47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 816f58d50ac608708b968cb9c5122b9badee007df934a1f61dac23967809d06100cc5463649d811c1facb1ba8200862ba8c1dce4812082b4e651a3d7feb0fe89
|
7
|
+
data.tar.gz: 3db6fcc754a4206b5550970b92df5e4486f5a82254b0972d1b13a84a1f3911a3e5dd3aafdb03c3ebf7d2b87691671b6301c2b41cc542730e86db9110c99c3398
|
@@ -219,3 +219,18 @@ module RbbtRESTHelpers
|
|
219
219
|
"/permalink/#{ id }"
|
220
220
|
end
|
221
221
|
end
|
222
|
+
|
223
|
+
require 'haml'
|
224
|
+
module Haml::Filters::DefferJS
|
225
|
+
include Haml::Filters::Base
|
226
|
+
|
227
|
+
def render(text)
|
228
|
+
deffer_text =<<-EOF
|
229
|
+
:javascript
|
230
|
+
deffer(function(){
|
231
|
+
#{text.gsub(/^/," ")}
|
232
|
+
})
|
233
|
+
EOF
|
234
|
+
Haml::Engine.new(deffer_text).to_html # gfm method defined elsewhere
|
235
|
+
end
|
236
|
+
end
|
@@ -20,7 +20,7 @@ class EntityCard
|
|
20
20
|
end
|
21
21
|
|
22
22
|
module EntityRESTHelpers
|
23
|
-
def entity_card_render(card)
|
24
|
-
partial_render('entity_partials/entity_card', :card => card)
|
23
|
+
def entity_card_render(card,&block)
|
24
|
+
partial_render('entity_partials/entity_card', :card => card, :block => block)
|
25
25
|
end
|
26
26
|
end
|
@@ -40,7 +40,8 @@
|
|
40
40
|
& > .content, & > .action_content
|
41
41
|
@media #{$not-large}
|
42
42
|
@media #{$only-large}
|
43
|
-
|
43
|
+
&:nth-child(2)
|
44
|
+
+grid-column(9, $float:right, $last_column: true)
|
44
45
|
padding-right: 0px !important
|
45
46
|
|
46
47
|
& > .content > .actions
|
@@ -23,36 +23,42 @@
|
|
23
23
|
|
24
24
|
.card
|
25
25
|
|
26
|
-
|
27
|
-
.
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
.
|
42
|
-
|
26
|
+
- info = entity.info.dup
|
27
|
+
- info.delete :annotated_array
|
28
|
+
- info.delete :annotation_types
|
29
|
+
- if info.any? or card.meta
|
30
|
+
/-- sidebar --
|
31
|
+
.sidebar.offcanvas
|
32
|
+
.meta
|
33
|
+
.entity_info
|
34
|
+
= hash2dl(info)
|
35
|
+
- case card.meta
|
36
|
+
- when nil
|
37
|
+
- when Hash
|
38
|
+
= hash2dl(card.meta)
|
39
|
+
- when Proc
|
40
|
+
= fragment :meta, &card.meta
|
41
|
+
- if card.list_container
|
42
|
+
.entity_lists
|
43
|
+
= list_container_render(card.list_container)
|
43
44
|
|
44
45
|
|
45
46
|
|
46
47
|
/-- content --
|
47
48
|
.content
|
48
|
-
.description
|
49
|
-
|
50
|
-
-
|
51
|
-
|
52
|
-
|
49
|
+
- case card.description
|
50
|
+
- when nil
|
51
|
+
- if entity.respond_to?(:description) and entity.description
|
52
|
+
.description
|
53
|
+
%p= entity.description
|
54
|
+
- when String
|
55
|
+
.description
|
53
56
|
%p= card.description
|
54
|
-
|
55
|
-
|
57
|
+
- when Proc
|
58
|
+
= fragment :description, &card.description
|
59
|
+
|
60
|
+
- if defined? block and block
|
61
|
+
= capture_haml &block
|
56
62
|
|
57
63
|
- if card.action_controller
|
58
64
|
.actions
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbbt-rest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miguel Vazquez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|