decidim-decidim_awesome 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/controllers/decidim/decidim_awesome/admin/config_controller.rb +1 -1
- data/app/forms/decidim/decidim_awesome/admin/config_form.rb +10 -0
- data/config/locales/ca.yml +14 -0
- data/config/locales/cs.yml +14 -0
- data/config/locales/es.yml +14 -0
- data/config/locales/eu.yml +171 -0
- data/config/locales/fr.yml +14 -0
- data/config/locales/sv.yml +14 -0
- data/lib/decidim/decidim_awesome/awesome_helpers.rb +1 -1
- data/lib/decidim/decidim_awesome/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca4e9a5883518e03b29844b430fe92343558ca88394a4e03334ebb387cf133dc
|
4
|
+
data.tar.gz: 2dbdc12ff4446debcf62641c8dc4fa788fc5a07011060216874d3811f526d4f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb94d6bb293ebf2ac77767d18721f7f59f674a6fcfa89b5d8c3a12b7a2c56f3c49629767e878ff0ef7c9f7dffb31b13c1a90c7d82e5ffea2893aa1d59b57b548
|
7
|
+
data.tar.gz: 1af64bdf1c90aa1bcfb296777726df9fe7ffe6e1b472cd057e2595376b9eac47e96bd3c3abc4a6ebc2aba20537ecaac4c6047f8d2d0039ed436b33bdfbac2f6f
|
data/README.md
CHANGED
@@ -18,7 +18,7 @@ module Decidim
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def update
|
21
|
-
@form = form(ConfigForm).from_params(params)
|
21
|
+
@form = form(ConfigForm).from_params(params[:config])
|
22
22
|
UpdateConfig.call(@form) do
|
23
23
|
on(:ok) do
|
24
24
|
flash[:notice] = I18n.t("config.update.success", scope: "decidim.decidim_awesome.admin")
|
@@ -17,6 +17,16 @@ module Decidim
|
|
17
17
|
attribute :intergram_for_admins_settings, IntergramForm
|
18
18
|
attribute :intergram_for_public, Boolean
|
19
19
|
attribute :intergram_for_public_settings, IntergramForm
|
20
|
+
|
21
|
+
# convert to nil anything not specified in the params (UpdateConfig command ignores nil entries)
|
22
|
+
def self.from_params(params, additional_params = {})
|
23
|
+
instance = super(params, additional_params)
|
24
|
+
nillable_keys = instance.attributes.keys - params.keys.map(&:to_sym)
|
25
|
+
nillable_keys.each do |key|
|
26
|
+
instance.send("#{key}=", nil)
|
27
|
+
end
|
28
|
+
instance
|
29
|
+
end
|
20
30
|
end
|
21
31
|
end
|
22
32
|
end
|
data/config/locales/ca.yml
CHANGED
@@ -17,6 +17,7 @@ ca:
|
|
17
17
|
intergram_title_closed: Títol del xat tancat
|
18
18
|
intergram_title_open: Títol del xat obert
|
19
19
|
intergram_use_floating_button: Si està marcat, el xat tancat és sempre un botó en lloc d'un text
|
20
|
+
scoped_styles: 'Estils personalitzats #%{id}'
|
20
21
|
use_markdown_editor: Fes servir l'editor Markdown en comptes de l'editor HTML
|
21
22
|
constraint:
|
22
23
|
component_id: o específicament a
|
@@ -75,6 +76,12 @@ ca:
|
|
75
76
|
delete: Esborra
|
76
77
|
edit: Edita
|
77
78
|
title: 'S''aplica només en aquests casos:'
|
79
|
+
create_scoped_style:
|
80
|
+
error: Error en crear una nova caixa CSS! %{error}
|
81
|
+
success: Caixa CSS %{key} creada correctament!
|
82
|
+
destroy_scoped_style:
|
83
|
+
error: Error en eliminar una caixa CSS! %{error}
|
84
|
+
success: Caixa CSS %{key} eliminada correctament!
|
78
85
|
experimental: Opcions experimentals
|
79
86
|
form:
|
80
87
|
help:
|
@@ -86,7 +93,13 @@ ca:
|
|
86
93
|
drag_and_drop_supported: Quan es pugin imatges, es pot fer a través del mètode de "arrossegar i deixar anar". Les imatges seran pujades al servidor i inserides com recursos externs (no es fa servir codificació en línia base64).
|
87
94
|
intergram_about: Intergram utilitza el Telegram Messenger per gestionar un widget de xat en viu de suport incrustat a la part inferior de la pàgina.
|
88
95
|
intergram_config: 'Convida a la <a href="https://web.telegram.org/#/im?p=@IntergramBot">@Intergram bot</a> al teu grup o comença un xat amb ella directament. <a href="https://github.com/idoco/intergram#embed-intergram-in-your-website-with-these-2-simple-steps">+ info</a>'
|
96
|
+
scoped_styles: Crea CSS personalitzats que només s'apliquin a determinades parts de la web pública (per fer-ho, utilitza l'editor de restriccions)
|
97
|
+
scoped_styles_variables: 'Pots fer servir les següents variables CSS pels colors personalitzats de l''organització:'
|
89
98
|
use_markdown_editor: Això substituirà l'editor HTML (Quill), en el seu lloc s'utilitzarà un editor Markdown tant a l'admin com a la pàgina pública per processar el text (a la base de dades el text es desarà com a markdown)
|
99
|
+
form_styles:
|
100
|
+
new: Afegeix una nova caixa CSS
|
101
|
+
remove: Elimina aquesta caixa CSS
|
102
|
+
sure_to_remove: Estàs segura que vols eliminar aquesta caixa CSS?
|
90
103
|
rich_text_editor_in_public_views: 'NOTA: "Editor de text enriquit per participants" està habilitat a la configuració general, aquesta opció no aplicarà. Feu servir les modificacions d''editor general per afegir imatges a les propostes.'
|
91
104
|
show:
|
92
105
|
title: Modificacions per %{setting}
|
@@ -120,6 +133,7 @@ ca:
|
|
120
133
|
editors: Modificacions als editors
|
121
134
|
livechat: Xat en directe
|
122
135
|
proposals: Modificacions a propostes
|
136
|
+
styles: Estils personalitzats
|
123
137
|
surveys: Formularis i enquestes
|
124
138
|
config:
|
125
139
|
intergram:
|
data/config/locales/cs.yml
CHANGED
@@ -17,6 +17,7 @@ cs:
|
|
17
17
|
intergram_title_closed: Titulek uzavřeného chatu
|
18
18
|
intergram_title_open: Titulek otevřeného chatu
|
19
19
|
intergram_use_floating_button: Je-li zaškrtnuto, uzavřený chat je vždy tlačítko místo textu
|
20
|
+
scoped_styles: 'Vlastní styly číslo %{id}'
|
20
21
|
use_markdown_editor: Použít Markdown editor namísto HTML editoru
|
21
22
|
constraint:
|
22
23
|
component_id: nebo konkrétně v
|
@@ -75,6 +76,12 @@ cs:
|
|
75
76
|
delete: Smazat
|
76
77
|
edit: Upravit
|
77
78
|
title: 'Platí pouze v těchto případech:'
|
79
|
+
create_scoped_style:
|
80
|
+
error: Chyba při vytváření nového CSS boxu! %{error}
|
81
|
+
success: CSS box %{key} byl úspěšně vytvořen!
|
82
|
+
destroy_scoped_style:
|
83
|
+
error: Chyba při odstraňování CSS boxu! %{error}
|
84
|
+
success: CSS box %{key} byl úspěšně odstraněn!
|
78
85
|
experimental: Experimentální možnosti
|
79
86
|
form:
|
80
87
|
help:
|
@@ -86,7 +93,13 @@ cs:
|
|
86
93
|
drag_and_drop_supported: Při nahrávání obrázků je podporováno vložení přetažením. Obrázky budou nahrány na server a vloženy jako externí zdroje (nepoužívá base64 inline kódování).
|
87
94
|
intergram_about: Intergram používá Telegram messenger pro zpracování widgetu live podpory v dolní části stránky.
|
88
95
|
intergram_config: 'Pozvěte <a href="https://web.telegram.org/#/im?p=@IntergramBot">@Intergram bota</a> do vaší skupiny nebo začněte chatovat přímo. <a href="https://github.com/idoco/intergram#embed-intergram-in-your-website-with-these-2-simple-steps">+ info</a>'
|
96
|
+
scoped_styles: Vytvořte vlastní CSS aplikovaný pouze na určitých částech veřejného webu (použijte pro to editor omezení)
|
97
|
+
scoped_styles_variables: 'Můžete použít následující CSS proměnné pro nastavené barvy organizace:'
|
89
98
|
use_markdown_editor: Toto nahradí WYSIWYG editor, místo toho použijte Markdown editor. Text bude vykreslen jako HTML na veřejných stránkách (text v databázi bude uložen jako text markdown)
|
99
|
+
form_styles:
|
100
|
+
new: Přidat nový CSS box
|
101
|
+
remove: Odstranit tento CSS box
|
102
|
+
sure_to_remove: Opravdu chcete zničit tento CSS box?
|
90
103
|
rich_text_editor_in_public_views: 'POZNÁMKA: "Kompletní textový editor pro účastníky" je povolen, tato možnost nebude využita. Pro povolení obrázků v Návrzích používejte místo toho hacky editoru.'
|
91
104
|
show:
|
92
105
|
title: Vylepšení pro %{setting}
|
@@ -120,6 +133,7 @@ cs:
|
|
120
133
|
editors: Hack editoru
|
121
134
|
livechat: Live Chat
|
122
135
|
proposals: Návrhy hacků
|
136
|
+
styles: Vlastní styly
|
123
137
|
surveys: Průzkumy a formuláře
|
124
138
|
config:
|
125
139
|
intergram:
|
data/config/locales/es.yml
CHANGED
@@ -17,6 +17,7 @@ es:
|
|
17
17
|
intergram_title_closed: Título del chat cerrado
|
18
18
|
intergram_title_open: Título del chat abierto
|
19
19
|
intergram_use_floating_button: Si está marcado, el chat cerrado siempre es un botón en lugar de un texto
|
20
|
+
scoped_styles: 'Estilos personalizados #%{id}'
|
20
21
|
use_markdown_editor: Utilizar el editor Markdown en lugar del editor HTML
|
21
22
|
constraint:
|
22
23
|
component_id: o específicamente en
|
@@ -75,6 +76,12 @@ es:
|
|
75
76
|
delete: Eliminar
|
76
77
|
edit: Editar
|
77
78
|
title: 'Se aplica solo en estos casos:'
|
79
|
+
create_scoped_style:
|
80
|
+
error: '¡Error al crear una nueva caja CSS! %{error}'
|
81
|
+
success: '¡Caja CSS %{key} creada correctamente!'
|
82
|
+
destroy_scoped_style:
|
83
|
+
error: '¡Error al eliminar la caja CSS! %{error}'
|
84
|
+
success: '¡Caja CSS %{key} eliminada correctamente!'
|
78
85
|
experimental: Opciones experimentales
|
79
86
|
form:
|
80
87
|
help:
|
@@ -86,7 +93,13 @@ es:
|
|
86
93
|
drag_and_drop_supported: Cuando se suban imágenes, se puede hacer a través del método "arrastrar & soltar". Las imágenes se subirán en el servidor y se insertarán como recursos externos (no se utiliza codificación en línea base64).
|
87
94
|
intergram_about: Intergram utiliza el Telegram Messenger para gestionar un widget de chat de soporte incrustado en la parte inferior de la página.
|
88
95
|
intergram_config: 'Invita a la <a href="https://web.telegram.org/#/im?p=@IntergramBot">@Intergram bot</a> a tu grupo o inicia un chat con ella directamente. <a href="https://github.com/idoco/intergram#embed-intergram-in-your-website-with-these-2-simple-steps">+ info</a>'
|
96
|
+
scoped_styles: Crea CSS personalizados que solo se apliquen en ciertas partes de la web pública (para ello, utiliza el editor de restricciones)
|
97
|
+
scoped_styles_variables: 'Puedes utilizar las siguientes variables CSS para los colores personalizados de la organización:'
|
89
98
|
use_markdown_editor: Esto sustituirá al editor HTML (Quill), utilice un editor de Markdown en su lugar. El texto se mostrará como HTML en las páginas públicas (en la base de datos, el texto se almacenará como markdown)
|
99
|
+
form_styles:
|
100
|
+
new: Añadir una nueva caja CSS
|
101
|
+
remove: Eliminar esta caja CSS
|
102
|
+
sure_to_remove: '¿Estás segura de que quieres eliminar esta caja CSS?'
|
90
103
|
rich_text_editor_in_public_views: 'NOTA: "Editor de texto enriquecido para participantes" está habilitado, esta opción no se aplicará. Utiliza las modificaciones del editor general para añadir imágenes a las propuestas.'
|
91
104
|
show:
|
92
105
|
title: Ajustes para %{setting}
|
@@ -120,6 +133,7 @@ es:
|
|
120
133
|
editors: Modificaciones a los editores
|
121
134
|
livechat: Chat en vivo
|
122
135
|
proposals: Modificaciones a las propuestas
|
136
|
+
styles: Estilos personalizados
|
123
137
|
surveys: Encuestas y formularios
|
124
138
|
config:
|
125
139
|
intergram:
|
@@ -0,0 +1,171 @@
|
|
1
|
+
eu:
|
2
|
+
activemodel:
|
3
|
+
attributes:
|
4
|
+
config:
|
5
|
+
allow_images_in_full_editor: Allow images in the full HTML editor
|
6
|
+
allow_images_in_markdown_editor: Allow images in the markdown editor
|
7
|
+
allow_images_in_proposals: Allow images in the proposals editor
|
8
|
+
allow_images_in_small_editor: Allow images in the minimal HTML editor
|
9
|
+
auto_save_forms: Auto save forms in local storage
|
10
|
+
intergram_auto_no_response: A message that is sent one minute after the user sends its first message and no response was received
|
11
|
+
intergram_auto_response: A message that is sent immediately after the user sends its first message
|
12
|
+
intergram_chat_id: Chat ID
|
13
|
+
intergram_color: Color of the widget
|
14
|
+
intergram_for_admins: Enable Intergram Chat in the admin backend
|
15
|
+
intergram_intro_message: First message when the user opens the chat for the first time
|
16
|
+
intergram_require_login: Only for logged users
|
17
|
+
intergram_title_closed: Closed chat title
|
18
|
+
intergram_title_open: Opened chat title
|
19
|
+
intergram_use_floating_button: If checked, the closed chat is always a button instead of a text
|
20
|
+
scoped_styles: 'Custom styles #%{id}'
|
21
|
+
use_markdown_editor: Use a Markdown editor instead of the HTML editor
|
22
|
+
constraint:
|
23
|
+
component_id: or specifically in
|
24
|
+
component_manifest: Only in components of type
|
25
|
+
participatory_space_manifest: Apply to participatory spaces of type
|
26
|
+
participatory_space_slug: Only in
|
27
|
+
decidim:
|
28
|
+
admin:
|
29
|
+
menu:
|
30
|
+
decidim_awesome: Decidim awesome
|
31
|
+
components:
|
32
|
+
awesome_iframe:
|
33
|
+
name: Fullscreen Iframe
|
34
|
+
settings:
|
35
|
+
global:
|
36
|
+
announcement: Oharra
|
37
|
+
iframe: Iframe code
|
38
|
+
iframe_help: 'Put your code as html: <iframe width="100%" height="700" frameBorder="0" allowFullscreen src="..."></iframe>. Content will be sanitized from other HTML tags. Ensure to use 100% as width to fill the screen.'
|
39
|
+
no_margins: No margins between the iframe and the rest of the page
|
40
|
+
viewport_width: Limit maximum width to the application viewport
|
41
|
+
step:
|
42
|
+
announcement: Oharra
|
43
|
+
iframe: Iframe code
|
44
|
+
awesome_map:
|
45
|
+
name: Awesome Map
|
46
|
+
settings:
|
47
|
+
global:
|
48
|
+
announcement: Oharra
|
49
|
+
collapse: Start with collapsed menu
|
50
|
+
map_height: Map height (px)
|
51
|
+
step:
|
52
|
+
announcement: Oharra
|
53
|
+
show_accepted: Show accepted proposals
|
54
|
+
show_evaluating: Show evaluating proposals
|
55
|
+
show_not_answered: Show not answered proposals
|
56
|
+
show_rejected: Show rejected proposals
|
57
|
+
show_withdrawn: Show withdrawn proposals
|
58
|
+
decidim_awesome:
|
59
|
+
admin:
|
60
|
+
checks:
|
61
|
+
index:
|
62
|
+
admin_head_tags: Awesome tags included in the admin application header
|
63
|
+
decidim-admin: From Admin module
|
64
|
+
decidim-core: From Core module
|
65
|
+
decidim-proposals: From Proposals module
|
66
|
+
decidim_version: Decidim version %{version}
|
67
|
+
errors:
|
68
|
+
CSS: Head does not contain the required <link> stylesheet entries. To solve it, you can manually add it to your custom _head.html.erb
|
69
|
+
JavaScript: Head does not contain the required <script> Javascript entries. To solve it, you can manually add it to your custom admin/_header.html.erb
|
70
|
+
head_tags: Awesome tags included in the application header
|
71
|
+
title: System compatibility checks
|
72
|
+
config:
|
73
|
+
constraints:
|
74
|
+
add_condition: Add case
|
75
|
+
always: Always
|
76
|
+
delete: Ezabatu
|
77
|
+
edit: Editatu
|
78
|
+
title: 'Applicable only in these cases:'
|
79
|
+
create_scoped_style:
|
80
|
+
error: Error creating a new CSS box! %{error}
|
81
|
+
success: CSS box %{key} created successfully!
|
82
|
+
destroy_scoped_style:
|
83
|
+
error: Error removing CSS box! %{error}
|
84
|
+
success: CSS box %{key} removed successfully!
|
85
|
+
experimental: Experimental options
|
86
|
+
form:
|
87
|
+
help:
|
88
|
+
allow_images_in_full_editor: This will add an image uploader icon in all the editors WYSIWYG with the full toolbar enabled.
|
89
|
+
allow_images_in_markdown_editor: This will allow markdown editor to upload images by copy & paste or drag & drop.
|
90
|
+
allow_images_in_proposals: This will allow to upload images in the proposals editor, available to any user
|
91
|
+
allow_images_in_small_editor: This will add an image uploader icon in all the editors WYSIWYG with minimal options in the toolbar enabled.
|
92
|
+
auto_save_forms: This will use LocalStorage to automatically save data introduced by users in surveys and other forms while they are filling it. Data will be restored in a future visit with the same browser in case the form is not submitted. If the form is submitted, data will be removed. If users remove their LocalStorage data, data won't be restored either.
|
93
|
+
drag_and_drop_supported: When uploading images, Drag & Drop is supported. Images will be uploaded to the server and inserted as external resources (it doesn't use base64 inline encoding).
|
94
|
+
intergram_about: Intergram uses Telegram messenger to handle a live support chat widget embedded in the bottom of the page.
|
95
|
+
intergram_config: 'Invite the <a href="https://web.telegram.org/#/im?p=@IntergramBot">@Intergram bot</a> to your group or start a chat with it directly. <a href="https://github.com/idoco/intergram#embed-intergram-in-your-website-with-these-2-simple-steps">+ info</a>'
|
96
|
+
scoped_styles: Create custom CSS that applies only in certain parts of the public web (use the restrictions editor for that)
|
97
|
+
scoped_styles_variables: 'You can use the following CSS variables for organization customized colors:'
|
98
|
+
use_markdown_editor: This will substitute the Quill WYSIWYG editor, use a Markdown editor instead. Text will be rendered as HTML in the public pages (text in database will be saved as markdown text)
|
99
|
+
form_styles:
|
100
|
+
new: Add a new CSS box
|
101
|
+
remove: Remove this CSS box
|
102
|
+
sure_to_remove: Are you sure you want to destroy this CSS box?
|
103
|
+
rich_text_editor_in_public_views: 'NOTE: "Rich text editor for participants" is enabled, this option won''t apply. Use the editors hacks instead to enable images in proposals.'
|
104
|
+
show:
|
105
|
+
title: Tweaks for %{setting}
|
106
|
+
update: Update configuration
|
107
|
+
system: Everywhere except participatory spaces
|
108
|
+
update:
|
109
|
+
error: Error updating configuration! %{error}
|
110
|
+
success: Configuration updated successfully!
|
111
|
+
constraints:
|
112
|
+
create:
|
113
|
+
error: Error creating condition case
|
114
|
+
success: Condition case created successfully
|
115
|
+
destroy:
|
116
|
+
error: Error removing condition case
|
117
|
+
success: Condition case removed successfully
|
118
|
+
errors:
|
119
|
+
not_unique: Same condition already exists
|
120
|
+
new:
|
121
|
+
cancel: Ezeztatu
|
122
|
+
constraint: New condition case
|
123
|
+
save: Save
|
124
|
+
show:
|
125
|
+
cancel: Ezeztatu
|
126
|
+
constraint: Edit condition case
|
127
|
+
save: Save
|
128
|
+
update:
|
129
|
+
error: Error updating condition case
|
130
|
+
success: Condition case updated successfully
|
131
|
+
menu:
|
132
|
+
checks: System compatibility
|
133
|
+
editors: Editor hacks
|
134
|
+
livechat: Live Chat
|
135
|
+
proposals: Proposals hacks
|
136
|
+
styles: Custom styles
|
137
|
+
surveys: Surveys & forms
|
138
|
+
config:
|
139
|
+
intergram:
|
140
|
+
auto_no_response: It seems that no one is available to answer right now. Please tell us how we can contact you, and we will get back to you as soon as we can.
|
141
|
+
auto_response: Looking for the first available admin (It might take a minute)
|
142
|
+
intro_message: Hello! How can we help you?
|
143
|
+
title_closed: Click to chat!
|
144
|
+
title_open: Let's chat!
|
145
|
+
credits: Decidim Awesome %{version} · Made with ♥ by Platoniq
|
146
|
+
editor_images:
|
147
|
+
create:
|
148
|
+
error: Error uploading image!
|
149
|
+
success: Image uploaded successfully!
|
150
|
+
map_component:
|
151
|
+
map:
|
152
|
+
error:
|
153
|
+
unavailable: The map is unavailable. Please configure geocoding to enable this component.
|
154
|
+
show:
|
155
|
+
view_meeting: Ikusi bilera
|
156
|
+
view_proposal: Ikusi proposamena
|
157
|
+
layouts:
|
158
|
+
decidim:
|
159
|
+
admin:
|
160
|
+
decidim_awesome:
|
161
|
+
title: Decidim Tweaks
|
162
|
+
decidim_awesome:
|
163
|
+
awesome_config:
|
164
|
+
amendments: Zuzenketak
|
165
|
+
autosaved_error: LocalStorage ez da onartzen zure arakatzailean, inprimakia ezin da automatikoki gorde.
|
166
|
+
autosaved_retrieved: Data for this form has been recovered from a previous session
|
167
|
+
autosaved_success: Tokiko biltegian gordetako datuak
|
168
|
+
categories: Kategoriak
|
169
|
+
drag_and_drop_image: Gehitu irudiak arrastatuz, jareginez edo itsatsita.
|
170
|
+
meetings: Topaketa-zerrenda
|
171
|
+
proposals: Proposamenak
|
data/config/locales/fr.yml
CHANGED
@@ -17,6 +17,7 @@ fr:
|
|
17
17
|
intergram_title_closed: Closed chat title
|
18
18
|
intergram_title_open: Opened chat title
|
19
19
|
intergram_use_floating_button: If checked, the closed chat is always a button instead of a text
|
20
|
+
scoped_styles: 'Custom styles #%{id}'
|
20
21
|
use_markdown_editor: Use a Markdown editor instead of the HTML editor
|
21
22
|
constraint:
|
22
23
|
component_id: or specifically in
|
@@ -75,6 +76,12 @@ fr:
|
|
75
76
|
delete: Supprimer
|
76
77
|
edit: Modifier
|
77
78
|
title: 'Applicable only in these cases:'
|
79
|
+
create_scoped_style:
|
80
|
+
error: Error creating a new CSS box! %{error}
|
81
|
+
success: CSS box %{key} created successfully!
|
82
|
+
destroy_scoped_style:
|
83
|
+
error: Error removing CSS box! %{error}
|
84
|
+
success: CSS box %{key} removed successfully!
|
78
85
|
experimental: Experimental options
|
79
86
|
form:
|
80
87
|
help:
|
@@ -86,7 +93,13 @@ fr:
|
|
86
93
|
drag_and_drop_supported: When uploading images, Drag & Drop is supported. Images will be uploaded to the server and inserted as external resources (it doesn't use base64 inline encoding).
|
87
94
|
intergram_about: Intergram uses Telegram messenger to handle a live support chat widget embedded in the bottom of the page.
|
88
95
|
intergram_config: 'Invite the <a href="https://web.telegram.org/#/im?p=@IntergramBot">@Intergram bot</a> to your group or start a chat with it directly. <a href="https://github.com/idoco/intergram#embed-intergram-in-your-website-with-these-2-simple-steps">+ info</a>'
|
96
|
+
scoped_styles: Create custom CSS that applies only in certain parts of the public web (use the restrictions editor for that)
|
97
|
+
scoped_styles_variables: 'You can use the following CSS variables for organization customized colors:'
|
89
98
|
use_markdown_editor: This will substitute the Quill WYSIWYG editor, use a Markdown editor instead. Text will be rendered as HTML in the public pages (text in database will be saved as markdown text)
|
99
|
+
form_styles:
|
100
|
+
new: Add a new CSS box
|
101
|
+
remove: Remove this CSS box
|
102
|
+
sure_to_remove: Are you sure you want to destroy this CSS box?
|
90
103
|
rich_text_editor_in_public_views: 'NOTE: "Rich text editor for participants" is enabled, this option won''t apply. Use the editors hacks instead to enable images in proposals.'
|
91
104
|
show:
|
92
105
|
title: Tweaks for %{setting}
|
@@ -120,6 +133,7 @@ fr:
|
|
120
133
|
editors: Editor hacks
|
121
134
|
livechat: Live Chat
|
122
135
|
proposals: Proposals hacks
|
136
|
+
styles: Custom styles
|
123
137
|
surveys: Surveys & forms
|
124
138
|
config:
|
125
139
|
intergram:
|
data/config/locales/sv.yml
CHANGED
@@ -17,6 +17,7 @@ sv:
|
|
17
17
|
intergram_title_closed: Closed chat title
|
18
18
|
intergram_title_open: Opened chat title
|
19
19
|
intergram_use_floating_button: If checked, the closed chat is always a button instead of a text
|
20
|
+
scoped_styles: 'Custom styles #%{id}'
|
20
21
|
use_markdown_editor: Use a Markdown editor instead of the HTML editor
|
21
22
|
constraint:
|
22
23
|
component_id: or specifically in
|
@@ -75,6 +76,12 @@ sv:
|
|
75
76
|
delete: Delete
|
76
77
|
edit: Edit
|
77
78
|
title: 'Applicable only in these cases:'
|
79
|
+
create_scoped_style:
|
80
|
+
error: Error creating a new CSS box! %{error}
|
81
|
+
success: CSS box %{key} created successfully!
|
82
|
+
destroy_scoped_style:
|
83
|
+
error: Error removing CSS box! %{error}
|
84
|
+
success: CSS box %{key} removed successfully!
|
78
85
|
experimental: Experimental options
|
79
86
|
form:
|
80
87
|
help:
|
@@ -86,7 +93,13 @@ sv:
|
|
86
93
|
drag_and_drop_supported: When uploading images, Drag & Drop is supported. Images will be uploaded to the server and inserted as external resources (it doesn't use base64 inline encoding).
|
87
94
|
intergram_about: Intergram uses Telegram messenger to handle a live support chat widget embedded in the bottom of the page.
|
88
95
|
intergram_config: 'Invite the <a href="https://web.telegram.org/#/im?p=@IntergramBot">@Intergram bot</a> to your group or start a chat with it directly. <a href="https://github.com/idoco/intergram#embed-intergram-in-your-website-with-these-2-simple-steps">+ info</a>'
|
96
|
+
scoped_styles: Create custom CSS that applies only in certain parts of the public web (use the restrictions editor for that)
|
97
|
+
scoped_styles_variables: 'You can use the following CSS variables for organization customized colors:'
|
89
98
|
use_markdown_editor: This will substitute the Quill WYSIWYG editor, use a Markdown editor instead. Text will be rendered as HTML in the public pages (text in database will be saved as markdown text)
|
99
|
+
form_styles:
|
100
|
+
new: Add a new CSS box
|
101
|
+
remove: Remove this CSS box
|
102
|
+
sure_to_remove: Are you sure you want to destroy this CSS box?
|
90
103
|
rich_text_editor_in_public_views: 'NOTE: "Rich text editor for participants" is enabled, this option won''t apply. Use the editors hacks instead to enable images in proposals.'
|
91
104
|
show:
|
92
105
|
title: Tweaks for %{setting}
|
@@ -120,6 +133,7 @@ sv:
|
|
120
133
|
editors: Editor hacks
|
121
134
|
livechat: Live Chat
|
122
135
|
proposals: Proposals hacks
|
136
|
+
styles: Custom styles
|
123
137
|
surveys: Surveys & forms
|
124
138
|
config:
|
125
139
|
intergram:
|
@@ -56,7 +56,7 @@ module Decidim
|
|
56
56
|
|
57
57
|
styles = awesome_config[:scoped_styles]&.filter do |key, _value|
|
58
58
|
config = AwesomeConfig.find_by(var: "scoped_style_#{key}", organization: current_organization)
|
59
|
-
@awesome_config_instance.valid_in_context?(config
|
59
|
+
@awesome_config_instance.valid_in_context?(config&.constraints)
|
60
60
|
end
|
61
61
|
@awesome_custom_styles = styles.values.join("\n")
|
62
62
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-decidim_awesome
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ivan Vergés
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-02-
|
11
|
+
date: 2021-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: decidim-admin
|
@@ -200,6 +200,7 @@ files:
|
|
200
200
|
- config/locales/cs.yml
|
201
201
|
- config/locales/en.yml
|
202
202
|
- config/locales/es.yml
|
203
|
+
- config/locales/eu.yml
|
203
204
|
- config/locales/fr.yml
|
204
205
|
- config/locales/sv.yml
|
205
206
|
- db/migrate/20200324170000_create_decidim_awesome_config.rb
|