cedar 0.0.1.pre → 0.0.2.pre

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: 37a9874d9ec3974d629266793d477fe5d9829703
4
- data.tar.gz: 45048b87938643c88e6ddb15c3f5f9e6ef746bef
3
+ metadata.gz: 4a0c5adf5e2f07dee717a83cc3d4276628878d38
4
+ data.tar.gz: 2bb4a59d7c2f52846d3aa915608551cc66f73b61
5
5
  SHA512:
6
- metadata.gz: e08c905f813b6d74df6e8f8aea8dd5be3e733df0e8606fc4b5835d6bb990e1995f6ca01f248d92cd7e167a09d533e1f46e9c6c4c2a179e1cd0d6c73433a76ccf
7
- data.tar.gz: 12f2a566de94014a87e59f70bb500b0abfb8a5055ae008c09832f20eb5ef459cf76a0fcfb5b2c508cfff7af8b1701c3bb2c85c3e599e8bfc479961af7f4a4a6b
6
+ metadata.gz: 87a412b3141bc1d09d2208a14e95d2c888de89b00df8c4557a32556448b4626faa5a798a39344f13ef744d51e649783a6b5975d459a05f5312511c798f759698
7
+ data.tar.gz: e2aff822c1c56cf62bd11fe509890344d032d6fad2a214aa527e2902e01e383e2365c6b00ca6d0cccc44ba951d48b65d7ba9e002dea6bb03f221d4219262d1d3
@@ -174,12 +174,6 @@ Cedar.ContentEntry.prototype.setContent = function(json) {
174
174
 
175
175
  // takes into account edit mode styling
176
176
  Cedar.ContentEntry.prototype.getContent = function(options){
177
-
178
- var payload = null;
179
- if (options && options.length && options['json']){
180
- return { content: 'jsonified' + this.content };
181
- }
182
-
183
177
  if (Cedar.auth.isEditMode()) {
184
178
  return this.getEditOpen(this.cedarId) + this.content + this.getEditClose();
185
179
  }
@@ -213,26 +207,13 @@ Cedar.ContentEntry.prototype.render = function() {
213
207
  }.bind(this));
214
208
  }
215
209
 
216
- Cedar.ContentEntry.prototype.renderJSON = function() {
217
- //this.retrieve();
218
-
219
- return this.retrieve().done( function() {
220
- return (this.getContent({'json':true}));
221
- }.bind(this));
222
-
223
-
224
- // return this.retrieve().done(function() {
225
- // return $.Deferred().resolve(this.getContent({'json':true}));
226
- // }.bind(this));
227
- }
228
-
229
210
  // styling for edit box
230
211
  Cedar.ContentEntry.prototype.getEditOpen = function(id) {
231
212
  var block;
232
- block = '<span class="cms-editable clearfix">';
233
- block += '<span class="cms-edit-tools">';
234
- block += '<a target="cedarEdit" href="' + Cedar.config.server + 'cmsadmin/EditData?cdr=1&t=ContentEntry&o=' + encodeURIComponent(id) + '" class="cms-edit-icon" >';
235
- block += '<b class="cms-edit-label">content block</b><i class="cms-icon cms-icon-right cms-icon-edit"></i></a>';
213
+ block = '<span class="cedar-cms-editable clearfix">';
214
+ block += '<span class="cedar-cms-edit-tools">';
215
+ block += '<a target="cedarEdit" href="' + Cedar.config.server + 'cmsadmin/EditData?cdr=1&t=ContentEntry&o=' + encodeURIComponent(id) + '" class="cedar-cms-edit-icon" >';
216
+ block += '<b class="cedar-cms-edit-label">content block</b><i class="cedar-cms-icon cedar-cms-icon-right cedar-cms-icon-edit"></i></a>';
236
217
  block += '</span>';
237
218
  return block;
238
219
  }
