Skip to content

Commit

Permalink
Merge cc71e79 into 779c4e0
Browse files Browse the repository at this point in the history
  • Loading branch information
alecslupu committed May 12, 2023
2 parents 779c4e0 + cc71e79 commit 66e2af0
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.7.6
2.7.5
24 changes: 12 additions & 12 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
PATH
remote: .
specs:
decidim-slider (0.0.1)
decidim-core (= 0.26.5)
decidim-slider (0.0.2)
decidim-core (~> 0.26.0)

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -334,7 +334,7 @@ GEM
warden (~> 1.2.3)
devise-i18n (1.11.0)
devise (>= 4.9.0)
devise_invitable (2.0.7)
devise_invitable (2.0.8)
actionmailer (>= 5.0)
devise (>= 4.6)
diff-lcs (1.5.0)
Expand Down Expand Up @@ -398,7 +398,7 @@ GEM
highline (2.1.0)
html_tokenizer (0.0.7)
htmlentities (4.3.4)
i18n (1.12.0)
i18n (1.13.0)
concurrent-ruby (~> 1.0)
i18n-tasks (0.9.37)
activesupport (>= 4.0.2)
Expand Down Expand Up @@ -489,7 +489,7 @@ GEM
net-smtp (0.3.3)
net-protocol
nio4r (2.5.9)
nokogiri (1.14.3-x86_64-linux)
nokogiri (1.14.4-x86_64-linux)
racc (~> 1.4)
oauth (1.1.0)
oauth-tty (~> 1.0, >= 1.0.1)
Expand Down Expand Up @@ -550,7 +550,7 @@ GEM
puma (5.6.5)
nio4r (~> 2.0)
racc (1.6.2)
rack (2.2.6.4)
rack (2.2.7)
rack-attack (6.6.1)
rack (>= 1.0, < 3)
rack-cors (1.1.1)
Expand Down Expand Up @@ -712,7 +712,7 @@ GEM
temple (0.10.0)
terminal-table (3.0.2)
unicode-display_width (>= 1.1.1, < 3)
thor (1.2.1)
thor (1.2.2)
thread_safe (0.3.6)
tilt (2.1.0)
timeout (0.3.2)
Expand Down Expand Up @@ -764,7 +764,7 @@ GEM
wkhtmltopdf-binary (0.12.6.6)
xpath (3.2.0)
nokogiri (~> 1.8)
zeitwerk (2.6.7)
zeitwerk (2.6.8)

PLATFORMS
x86_64-linux
Expand All @@ -773,8 +773,8 @@ DEPENDENCIES
bootsnap (~> 1.7)
byebug (~> 11.0)
codecov
decidim (= 0.26.5)
decidim-dev (= 0.26.5)
decidim (~> 0.26.0)
decidim-dev (~> 0.26.0)
decidim-slider!
faker (~> 2.14)
letter_opener_web (~> 1.3)
Expand All @@ -786,7 +786,7 @@ DEPENDENCIES
web-console

RUBY VERSION
ruby 2.7.6p219
ruby 2.7.5p203

BUNDLED WITH
2.4.6
2.3.5
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Decidim::Slider

A Slider component for Decidim's homepage.
A Slider for Decidim's homepage.

## Usage

Slider will be available as a Component for a Participatory
Space.
Slider will be available as a Content block in the homepage section. It will be displayed as a carousel with the images and links provided in the admin panel.


## Installation

Expand Down
16 changes: 8 additions & 8 deletions app/cells/decidim/slider/homepage/main_cell.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ def has_slides?
def slides
@slides ||= Decidim::ContentBlock.published.for_scope(:slider_tabs, organization: current_organization).order(:weight)
end
#
# def cache_hash
# hash = [I18n.locale]
# slides.each do |slide|
# hash.push(slide.cache_key_with_version)
# end
# hash.join(Decidim.cache_key_separator)
# end

def cache_hash
hash = [I18n.locale]
slides.each do |slide|
hash.push(slide.cache_key_with_version)
end
hash.join(Decidim.cache_key_separator)
end
end
end
end
Expand Down
4 changes: 2 additions & 2 deletions lib/decidim/slider/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ module Decidim
# This holds the decidim-meetings version.
module Slider
def self.version
"0.0.1"
"0.0.2"
end

def self.decidim_version
"0.26.5"
"~> 0.26.0"
end
end
end

0 comments on commit 66e2af0

Please sign in to comment.