scrivito_tabbed_content_widget 0.70.1 → 0.70.2
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/README.md +0 -8
- data/app/views/tabbed_content_widget/show.html.erb +8 -6
- data/lib/scrivito_tabbed_content_widget/version.rb +1 -1
- metadata +2 -4
- data/app/assets/javascripts/scrivito_tabbed_content_widget.js +0 -21
- data/app/assets/stylesheets/scrivito_tabbed_content_widget.css +0 -47
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9a0f6ee340762afd2228fdc7f33d312648eed618
|
|
4
|
+
data.tar.gz: 67b493daad18acfeb60a4269e9623383aa634e5a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2925a382e8dbb15d6216b7f55c383619857c56bb0a04fdecdf22873462abd835e67f5dce4ba40f2fba8ffeaecf6e58452f1e061be3937b63a4936a80af5ce4bc
|
|
7
|
+
data.tar.gz: 178cf293e95f18c1e0bc2cbae9eeef5b4b12e97b82531360a30dfeeb9afd5929fc114e520d56adcf9d676a20e5936d2d6d7fc20595081bd0ff26bd0a68f94bd6
|
data/README.md
CHANGED
|
@@ -8,14 +8,6 @@ Add the gem to your Gemfile:
|
|
|
8
8
|
|
|
9
9
|
gem 'scrivito_tabbed_content_widget'
|
|
10
10
|
|
|
11
|
-
Add this line to your applications stylesheet manifest
|
|
12
|
-
|
|
13
|
-
*= require scrivito_tabbed_content_widget
|
|
14
|
-
|
|
15
|
-
Add this line to your applications javascript manifest
|
|
16
|
-
|
|
17
|
-
//= require scrivito_tabbed_content_widget
|
|
18
|
-
|
|
19
11
|
## License
|
|
20
12
|
|
|
21
13
|
Copyright (c) 2009 - 2015 Infopark AG (http://www.infopark.com)
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
<div class="scrivito-tab-group">
|
|
2
|
-
<
|
|
2
|
+
<ul class="nav nav-tabs" role="tablist">
|
|
3
3
|
<% widget.tabs.each_with_index do |tab, i| %>
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
<li role="presentation" class="<%= i == 0 ? 'active' : '' %>">
|
|
5
|
+
<a href="#tab-<%= widget.id %>-<%= i %>" aria-controls="home" role="tab" data-toggle="tab" class="<%= tab.background_color %>">
|
|
6
|
+
<%= scrivito_value tab.title %>
|
|
7
|
+
</a>
|
|
8
|
+
</li>
|
|
7
9
|
<% end %>
|
|
8
10
|
</div>
|
|
9
|
-
<div class="
|
|
11
|
+
<div class="tab-content">
|
|
10
12
|
<% widget.tabs.each_with_index do |tab, i| %>
|
|
11
|
-
<%= scrivito_tag :div, tab, :content, class: "#{tab.background_color}
|
|
13
|
+
<%= scrivito_tag :div, tab, :content, id: "tab-#{widget.id}-#{i}", class: "#{tab.background_color} tab-pane #{'active' if i == 0}" %>
|
|
12
14
|
<% end %>
|
|
13
15
|
</div>
|
|
14
16
|
</div>
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: scrivito_tabbed_content_widget
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.70.
|
|
4
|
+
version: 0.70.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Scrivito
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-09-
|
|
11
|
+
date: 2015-09-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: scrivito
|
|
@@ -63,8 +63,6 @@ files:
|
|
|
63
63
|
- README.md
|
|
64
64
|
- Rakefile
|
|
65
65
|
- app/assets/images/scrivito_tabbed_content_widget/widget_preview_tabbed.png
|
|
66
|
-
- app/assets/javascripts/scrivito_tabbed_content_widget.js
|
|
67
|
-
- app/assets/stylesheets/scrivito_tabbed_content_widget.css
|
|
68
66
|
- app/models/tabbed_content_tab_widget.rb
|
|
69
67
|
- app/models/tabbed_content_widget.rb
|
|
70
68
|
- app/views/tabbed_content_tab_widget/details.html.erb
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
(function($, App) {
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
$(function() {
|
|
5
|
-
scrivito.on('content', function(content) {
|
|
6
|
-
$(content).find('.scrivito-tab-group').each(function(i, tab_group) {
|
|
7
|
-
tab_group = $(tab_group);
|
|
8
|
-
tab_group.find('.scrivito-tab-title').each(function(i, tab_title) {
|
|
9
|
-
tab_title = $(tab_title);
|
|
10
|
-
tab_title.click(function() {
|
|
11
|
-
tab_group.find('.scrivito-tab-title').removeClass('scrivito-tab-active');
|
|
12
|
-
tab_title.addClass('scrivito-tab-active');
|
|
13
|
-
tab_group.find('.scrivito-tab-content').removeClass('scrivito-tab-active');
|
|
14
|
-
tab_group.find('.scrivito-tab-content').eq(tab_title.index())
|
|
15
|
-
.addClass('scrivito-tab-active');
|
|
16
|
-
});
|
|
17
|
-
});
|
|
18
|
-
});
|
|
19
|
-
});
|
|
20
|
-
});
|
|
21
|
-
})(jQuery, this);
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
.scrivito-tab-group .scrivito-tab-titles:before,
|
|
2
|
-
.scrivito-tab-group .scrivito-tab-titles:after {
|
|
3
|
-
content: " ";
|
|
4
|
-
display: table;
|
|
5
|
-
}
|
|
6
|
-
.scrivito-tab-group .scrivito-tab-titles:after {
|
|
7
|
-
clear: both;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.scrivito-tab-group .scrivito-tab-titles .scrivito-tab-title {
|
|
11
|
-
float: left;
|
|
12
|
-
padding: 10px 20px;
|
|
13
|
-
background: transparent;
|
|
14
|
-
cursor: pointer;
|
|
15
|
-
margin-right: 2px;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.scrivito-tab-group .scrivito-tab-titles .scrivito-tab-title:hover {
|
|
19
|
-
background: whitesmoke;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.scrivito-tab-group .scrivito-tab-titles .scrivito-tab-title.scrivito-tab-active {
|
|
23
|
-
background: #fff;
|
|
24
|
-
box-shadow: -2px -2px 5px -2px rgba(0,0,0,0.1),2px -2px 5px -2px rgba(0,0,0,0.1);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.scrivito-tab-group .scrivito-tab-contents {
|
|
28
|
-
background-color: #fff;
|
|
29
|
-
box-shadow: 0 0 5px rgba(0,0,0,0.1);
|
|
30
|
-
min-height: 100px!important;
|
|
31
|
-
width: 100%;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.scrivito-tab-group .scrivito-tab-contents .scrivito-tab-content {
|
|
35
|
-
display: none;
|
|
36
|
-
padding: 20px;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.scrivito-tab-group .scrivito-tab-contents .scrivito-tab-content.scrivito-tab-active {
|
|
40
|
-
display: block;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
@media (max-width: 600px) {
|
|
44
|
-
.scrivito-tab-group .scrivito-tab-titles .scrivito-tab-title {
|
|
45
|
-
width: 100%;
|
|
46
|
-
}
|
|
47
|
-
}
|