scrivito_tabbed_content_widget 0.0.1 → 0.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d17b4f613975dc845c11177697047c172f4d790f
4
- data.tar.gz: 57aeaf70d74181c01c5ac2e54b162dc0d46af331
3
+ metadata.gz: 3c4a005c38298a43a46ef5bb2e0fb5dfa2bf186b
4
+ data.tar.gz: 839122d2fe608151111343c5c6433f5213b23d1f
5
5
  SHA512:
6
- metadata.gz: 104f5470289a5f09a2073a9aa80473601e38c0171507b430351d1e7d7e92b8564dc20318b9942ddb02c26dbf945d487e79694f9e4177596366e560989e554214
7
- data.tar.gz: 7a2ff1f72740501a894490749fb6add615b18a8a6a28a7c1127a129f7521ddae70edfa475a08184940c7a86ced3b804fe7a8ee2ad52ec278602bfbbf0f8c8fd9
6
+ metadata.gz: 72da2317b5b38d4f9590323078d8cd7a80bfc5ff75cf9626955310540d025d15f8b6c436b1b0648c0b7298c6c534c73459e51470fce538b23203a6e1117d2150
7
+ data.tar.gz: d768e5dc457b20b118170837bc959b28eb472dab6bf292b7dad3930a965e38cb357131f11d5d43b2dfdaeb8e58d7a79f019076e144d6b6cf1e929b57841d53e5
data/LICENSE ADDED
@@ -0,0 +1,4 @@
1
+ Copyright (c) 2009 - 2014 Infopark AG (http://www.infopark.com)
2
+
3
+ This software can be used and modified under the LGPL-3.0. Please refer to
4
+ http://www.gnu.org/licenses/lgpl-3.0.html for the license text.
data/README.md CHANGED
@@ -19,7 +19,9 @@ Run bundle:
19
19
 
20
20
  $ bundle
21
21
 
22
- (Currently you need to download the Gem's files from github and install it locally.)
22
+ Add this line to your application's editing.js
23
+
24
+ //= require scrivito_tabbed_content_widget/editing
23
25
 
24
26
  Run
25
27
 
@@ -37,3 +39,8 @@ Switch to your Workspace 'rtc' and follow below Steps for Usage. If you are happ
37
39
  - Put some 'Tabbed Content Tab' widgets into it.
38
40
  - For each of the Tabbed Content Tabs: set a headline and fill the content with any widget (text, images, whatever).
39
41
 
42
+ ## License
43
+
44
+ Copyright (c) 2009 - 2014 Infopark AG (http://www.infopark.com)
45
+
46
+ This software can be used and modified under the LGPL-3.0. Please refer to http://www.gnu.org/licenses/lgpl-3.0.html for the license text.
@@ -1,6 +1,7 @@
1
1
  $("#add_new_tab").bind("click", function(e) {
2
2
  e.preventDefault();
3
- $.get("/add_new_tab?obj=" + scrivito.obj.current_page.id() + "&widget=" + $(this).attr("widgetid"), function(data) {
3
+ $.get("/scrivito_tabbed_content_widget/add_new_tab?obj=" + $(this).attr("pageid") + "&widget=" + $(this).attr("widgetid"), function(data) {
4
+ // TBD: do not reload full page, only tabbed content widget and activate newly created tab
4
5
  location.reload();
5
6
  });
6
7
 
@@ -3,7 +3,6 @@ class TabbedContentWidget < Widget
3
3
  DEFAULT_TABS = 2
4
4
 
5
5
  def self.valid_widget_classes_for(field_name)
6
- # unfortunately this does not work with the current sdk, the valid_widget_classes_for method is for Objs only:
7
6
  %w[TabbedContentTabWidget]
8
7
  end
9
8
 
@@ -9,7 +9,7 @@
9
9
 
10
10
  - if scrivito_in_editable_view?
11
11
  %li.new_tab
12
- %a{id: "add_new_tab", widgetid: widget.id, href: "#", style: "background-color: #439439; color: white;"}
12
+ %a{id: "add_new_tab", pageid: @obj.id, widgetid: widget.id, href: "#", style: "background-color: #439439; color: white;"}
13
13
  New Tab
14
14
 
15
15
  .tab-content
@@ -1,10 +1,2 @@
1
- .editing-dialog-thumbnail
2
- .visualization
3
- %span.icon.editing-icon-plus
4
-
5
- .title
6
- Tabbed Content
7
-
8
- .description
9
- Widget for inserting content tabs
10
-
1
+ = scrivito_thumbnail 'Tabbed Content', image_tag("scrivito_tabbed_content_widget/widget_preview_tabbed.png") do
2
+ Content Tabs
data/config/routes.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  Rails.application.routes.draw do
2
- get '/add_new_tab', to: 'scrivito_tabbed_content_widget/tabbed_content_widget#add_new_tab'
2
+ get '/scrivito_tabbed_content_widget/add_new_tab', to: 'scrivito_tabbed_content_widget/tabbed_content_widget#add_new_tab'
3
3
  end
@@ -1,3 +1,3 @@
1
1
  module ScrivitoTabbedContentWidget
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
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.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scrivito
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-31 00:00:00.000000000 Z
11
+ date: 2015-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: scrivito
@@ -59,9 +59,10 @@ executables: []
59
59
  extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
- - MIT-LICENSE
62
+ - LICENSE
63
63
  - README.md
64
64
  - Rakefile
65
+ - app/assets/images/scrivito_tabbed_content_widget/widget_preview_tabbed.png
65
66
  - app/assets/javascripts/scrivito_tabbed_content_widget/application.js
66
67
  - app/assets/javascripts/scrivito_tabbed_content_widget/editing.js
67
68
  - app/assets/stylesheets/scrivito_tabbed_content_widget/application.css
@@ -85,7 +86,7 @@ files:
85
86
  - scrivito/migrate/0_create_tabbed_content_widget.rb
86
87
  homepage: https://www.scrivito.com
87
88
  licenses:
88
- - MIT
89
+ - LGPL-3.0
89
90
  metadata: {}
90
91
  post_install_message:
91
92
  rdoc_options: []
data/MIT-LICENSE DELETED
@@ -1,20 +0,0 @@
1
- Copyright 2014 YOURNAME
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.