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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 94c8483ccdad8c1ac853e65d2770da70d532e540595b670035f74a35b1879b0d
4
- data.tar.gz: c05f90b624528b5038d0274b3e1163ede721b3200b841299a059cc36b7dad84f
3
+ metadata.gz: c303ad87c933b01a9f8d265c25e4770b78c421afb354aab5a425ae085ed7ecb1
4
+ data.tar.gz: 91929d8cd6b1ec9d3fc34ccd913a852db47afa74eb39eea77d0fc4b04dcef115
5
5
  SHA512:
6
- metadata.gz: f28efdd54a7ef3534b238f4baa182309b9c8ae889793f13775dccd9c2928654950380413d3046a83213f82f9e49ab91bede03166b43ae4cfaf836da8d5b736bd
7
- data.tar.gz: f7c936c9cf0b9c075b9d188da41482faa163630ee37d97f6945323d314edbd34b4e2a29c13f0de7dd56d6b22e8001d685dd10c824705f3469890b6099d78174e
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( ".#{gallery_component.settings.gallery_type}", count: items.total_count) %>)</h3>
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">&times;</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>
@@ -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:
@@ -59,9 +59,10 @@ fr:
59
59
  main:
60
60
  close_modal: Fermer
61
61
  image:
62
- few: "%{count} photos"
63
- one: 1 photo
64
- other: "%{count} photos"
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:
@@ -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"
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-gallery version.
5
5
  module Gallery
6
6
  def self.version
7
- "0.0.2"
7
+ "0.0.4"
8
8
  end
9
9
 
10
10
  def self.decidim_version
@@ -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.2
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-02 00:00:00.000000000 Z
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: []