roroacms 0.0.3 → 0.0.4

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.
@@ -1,42 +1,3 @@
1
- /**! hopscotch - v0.2.0
2
- *
3
- * Copyright 2014 LinkedIn Corp. All rights reserved.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- /**
18
- * This fade animation is based on Dan Eden's animate.css (http://daneden.me/animate/), under the terms of the MIT license.
19
- *
20
- * Copyright 2013 Dan Eden.
21
- *
22
- * Permission is hereby granted, free of charge, to any person obtaining a copy
23
- * of this software and associated documentation files (the "Software"), to deal
24
- * in the Software without restriction, including without limitation the rights
25
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
26
- * copies of the Software, and to permit persons to whom the Software is
27
- * furnished to do so, subject to the following conditions:
28
- *
29
- * The above copyright notice and this permission notice shall be included in
30
- * all copies or substantial portions of the Software.
31
- *
32
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
33
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
34
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
35
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
36
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
37
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
38
- * THE SOFTWARE.
39
- */
40
1
  .animated {
41
2
  -webkit-animation-fill-mode: both;
42
3
  -moz-animation-fill-mode: both;
@@ -234,7 +195,6 @@
234
195
  animation-name: fadeInLeft;
235
196
  }
236
197
  div.hopscotch-bubble .hopscotch-nav-button {
237
- /* borrowed from katy styles */
238
198
  font-weight: bold;
239
199
  border-width: 1px;
240
200
  border-style: solid;
@@ -279,7 +239,6 @@ div.hopscotch-bubble .hopscotch-nav-button.next {
279
239
  border-color: #1b5480;
280
240
  color: #fff;
281
241
  margin: 0 0 0 10px;
282
- /* HS specific*/
283
242
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
284
243
  background-color: #287bbc;
285
244
  filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#287bbc', endColorstr='#23639a');
@@ -327,11 +286,8 @@ div.hopscotch-bubble {
327
286
  position: absolute;
328
287
  z-index: 999999;
329
288
  -moz-background-clip: padding;
330
- /* for Mozilla browsers*/
331
289
  -webkit-background-clip: padding;
332
- /* Webkit */
333
290
  background-clip: padding-box;
334
- /* browsers with full support */
335
291
  box-shadow:1px 1px 2px rgba(0, 0, 0, 0.2);
336
292
  }
337
293
  div.hopscotch-bubble.animate {
@@ -373,7 +329,6 @@ div.hopscotch-bubble .hopscotch-bubble-container {
373
329
  position: relative;
374
330
  text-align: left;
375
331
  -webkit-font-smoothing: antialiased;
376
- /* to fix text flickering */
377
332
  }
378
333
  div.hopscotch-bubble .hopscotch-content {
379
334
  font-family: 'Open Sans',sans-serif;
@@ -384,9 +339,7 @@ div.hopscotch-bubble .hopscotch-content {
384
339
  margin: -5px 0 11px;
385
340
  padding-top: 20px;
386
341
  }
387
- div.hopscotch-bubble .hopscotch-bubble-content {
388
- /*margin: 0 0 0 40px;*/
389
- }
342
+
390
343
  div.hopscotch-bubble.no-number .hopscotch-bubble-content {
391
344
  margin: 0;
392
345
  }
@@ -501,7 +454,6 @@ div.hopscotch-bubble .hopscotch-actions {
501
454
  margin: 10px 0 0;
502
455
  text-align: right;
503
456
  }
504
- /* Overlay styles */
505
457
  div.hopscotch-overlay {
506
458
  position: absolute;
507
459
  opacity: .3;
@@ -289,7 +289,7 @@
289
289
  padding: 0;
290
290
  width: 20px;
291
291
  height: 20px;
292
- background: url(grey.png) no-repeat;
292
+ background: url(<%=asset_path "roroacms/admin/grey.png"%>) no-repeat;
293
293
  border: none;
294
294
  cursor: pointer;
295
295
  }
@@ -329,7 +329,7 @@
329
329
  only screen and (min-device-pixel-ratio: 1.5) {
330
330
  .icheckbox_flat-grey,
331
331
  .iradio_flat-grey {
332
- background-image: url(grey@2x.png);
332
+ background-image: url(<%=asset_path "roroacms/admin/grey@2x.png"%>);
333
333
  -webkit-background-size: 176px 22px;
334
334
  background-size: 176px 22px;
335
335
  }
@@ -9,7 +9,7 @@
9
9
  padding: 0;
10
10
  width: 20px;
11
11
  height: 20px;
12
- background: url(grey.png) no-repeat;
12
+ background: url(<%=asset_path "roroacms/admin/grey.png"%>) no-repeat;
13
13
  border: none;
14
14
  cursor: pointer;
15
15
  }
@@ -49,7 +49,7 @@
49
49
  only screen and (min-device-pixel-ratio: 1.5) {
50
50
  .icheckbox_flat-grey,
51
51
  .iradio_flat-grey {
52
- background-image: url(grey@2x.png);
52
+ background-image: url(<%=asset_path "roroacms/admin/grey@2x.png"%>);
53
53
  -webkit-background-size: 176px 22px;
54
54
  background-size: 176px 22px;
55
55
  }
@@ -1,11 +1,3 @@
1
- /*
2
- * typehead.js-bootstrap3.less
3
- * @version 0.2.3
4
- * https://github.com/hyspace/typeahead.js-bootstrap3.less
5
- *
6
- * Licensed under the MIT license:
7
- * http://www.opensource.org/licenses/MIT
8
- */
9
1
  .has-warning .twitter-typeahead .tt-input,
10
2
  .has-warning .twitter-typeahead .tt-hint {
11
3
  border-color: #8a6d3b;
@@ -152,7 +144,7 @@ fieldset[disabled] .twitter-typeahead .tt-input {
152
144
  z-index: 1 !important;
153
145
  min-width: 160px;
154
146
  width: 100%;
155
- // padding: 5px 0;
147
+ /* padding: 5px 0;*/
156
148
  margin: -2px 0 0 0;
157
149
  list-style: none;
158
150
  font-size: 14px;
@@ -161,8 +153,8 @@ fieldset[disabled] .twitter-typeahead .tt-input {
161
153
  border: 1px solid rgba(0, 0, 0, 0.15);
162
154
  border-bottom-left-radius: 3px;
163
155
  border-bottom-right-radius: 3px;
164
- // -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
165
- // box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
156
+ /* -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);*/
157
+ /* box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);*/
166
158
  background-clip: padding-box;
167
159
  *border-right-width: 2px;
168
160
  *border-bottom-width: 2px;
@@ -110,7 +110,9 @@ module Roroacms
110
110
 
111
111
  def strip_url(url)
112
112
 
113
- url.sub!(/www./, '') if url.include? "www."
113
+ return url if url.blank?
114
+
115
+ url.sub!(/www./, '') if url.include? "www."
114
116
 
115
117
  url.sub!(/https\:\/\//, '') if url.include? "https://"
116
118
 
@@ -41,7 +41,6 @@
41
41
  <ul>
42
42
  <li class="profile-photo">
43
43
  <%= link_to roroacms.edit_admin_administrator_path(session[:admin_id]) do %>
44
- <img src="<%= current_user.avatar %>" class="img-circle" width="35" height="35">
45
44
  <% end %>
46
45
  </li>
47
46
  </ul>
@@ -42,6 +42,7 @@ module Roroacms
42
42
  Devise::ConfirmationsController.layout "roroacms/login"
43
43
  Devise::UnlocksController.layout "roroacms/login"
44
44
  Devise::PasswordsController.layout "roroacms/login"
45
+ ApplicationController.helper(ActionView::Helpers::ThemeHelper) if File.exists?("#{Rails.root}/app/helpers/theme_helper.rb")
45
46
  end
46
47
 
47
48
  require "#{Roroacms::Engine.root}/app/models/roroacms/setting.rb"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roroacms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -299,8 +299,12 @@ files:
299
299
  - app/assets/images/roroacms/admin/avatar4.gif
300
300
  - app/assets/images/roroacms/admin/avatar5.gif
301
301
  - app/assets/images/roroacms/admin/avatar6.gif
302
+ - app/assets/images/roroacms/admin/chosen-sprite.png
303
+ - app/assets/images/roroacms/admin/chosen-sprite@2x.png
302
304
  - app/assets/images/roroacms/admin/favicon-old.ico
303
305
  - app/assets/images/roroacms/admin/favicon.ico
306
+ - app/assets/images/roroacms/admin/grey.png
307
+ - app/assets/images/roroacms/admin/grey@2x.png
304
308
  - app/assets/images/roroacms/admin/logo.png
305
309
  - app/assets/images/roroacms/admin/roroa-logo.png
306
310
  - app/assets/images/roroacms/admin/roroafull.png
@@ -333,12 +337,10 @@ files:
333
337
  - app/assets/javascripts/roroacms/vendor/select.js
334
338
  - app/assets/javascripts/roroacms/vendor/sortable.js
335
339
  - app/assets/stylesheets/roroacms/admin/application.css
336
- - app/assets/stylesheets/roroacms/admin/main.css
340
+ - app/assets/stylesheets/roroacms/admin/main.css.erb
337
341
  - app/assets/stylesheets/roroacms/vendor/animate.css
338
342
  - app/assets/stylesheets/roroacms/vendor/bootstrap/css/bootstrap.min.css
339
- - app/assets/stylesheets/roroacms/vendor/chosen/chosen-sprite.png
340
- - app/assets/stylesheets/roroacms/vendor/chosen/chosen-sprite@2x.png
341
- - app/assets/stylesheets/roroacms/vendor/chosen/chosen.css
343
+ - app/assets/stylesheets/roroacms/vendor/chosen/chosen.css.erb
342
344
  - app/assets/stylesheets/roroacms/vendor/datatables/css/dataTables.css
343
345
  - app/assets/stylesheets/roroacms/vendor/datatables/images/back_disabled.png
344
346
  - app/assets/stylesheets/roroacms/vendor/datatables/images/back_enabled.png
@@ -351,11 +353,10 @@ files:
351
353
  - app/assets/stylesheets/roroacms/vendor/datatables/images/sort_both.png
352
354
  - app/assets/stylesheets/roroacms/vendor/datatables/images/sort_desc.png
353
355
  - app/assets/stylesheets/roroacms/vendor/datatables/images/sort_desc_disabled.png
354
- - app/assets/stylesheets/roroacms/vendor/editor.css
355
356
  - app/assets/stylesheets/roroacms/vendor/ghostdown.css
356
357
  - app/assets/stylesheets/roroacms/vendor/hopscotch.css
357
- - app/assets/stylesheets/roroacms/vendor/icheck/css/_all.css
358
- - app/assets/stylesheets/roroacms/vendor/icheck/css/grey.css
358
+ - app/assets/stylesheets/roroacms/vendor/icheck/css/_all.css.erb
359
+ - app/assets/stylesheets/roroacms/vendor/icheck/css/grey.css.erb
359
360
  - app/assets/stylesheets/roroacms/vendor/icheck/css/grey.png
360
361
  - app/assets/stylesheets/roroacms/vendor/icheck/css/grey@2x.png
361
362
  - app/assets/stylesheets/roroacms/vendor/jquery/jquery-ui.css