decidim-gallery 0.0.2 → 0.0.4
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/cells/decidim/gallery/main/gallery_structure.erb +1 -1
- data/app/cells/decidim/gallery/main/image.erb +1 -1
- data/config/locales/en.yml +2 -0
- data/config/locales/fr.yml +5 -3
- data/config/locales/ro.yml +2 -0
- data/lib/decidim/gallery/version.rb +1 -1
- data/lib/decidim/gallery.rb +5 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c303ad87c933b01a9f8d265c25e4770b78c421afb354aab5a425ae085ed7ecb1
|
4
|
+
data.tar.gz: 91929d8cd6b1ec9d3fc34ccd913a852db47afa74eb39eea77d0fc4b04dcef115
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37772cdb8e7eb7caee271c3f270be57782bef8aeeb9c263226c4a9b7143de2ead4c8b8ee47695ab66e0e2ab8e230bb5776fdbb70b6af619fd1b725f80b05c2c5
|
7
|
+
data.tar.gz: cdb8ed4a0248f0fc38dcec1bbf9fa276e8288354098f643eb1ef2534b562386720613a13a7c2a2f870c76721f9e93d9fd364c7a985439e51b76ae8f7e728f433
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<% if gallery_component.settings.show_title? %>
|
2
|
-
<h3 class="section-heading gallery-heading"><%= title %> (<%= t(
|
2
|
+
<h3 class="section-heading gallery-heading"><%= title %> (<%= t(gallery_component.settings.gallery_type, scope: "decidim.gallery.main", count: items.total_count) %>)</h3>
|
3
3
|
<% end %>
|
4
4
|
|
5
5
|
<% if gallery_component.settings.show_announcement? %>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<span aria-hidden="true">×</span>
|
7
7
|
</button>
|
8
8
|
|
9
|
-
<div class="orbit row" data-orbit data-auto-play="false">
|
9
|
+
<div class="orbit row" data-orbit data-auto-play="false" data-use-m-u-i="<%= Decidim::Gallery.enable_animation.inspect %>">
|
10
10
|
<div class="orbit-wrapper">
|
11
11
|
<div class="orbit-controls">
|
12
12
|
<button class="orbit-previous"><span class="show-for-sr"><%= t("decidim.gallery.main.previous_slide") %></span>
|
data/config/locales/en.yml
CHANGED
@@ -62,6 +62,7 @@ en:
|
|
62
62
|
few: "%{count} Photos"
|
63
63
|
one: 1 Photo
|
64
64
|
other: "%{count} Photos"
|
65
|
+
zero: No photos
|
65
66
|
load_more: View more
|
66
67
|
next_slide: Next
|
67
68
|
no_results: There are no gallery items
|
@@ -70,6 +71,7 @@ en:
|
|
70
71
|
few: "%{count} Videos"
|
71
72
|
one: 1 Video
|
72
73
|
other: "%{count} Videos"
|
74
|
+
zero: No Videos
|
73
75
|
models:
|
74
76
|
gallery_item:
|
75
77
|
fields:
|
data/config/locales/fr.yml
CHANGED
@@ -59,9 +59,10 @@ fr:
|
|
59
59
|
main:
|
60
60
|
close_modal: Fermer
|
61
61
|
image:
|
62
|
-
few: "%{count}
|
63
|
-
one: 1
|
64
|
-
other: "%{count}
|
62
|
+
few: "%{count} images"
|
63
|
+
one: 1 image
|
64
|
+
other: "%{count} images"
|
65
|
+
zero: 0 images
|
65
66
|
load_more: Afficher plus
|
66
67
|
next_slide: Suivant
|
67
68
|
no_results: Il n'y a pas d'images ou de vidéos dans cette galerie
|
@@ -70,6 +71,7 @@ fr:
|
|
70
71
|
few: "%{count} vidéos"
|
71
72
|
one: 1 vidéo
|
72
73
|
other: "%{count} vidéos"
|
74
|
+
zero: 0 vidéos
|
73
75
|
models:
|
74
76
|
gallery_item:
|
75
77
|
fields:
|
data/config/locales/ro.yml
CHANGED
@@ -59,6 +59,7 @@ ro:
|
|
59
59
|
main:
|
60
60
|
close_modal: Închide
|
61
61
|
image:
|
62
|
+
zero: 0 imagini
|
62
63
|
few: "%{count} Imagini"
|
63
64
|
one: 1 imagine
|
64
65
|
other: "%{count} Imagini"
|
@@ -67,6 +68,7 @@ ro:
|
|
67
68
|
no_results: Nu există înregistrări
|
68
69
|
previous_slide: Anteriorul
|
69
70
|
video:
|
71
|
+
zero: 0 videoclipuri
|
70
72
|
few: "%{count} videoclipuri"
|
71
73
|
one: 1 videoclip
|
72
74
|
other: "%{count} videoclipuri"
|
data/lib/decidim/gallery.rb
CHANGED
@@ -10,5 +10,10 @@ module Decidim
|
|
10
10
|
# This namespace holds the logic of the `Gallery` component. This component
|
11
11
|
# allows users to create gallery in a participatory space.
|
12
12
|
module Gallery
|
13
|
+
include ActiveSupport::Configurable
|
14
|
+
|
15
|
+
config_accessor :enable_animation do
|
16
|
+
false
|
17
|
+
end
|
13
18
|
end
|
14
19
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-gallery
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexandru-Emil Lupu
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-07-
|
11
|
+
date: 2023-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: decidim-admin
|
@@ -143,7 +143,7 @@ licenses:
|
|
143
143
|
- AGPL-3.0
|
144
144
|
metadata:
|
145
145
|
rubygems_mfa_required: 'true'
|
146
|
-
post_install_message:
|
146
|
+
post_install_message:
|
147
147
|
rdoc_options: []
|
148
148
|
require_paths:
|
149
149
|
- lib
|
@@ -159,7 +159,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
159
159
|
version: '0'
|
160
160
|
requirements: []
|
161
161
|
rubygems_version: 3.1.6
|
162
|
-
signing_key:
|
162
|
+
signing_key:
|
163
163
|
specification_version: 4
|
164
164
|
summary: A decidim gallery module
|
165
165
|
test_files: []
|