cmor_carousels 0.0.11.pre → 0.0.12.pre
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: 69ff9bf4ba042a37d92cefb659f4581b96100a967066e831513466809c9b1789
|
4
|
+
data.tar.gz: 8af0c575c178d71d98f5e3f4d92c1e2a55e0d7398623990acf0d72d1513bd650
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac1295f5a174fa6eaf108afe18caec5ac8bd8920923a0e296c3665d2c153bee3ca58b416437d27a9de20df8496970e9cc67d6a69f0527c8d4ca2c8e95d7e1d2d
|
7
|
+
data.tar.gz: 2213c1ad177ddbd2fae7c62772deadbd4c64bc019c3abc6ec9843bb9d4f465f37d82f4318077f9fc43d355be05c7f1c281a44763adaf9adca5e846312085b0e6
|
@@ -14,7 +14,7 @@ module Cmor
|
|
14
14
|
# = carousels_helper(self).render_carousel(:main, autostart: true, interval: 5.0, variant_options: { resize: "1920x1080" })
|
15
15
|
#
|
16
16
|
def render_carousel(identifier, options = {})
|
17
|
-
options.reverse_merge!(autostart: true, interval: 5.0, keyboard: true, pause: :hover, ride: false, wrap: true, controls: true)
|
17
|
+
options.reverse_merge!(autostart: true, interval: 5.0, keyboard: true, pause: :hover, ride: false, wrap: true, controls: true, indicators: true)
|
18
18
|
carousel_options = options.slice(:autostart, :interval, :pause, :ride, :wrap)
|
19
19
|
data_attributes = carousel_options_to_data_attributes(carousel_options)
|
20
20
|
|
@@ -1,9 +1,11 @@
|
|
1
1
|
<div id="<%= dom_id(carousel) %>" class="carousel slide" data-ride="carousel">
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
2
|
+
<% if options[:indicators] %>
|
3
|
+
<ol class="carousel-indicators">
|
4
|
+
<% carousel.item_details.count.times do |i| %>
|
5
|
+
<li data-target="#<%= dom_id(carousel) %>" data-slide-to="<%= i %>" class="<%= (i == 0) ? "active" : "" %>"></li>
|
6
|
+
<% end %>
|
7
|
+
</ol>
|
8
|
+
<% end %>
|
7
9
|
<div class="carousel-inner">
|
8
10
|
<% carousel.item_details.each_with_index do |item_detail, i| %>
|
9
11
|
<div class="carousel-item <%= (i == 0) ? "active" : "" %>">
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cmor_carousels
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.12.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roberto Vasquez Angel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-06-
|
11
|
+
date: 2019-06-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -30,28 +30,28 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.0.
|
33
|
+
version: 0.0.12.pre
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.0.
|
40
|
+
version: 0.0.12.pre
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: cmor_core_frontend
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - '='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.0.
|
47
|
+
version: 0.0.12.pre
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - '='
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.0.
|
54
|
+
version: 0.0.12.pre
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: sqlite3
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|