@@ -1,6 +1,3 @@
1
- // Place all the styles related to the welcome controller here.
2
- // They will automatically be included in application.css.
3
- // You can use Sass (SCSS) here: http://sass-lang.com/
4
1
  /**
5
2
  * Styles particular to the CMS when in "edit-mode" while viewing a front-end page.
6
3
  * @browsers ALL
@@ -8,21 +5,14 @@
8
5
 
9
6
 
10
7
 
11
- #cmsToolbarPlaceholder {
12
- height: 46px !important;
13
- }
14
-
15
- .cms-edit-control,
16
- .cms-edit-tools {
17
- font-family: Arial, sans-serif;
18
- }
19
8
 
20
- .cms-editable {
9
+ .cedar-cms-editable {
21
10
  display: block !important;
22
11
  border: 1px dotted #F65126 !important
23
12
  }
24
13
 
25
- .cms-edit-tools {
14
+ .cedar-cms-edit-tools {
15
+ font-family: Arial, sans-serif;
26
16
  position: relative;
27
17
  display: block !important;
28
18
  font-size: 10px !important;
@@ -30,27 +20,25 @@
30
20
  text-align: left !important;
31
21
  }
32
22
 
33
- .cms-edit-tools a {
23
+ .cedar-cms-edit-tools a {
34
24
  color: #F26521 !important;
35
25
  text-decoration: none !important;
36
26
  }
37
27
 
38
- .cms-edit-tools a:hover {
28
+ .cedar-cms-edit-tools a:hover {
39
29
  color: #FA8A2D !important;
40
30
  text-decoration: none !important;
41
31
  }
42
32
 
43
- .cms-edit-label {
33
+ .cedar-cms-edit-label {
44
34
  color: #F26521 !important;
45
35
  text-transform: uppercase;
46
36
  font-size: 10px;
47
37
  padding: 0 6px;
48
38
  }
49
39
 
50
- .cms-edit-tools .cms-edit-icon,
51
- .cms-edit-tools .cms-edit-icon:hover,
52
- #industryNavMain #inner .cms-edit-tools .cms-edit-icon,
53
- #industryNavMain #inner .cms-edit-tools .cms-edit-icon:hover {
40
+ .cedar-cms-edit-tools .cedar-cms-edit-icon,
41
+ .cedar-cms-edit-tools .cedar-cms-edit-icon:hover {
54
42
  display: block;
55
43
  position: absolute;
56
44
  top: 0;
@@ -64,25 +52,17 @@
64
52
 
65
53
  /* 4 classes to display icons */
66
54
 
67
- .cms-edit-tools.spacer {
55
+ .cedar-cms-edit-tools.spacer {
68
56
  height: 20px;
69
57
  }
70
58
 
71
- .cms-edit-tools.left-align .cms-edit-icon {
59
+ .cedar-cms-edit-tools.left-align .cedar-cms-edit-icon {
72
60
  right: auto;
73
61
  left: 0;
74
62
  }
75
63
 
76
- .cms-error-log {
77
- background-color: white;
78
- border: 1px solid black;
79
- margin-bottom: 5px;
80
- padding: 5px;
81
- color: black;
82
- }
83
-
84
64
  /* Standalone icons */
85
- .cms-icon {
65
+ .cedar-cms-icon {
86
66
  min-height: 18px;
87
67
  width: 18px;
88
68
  height: 18px;
@@ -92,31 +72,15 @@
92
72
  zoom: 1;
93
73
  *display: inline;
94
74
  _height: 18px;
95
- background: transparent url(/resources/cms/media/image/display-tools-sprite.png) scroll no-repeat 0 0;
75
+ background: transparent url(cedar-display-tools-sprite.png) scroll no-repeat 0 0;
96
76
  }
97
77
 
98
- .cms-icon-left {
99
- border-left: 0;
100
- border-right: 1px solid #fff;
101
- }
102
-
103
- .cms-icon-right {
78
+ .cedar-cms-icon-right {
104
79
  border-right: 0;
105
80
  border-left: 1px solid #fff;
106
81
  }
107
82
 
108
- .cms-icon-nav {
109
- background-position: -67px -1px;
110
- }
111
83
 
112
- .cms-icon-edit {
84
+ .cedar-cms-icon-edit {
113
85
  background-position: -89px -20px;
114
86
  }
115
-
116
- .cms-icon-list {
117
- background-position: -34px -39px;
118
- }
119
-
120
- .cms-icon-widget {
121
- background-position: -71px -58px;
122
- }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cedar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.pre
4
+ version: 0.0.2.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jed Murdock
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-06 00:00:00.000000000 Z
11
+ date: 2015-02-09 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Pre-Release Cedar/Ply CaaS Asset Gem
14
14
  email: jedmurdock@gmail.com
@@ -16,11 +16,11 @@ executables: []
16
16
  extensions: []
17
17
  extra_rdoc_files: []
18
18
  files:
19
- - vendor/assets/images/display-tools-sprite.png
20
- - vendor/assets/javascripts/cedar.js
21
- - vendor/assets/javascripts/cedar.marionette.js
22
- - vendor/assets/javascripts/cedarInit.js.erb
23
- - vendor/assets/stylesheets/cedar.scss
19
+ - lib/assets/images/cedar-display-tools-sprite.png
20
+ - lib/assets/javascripts/cedar.js
21
+ - lib/assets/javascripts/cedar.marionette.js
22
+ - lib/assets/javascripts/cedarInit.js.erb
23
+ - lib/assets/stylesheets/cedar.scss
24
24
  homepage: http://plyinteractive.com
25
25
  licenses:
26
26
  - MIT