releaf-core 3.0.1 → 3.0.3
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0bd0667aa1fffd4e7fd143dfa33983a318bbc7bbf522224b064410991f67deb1
|
4
|
+
data.tar.gz: 128e91a616263be4a7414ebb5717cb4caac549df9292d4ade4f004d879b978df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79c6f2444daddebf14c95b3a33ab9b89b26c5ad00217625d417b7ed21d25c962713db813364c66877ac9d629881c53d9e516c866c0f12000a5a347e3849466f5
|
7
|
+
data.tar.gz: 1742fd4de64251ea131a64806819fe3821f95fe787c1127708756dfeb759a41302ad4068b73a146223e7c87245c956ffecc18753c6a598ffab1993ae46681697
|
@@ -13,7 +13,7 @@ module Releaf::Builders::FormBuilder::FileFields
|
|
13
13
|
if object.send(name).present?
|
14
14
|
content += tag(:div, class: "value-preview") do
|
15
15
|
inner_content = tag(:div, class: "image-wrap") do
|
16
|
-
thumbnail = image_tag(object.send(name).thumb('
|
16
|
+
thumbnail = image_tag(object.send(name).thumb('400x400>').url, alt: '')
|
17
17
|
hidden_field("retained_#{name}") +
|
18
18
|
link_to(thumbnail, object.send(name).url, target: :_blank, class: :ajaxbox, rel: :image)
|
19
19
|
end
|
@@ -101,7 +101,7 @@ module Releaf::Builders::Page
|
|
101
101
|
end
|
102
102
|
|
103
103
|
def head_blocks
|
104
|
-
[title, content_type, favicons,
|
104
|
+
[title, content_type, favicons, assets(:stylesheets, :stylesheet_link_tag), csrf]
|
105
105
|
end
|
106
106
|
|
107
107
|
def controller_name
|
@@ -142,13 +142,6 @@ module Releaf::Builders::Page
|
|
142
142
|
File.join('releaf', 'icons')
|
143
143
|
end
|
144
144
|
|
145
|
-
def ms_tile_path
|
146
|
-
favicon_path
|
147
|
-
end
|
148
|
-
|
149
|
-
def ms_tile_color
|
150
|
-
'#151515'
|
151
|
-
end
|
152
145
|
|
153
146
|
def favicon(source, options = {})
|
154
147
|
controller.view_context.favicon_link_tag(File.join(favicon_path, source), options)
|
@@ -167,13 +160,5 @@ module Releaf::Builders::Page
|
|
167
160
|
favicon("favicon.png", type: 'image/png', rel: 'icon'),
|
168
161
|
]
|
169
162
|
end
|
170
|
-
|
171
|
-
def ms_tile
|
172
|
-
tile_path = ActionController::Base.helpers.image_path(File.join(ms_tile_path, 'msapplication-tile-144x144.png'))
|
173
|
-
[
|
174
|
-
meta(name: 'msapplication-TileColor', content: ms_tile_color),
|
175
|
-
meta(name: 'msapplication-TileImage', content: tile_path)
|
176
|
-
]
|
177
|
-
end
|
178
163
|
end
|
179
164
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: releaf-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- CubeSystems
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|