thesilverspoon 0.0.30 → 0.0.31

Sign up to get free protection for your applications and to get access to all the features.
@@ -330,7 +330,7 @@ inject_into_file "config/routes.rb",s,:after=>"# root :to => 'welcome#index'\n"
330
330
  def insert_devise_code
331
331
  inject_into_file "config/application.rb", 'require "devise"', :after=>"require File.expand_path('../boot', __FILE__)\n"
332
332
  # inject_into_file "config/application.rb", "require 'bootstrap-sass'\n", :after=>"require File.expand_path('../boot', __FILE__)\n"
333
- inject_into_file "config/application.rb", "require 'bootstrapp-rails'\n", :after=>"require 'rails/all'\n"
333
+ inject_into_file "config/application.rb", "require 'bootstrap-rails'\n", :after=>"require 'rails/all'\n"
334
334
  inject_into_file "config/application.rb", "require 'gritter'\n", :after=>"require 'rails/all'\n"
335
335
  inject_into_file "app/assets/stylesheets/application.css", "*=require_directory\n", :before=>"*/"
336
336
  inject_into_file "app/assets/stylesheets/application.css", "*=require bootstrap\n", :before=>"*/"
@@ -1,3 +1,3 @@
1
1
  module Thesilverspoon
2
- VERSION = "0.0.30"
2
+ VERSION = "0.0.31"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thesilverspoon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.30
4
+ version: 0.0.31
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-13 00:00:00.000000000Z
12
+ date: 2012-02-14 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: anjlab-bootstrap-rails
16
- requirement: &82298860 !ruby/object:Gem::Requirement
16
+ requirement: &73390490 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '2.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *82298860
24
+ version_requirements: *73390490
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: gritter
27
- requirement: &82298620 !ruby/object:Gem::Requirement
27
+ requirement: &73390230 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *82298620
35
+ version_requirements: *73390230
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: spreadsheet
38
- requirement: &82298380 !ruby/object:Gem::Requirement
38
+ requirement: &73389930 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *82298380
46
+ version_requirements: *73389930
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: carrierwave
49
- requirement: &82298170 !ruby/object:Gem::Requirement
49
+ requirement: &73320220 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *82298170
57
+ version_requirements: *73320220
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: devise
60
- requirement: &82297880 !ruby/object:Gem::Requirement
60
+ requirement: &73319960 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *82297880
68
+ version_requirements: *73319960
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: cancan
71
- requirement: &82297610 !ruby/object:Gem::Requirement
71
+ requirement: &73319730 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *82297610
79
+ version_requirements: *73319730
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: nifty-generators
82
- requirement: &82297150 !ruby/object:Gem::Requirement
82
+ requirement: &73319330 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,7 +87,7 @@ dependencies:
87
87
  version: '0'
88
88
  type: :runtime
89
89
  prerelease: false
90
- version_requirements: *82297150
90
+ version_requirements: *73319330
91
91
  description: This gem preps a new Rails app with some of the best Rails gems and Jquery
92
92
  sweetness available( Twitter-Bootstrap, Devise, CanCan, Rails Admin, Spreadsheet,
93
93
  ) Not only does it takes care of the installation of these gems, it also extends
@@ -173,17 +173,7 @@ files:
173
173
  - lib/templates/assets/images/logo.png
174
174
  - lib/templates/assets/images/new.png
175
175
  - lib/templates/assets/images/upload.png
176
- - lib/templates/assets/images/welcome_icon_1.png
177
- - lib/templates/assets/images/welcome_icon_2.png
178
- - lib/templates/assets/images/welcome_icon_3.png
179
- - lib/templates/assets/images/welcome_icon_4.png
180
- - lib/templates/assets/images/welcome_image.png
181
- - lib/templates/assets/javascripts/exclusions/fiddletabs.js
182
- - lib/templates/assets/javascripts/exclusions/jquery.mousewheel.min.js
183
- - lib/templates/assets/javascripts/exclusions/jquery.pageslide.js
184
176
  - lib/templates/assets/javascripts/jquery.dataTables.min.js
185
- - lib/templates/assets/stylesheets/base_classes.css.scss
186
- - lib/templates/assets/stylesheets/exclusions/fiddletabs.css
187
177
  - lib/templates/assets/stylesheets/exclusions/images/Sorting icons.psd
188
178
  - lib/templates/assets/stylesheets/exclusions/images/back_disabled.jpg
189
179
  - lib/templates/assets/stylesheets/exclusions/images/back_enabled.jpg
@@ -220,9 +210,7 @@ files:
220
210
  - lib/templates/assets/stylesheets/images/ui-icons_454545_256x240.png
221
211
  - lib/templates/assets/stylesheets/images/ui-icons_888888_256x240.png
222
212
  - lib/templates/assets/stylesheets/images/ui-icons_cd0a0a_256x240.png
223
- - lib/templates/assets/stylesheets/information_page.css.scss
224
213
  - lib/templates/assets/stylesheets/jquery-ui-1.8.17.custom.css
225
- - lib/templates/assets/stylesheets/jquery_data_table.css
226
214
  - lib/templates/assets/stylesheets/silverspoon.css.scss
227
215
  - lib/templates/controller.rb
228
216
  - lib/templates/file_uploader.rb
@@ -1,233 +0,0 @@
1
- /**
2
- * Created by JetBrains RubyMine.
3
- * User: arijit
4
- * Date: 18/1/12
5
- * Time: 1:09 PM
6
- * To change this template use File | Settings | File Templates.
7
- */
8
-
9
- $(function() {
10
- (function($) {
11
- $.fn.extend({
12
- oldAnimate: $.fn.animate,
13
- animate: function(props, speed, easing, callback) {
14
- var camelToHyphen = function(camel) {
15
- return camel.replace(/([A-Z])/g, "-$1").toLowerCase();
16
- }, prefixes = [
17
- "Moz", "Webkit",
18
- "O", "Ms", "Khtml"
19
- ], transitionProp = false,
20
- $this = $(this);
21
- callback = (typeof easing === "function") ? easing : (callback) ? callback : function() {
22
- };
23
- easing = (easing && typeof easing === "string") ? easing : "ease-in-out";
24
- for (var i = 0; i < prefixes.length; i++) {
25
- if (prefixes[i] + "Transition" in $this.get(0).style) {
26
- transitionProp = "-" + prefixes[i].toLowerCase() + "-transition";
27
- break;
28
- }
29
- }
30
- return $this.each(function() {
31
- var $$this = $(this);
32
- var transitionString;
33
- if (transitionProp) {
34
- var oldTransition = $$this.css(transitionProp);
35
- transitionString = (oldTransition) ? oldTransition + ", " : "";
36
- for (prop in props) {
37
- transitionString += camelToHyphen(prop) + " " + speed + "ms " + easing + ", ";
38
- }
39
- transitionString = transitionString.replace(/\, $/, "");
40
- $$this.css(transitionProp, transitionString).css(props);
41
- setTimeout(function() {
42
- $$this.css(transitionProp, oldTransition);
43
- callback();
44
- }, speed);
45
- }
46
- else {
47
- $$this.oldAnimate(props, speed, callback);
48
- }
49
- });
50
- }
51
- });
52
- })(jQuery);
53
-
54
- (function($) {
55
- $.fn.extend({
56
- danceSwitcher: function(options) {
57
- var defaults = {
58
- speed: 1,
59
- collapsedWidth: 230,
60
- collapsedHeight: 80,
61
- collapsedMPB: [10, 10, 10, 10],
62
- collapsedLineHeight: '80px',
63
- activeLineHeight: '48px',
64
- animationSequence: 'prev/next'
65
- };
66
- options = $.extend(defaults, options);
67
- return $(this).each(function() {
68
- var $this = $(this),
69
- speed = options.speed,
70
- first = $(this).children('div').eq(0), // the first child of the switcher, so that it is open by default
71
- i;
72
- $this.css('height', ($this.children('div').length - 1) * (options.collapsedHeight + options.collapsedMPB[0] + options.collapsedMPB[2]) + 'px'); // set the height of the switcher to the appropriate value
73
- first.addClass('active'); // make the first box active
74
- for (i = 1; i < $this.children('div').length; i++) { // position all of the boxes appropriately
75
- $this.children('div').eq(i).css('top', (i - 1) * (options.collapsedHeight + options.collapsedMPB[0] + options.collapsedMPB[2]) + 'px');
76
- }
77
- if (options.animationSequence === 'prev/next') { // using the default animation
78
- $this.children('div').click(function() { // bind aclick event to all the boxes
79
- var $$this = $(this);
80
- if (!$$this.hasClass('active') && !$this.hasClass('inprogress')) { // if the box clicked isn't already active and there isn't already animation going on
81
- var next, prev;
82
- $this.addClass('inprogress'); // make sure 2 animations don't happen at once
83
- $this.children('.active').children('.content').animate({ // fade out the content of the active box
84
- opacity: 0
85
- }, 750 / speed);
86
- $this.children('.active').children('h3').animate({ // animate the active header line height
87
- lineHeight: options.collapsedLineHeight
88
- }, 750 / speed);
89
- if ($$this.next(':not(.active)').get(0)) { // if the clicked box isn't last
90
- next = $(this).next();
91
- prev = false;
92
- }
93
- else {
94
- next = $$this.prev();
95
- prev = true;
96
- }
97
- $$this.css({ // convert the height property of the clicked box to the bottom property
98
- bottom: $this.height() - $$this.position().top - (options.collapsedHeight + options.collapsedMPB[0] + options.collapsedMPB[2]),
99
- height: 'auto'
100
- });
101
- $this.children('.active').css('height', $this.children('.active').height()).animate({
102
- top: next.css('top'), // move the active box to the vertical position of its final destination
103
- height: options.collapsedHeight // make its height the height of a collapsed box
104
- }, 750 / speed, function() {
105
- $$this.animate({ // move the clicked box out untill it's the same dimensions as the previously active box
106
- left: 0,
107
- right: (options.collapsedWidth + options.collapsedMPB[1] + options.collapsedMPB[3])
108
- }, 500 / speed, function() {
109
- next.animate({ // move the box next to the previously active box (to the right) to the place where the clicked box used to be
110
- top: $$this.css('top')
111
- }, 750 / speed, function() {
112
- $this.children('.active').animate({ // move the previously active box to where the last animated box just was
113
- left: next.position().left,
114
- right: 0
115
- }, 750 / speed, function() {
116
- $$this.children('h3').animate({ // animate the line height of the clicked box to the height of an active box
117
- lineHeight: options.activeLineHeight
118
- }, 750 / speed);
119
- $$this.children('.content').animate({ // and make its content opaque
120
- opacity: 1
121
- }, 750 / speed);
122
- $$this.animate({ // and give it the dimensions of an active box
123
- top: 0,
124
- bottom: 0
125
- }, 750 / speed, function() {
126
- if (!prev) {
127
- $this.children('.active').insertAfter(next); // if the "next" box was the box underneath the now active box, mave its position in the DOM to where it now is visually on the page
128
- }
129
- else if (prev) {
130
- $this.children('.active').insertBefore(next); // same thing but if it was above the now active box
131
- }
132
- $this.children('.active').removeClass('active'); // remove the active class from the box that is no longer active
133
- $$this.addClass('active'); // and add it to the now active box
134
-
135
- $$this.prependTo($$this.parent()); // move the now active box to the top of the switcher DOM tree
136
- $this.removeClass('inprogress'); // and set the switcher to not animating
137
- });
138
- });
139
- });
140
- });
141
- });
142
- }
143
- });
144
- }
145
- else if (options.animationSequence === 'first/last') {
146
- $this.children('div').click(function() {
147
- var $$this = $(this), active = $this.children('.active'), last = !$$this.next().get(0), alreadyCalled = false,
148
- callback = function() {
149
- console.log($this.width() - (options.collapsedWidth + options.collapsedMPB[1] + options.collapsedMPB[3]));
150
- active.css('bottom', 'auto').animate({
151
- right: 0,
152
- left: $this.width() - (options.collapsedWidth + options.collapsedMPB[1] + options.collapsedMPB[3])
153
- }, 750 / speed, function() {
154
- $$this.animate({
155
- top: 0,
156
- bottom: 0
157
- }, 750 / speed).children('h3').animate({
158
- lineHeight: options.activeLineHeight
159
- }, 750 / speed);
160
- $$this.children('.content').animate({
161
- opacity: 1
162
- }, 750 / speed, function() {
163
- if (!last) {
164
- active.appendTo($this).removeClass('active');
165
- }
166
- else {
167
- active.prependTo($this).removeClass('active');
168
- }
169
- $$this.prependTo($this).addClass('active');
170
- $this.removeClass('inprogress');
171
- });
172
- });
173
- };
174
- if (!$$this.hasClass('active') && !$this.hasClass('inprogress')) {
175
- $this.addClass('inprogress');
176
- active.children('h3').animate({
177
- lineHeight: options.collapsedLineHeight
178
- }, 750 / speed);
179
- active.children('.content').animate({
180
- opacity: 0
181
- }, 750 / speed);
182
- active.animate({
183
- top: (!last) ? $this.height() - options.collapsedHeight - options.collapsedMPB[0] - options.collapsedMPB[2] : 0,
184
- bottom: (!last) ? 0 : $this.height() - options.collapsedHeight - options.collapsedMPB[0] - options.collapsedMPB[2]
185
- }, 750 / speed, function() {
186
- active.css({
187
- top: (!last) ? $this.height() - active.height() - options.collapsedMPB[0] - options.collapsedMPB[2] : 0,
188
- height: active.height()
189
- });
190
- $$this.css({
191
- bottom: $this.height() - $$this.position().top - (options.collapsedHeight + options.collapsedMPB[0] + options.collapsedMPB[2]),
192
- height: 'auto'
193
- });
194
- $$this.animate({
195
- left: 0,
196
- right: (options.collapsedWidth + options.collapsedMPB[1] + options.collapsedMPB[3])
197
- }, 500 / speed, function() {
198
- if (!last) {
199
- $$this.nextAll('div').each(function() {
200
- var $$$this = $(this);
201
- $$$this.animate({
202
- top: $$$this.position().top - (options.collapsedHeight + options.collapsedMPB[0] + options.collapsedMPB[2])
203
- }, 750 / speed, function() {
204
- if (!alreadyCalled) {
205
- callback();
206
- }
207
- alreadyCalled = true;
208
- });
209
- });
210
- }
211
- else {
212
- $$this.prevAll('div:not(.active)').each(function() {
213
- var $$$this = $(this);
214
- $$$this.animate({
215
- top: $$$this.position().top + (options.collapsedHeight + options.collapsedMPB[0] + options.collapsedMPB[2])
216
- }, 750 / speed, function() {
217
- if (!alreadyCalled) {
218
- callback();
219
- }
220
- alreadyCalled = true;
221
- });
222
- });
223
- }
224
- });
225
- });
226
- }
227
- });
228
- }
229
- });
230
- }
231
- });
232
- }(jQuery));
233
- })
@@ -1,12 +0,0 @@
1
- /*! Copyright (c) 2011 Brandon Aaron (http://brandonaaron.net)
2
- * Licensed under the MIT License (LICENSE.txt).
3
- *
4
- * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
5
- * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
6
- * Thanks to: Seamus Leahy for adding deltaX and deltaY
7
- *
8
- * Version: 3.0.6
9
- *
10
- * Requires: 1.2.2+
11
- */
12
- (function(a){function d(b){var c=b||window.event,d=[].slice.call(arguments,1),e=0,f=!0,g=0,h=0;return b=a.event.fix(c),b.type="mousewheel",c.wheelDelta&&(e=c.wheelDelta/120),c.detail&&(e=-c.detail/3),h=e,c.axis!==undefined&&c.axis===c.HORIZONTAL_AXIS&&(h=0,g=-1*e),c.wheelDeltaY!==undefined&&(h=c.wheelDeltaY/120),c.wheelDeltaX!==undefined&&(g=-1*c.wheelDeltaX/120),d.unshift(b,e,g,h),(a.event.dispatch||a.event.handle).apply(this,d)}var b=["DOMMouseScroll","mousewheel"];if(a.event.fixHooks)for(var c=b.length;c;)a.event.fixHooks[b[--c]]=a.event.mouseHooks;a.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var a=b.length;a;)this.addEventListener(b[--a],d,!1);else this.onmousewheel=d},teardown:function(){if(this.removeEventListener)for(var a=b.length;a;)this.removeEventListener(b[--a],d,!1);else this.onmousewheel=null}},a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})})(jQuery)
@@ -1,202 +0,0 @@
1
- /*
2
- * jQuery pageSlide
3
- * Version 2.0
4
- * http://srobbin.com/jquery-pageslide/
5
- *
6
- * jQuery Javascript plugin which slides a webpage over to reveal an additional interaction pane.
7
- *
8
- * Copyright (c) 2011 Scott Robbin (srobbin.com)
9
- * Dual licensed under the MIT and GPL licenses.
10
- */
11
-
12
- ;(function($){
13
- // Convenience vars for accessing elements
14
- var $body_ps = $('body'),
15
- $page_slide = $('#pageslide');
16
-
17
- var _sliding_ps = false, // Mutex to assist closing only once
18
- _lastCaller_ps; // Used to keep track of last element to trigger pageslide
19
-
20
- // If the pageslide element doesn't exist, create it
21
- if( $page_slide.length == 0 ) {
22
- $page_slide = $('<div />').attr( 'id', 'pageslide' )
23
- .css( 'display', 'none' )
24
- .appendTo( $('body') );
25
- }
26
-
27
- /*
28
- * Private methods
29
- */
30
- function _load( url, useIframe ) {
31
- // Are we loading an element from the page or a URL?
32
- if ( url.indexOf("#") === 0 ) {
33
- // Load a page element
34
- $(url).clone(true).appendTo( $page_slide.empty() ).show();
35
- } else {
36
- // Load a URL. Into an iframe?
37
- if( useIframe ) {
38
- var iframe = $("<iframe />").attr({
39
- src: url,
40
- frameborder: 0,
41
- hspace: 0
42
- })
43
- .css({
44
- width: "100%",
45
- height: "100%"
46
- });
47
-
48
- $page_slide.html( iframe );
49
- } else {
50
- $page_slide.load( url );
51
- }
52
-
53
- $page_slide.data( 'localEl', false );
54
-
55
- }
56
- }
57
-
58
- // Function that controls opening of the pageslide
59
- function _start( direction, speed ) {
60
- var slideWidth = $page_slide.outerWidth( true ),
61
- bodyAnimateIn = {},
62
- slideAnimateIn = {};
63
-
64
- // If the slide is open or opening, just ignore the call
65
- if( $page_slide.is(':visible') || _sliding_ps ) return;
66
- _sliding_ps = true;
67
-
68
- switch( direction ) {
69
- case 'left':
70
- $page_slide.css({ left: 'auto', right: '-' + slideWidth + 'px' });
71
- bodyAnimateIn['margin-left'] = '-=' + slideWidth;
72
- slideAnimateIn['right'] = '+=' + slideWidth;
73
- break;
74
- default:
75
- $page_slide.css({ left: '-' + slideWidth + 'px', right: 'auto' });
76
- bodyAnimateIn['margin-left'] = '+=' + slideWidth;
77
- slideAnimateIn['left'] = '+=' + slideWidth;
78
- break;
79
- }
80
-
81
- // Animate the slide, and attach this slide's settings to the element
82
- $body_ps.animate(bodyAnimateIn, speed);
83
- $page_slide.show()
84
- .animate(slideAnimateIn, speed, function() {
85
- _sliding_ps = false;
86
- });
87
- }
88
-
89
- /*
90
- * Declaration
91
- */
92
- $.fn.pageslide = function(options) {
93
- var $elements = this;
94
-
95
- // On click
96
- $elements.click( function(e) {
97
- var $self = $(this),
98
- settings = $.extend({ href: $self.attr('href') }, options);
99
-
100
- // Prevent the default behavior and stop propagation
101
- e.preventDefault();
102
- e.stopPropagation();
103
-
104
- if ( $page_slide.is(':visible') && $self[0] == _lastCaller_ps ) {
105
- // If we clicked the same element twice, toggle closed
106
- $.pageslide.close();
107
- } else {
108
- // Open
109
- $.pageslide( settings );
110
-
111
- // Record the last element to trigger pageslide
112
- _lastCaller_ps = $self[0];
113
- }
114
- });
115
- };
116
-
117
- /*
118
- * Default settings
119
- */
120
- $.fn.pageslide.defaults = {
121
- speed: 200, // Accepts standard jQuery effects speeds (i.e. fast, normal or milliseconds)
122
- direction: 'right', // Accepts 'left' or 'right'
123
- modal: false, // If set to true, you must explicitly close pageslide using $.pageslide.close();
124
- iframe: true, // By default, linked pages are loaded into an iframe. Set this to false if you don't want an iframe.
125
- href: null // Override the source of the content. Optional in most cases, but required when opening pageslide programmatically.
126
- };
127
-
128
- /*
129
- * Public methods
130
- */
131
-
132
- // Open the pageslide
133
- $.pageslide = function(options) {
134
- // Extend the settings with those the user has provided
135
- var settings = $.extend({}, $.fn.pageslide.defaults, options);
136
-
137
- // Are we trying to open in different direction?
138
- if ($page_slide.is(':visible') && $page_slide.data('direction') != settings.direction) {
139
- $.pageslide.close(function() {
140
- _load(settings.href, settings.iframe);
141
- _start(settings.direction, settings.speed);
142
- });
143
- } else {
144
- _load(settings.href, settings.iframe);
145
- if ($page_slide.is(':hidden')) {
146
- _start(settings.direction, settings.speed);
147
- }
148
- }
149
-
150
- $page_slide.data(settings);
151
- };
152
-
153
- // Close the pageslide
154
- $.pageslide.close = function(callback) {
155
- var $page_slide = $('#pageslide'),
156
- slideWidth = $page_slide.outerWidth(true),
157
- speed = $page_slide.data('speed'),
158
- bodyAnimateIn = {},
159
- slideAnimateIn = {};
160
-
161
- // If the slide isn't open, just ignore the call
162
- if ($page_slide.is(':hidden') || _sliding_ps) return;
163
- _sliding_ps = true;
164
-
165
- switch ($page_slide.data('direction')) {
166
- case 'left':
167
- bodyAnimateIn['margin-left'] = '+=' + slideWidth;
168
- slideAnimateIn['right'] = '-=' + slideWidth;
169
- break;
170
- default:
171
- bodyAnimateIn['margin-left'] = '-=' + slideWidth;
172
- slideAnimateIn['left'] = '-=' + slideWidth;
173
- break;
174
- }
175
-
176
- $page_slide.animate(slideAnimateIn, speed);
177
- $body_ps.animate(bodyAnimateIn, speed, function() {
178
- $page_slide.hide();
179
- _sliding_ps = false;
180
- if (typeof callback != 'undefined') callback();
181
- });
182
- };
183
-
184
- /* Events */
185
-
186
- // Don't let clicks to the pageslide close the window
187
- $page_slide.click(function(e) {
188
- e.stopPropagation();
189
- });
190
-
191
- // Close the pageslide if the document is clicked or the users presses the ESC key, unless the pageslide is modal
192
- $(document).bind('click keyup', function(e) {
193
- // If this is a keyup event, let's see if it's an ESC key
194
- if( e.type == "keyup" && e.keyCode != 27) return;
195
-
196
- // Make sure it's visible, and we're not modal
197
- if( $page_slide.is( ':visible' ) && !$page_slide.data( 'modal' ) ) {
198
- $.pageslide.close();
199
- }
200
- });
201
-
202
- })(jQuery);
@@ -1,107 +0,0 @@
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
-
5
- html, body {
6
- background-image: url('/assets/background.jpg');
7
- }
8
-
9
- body {
10
- padding-top: 40px; /* 40px to make the container go all the way to the bottom of the topbar */
11
- }
12
-
13
- .container > footer p {
14
- text-align: center; /* center align it with the container */
15
- }
16
-
17
- .container {
18
- width: 940px; /* downsize our container to make the content feel a bit tighter and more cohesive. NOTE: this removes two full columns from the grid, meaning you only go to 14 columns and not 16. */
19
- }
20
-
21
- /* The white background content wrapper */
22
- .content {
23
- background-color: #fff;
24
- padding: 20px;
25
- margin: 0 -20px; /* negative indent the amount of the padding to maintain the grid system */
26
- -webkit-border-radius: 0 0 6px 6px;
27
- -moz-border-radius: 0 0 6px 6px;
28
- border-radius: 0 0 6px 6px;
29
- -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
30
- -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
31
- box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
32
- }
33
-
34
- /* Page header tweaks */
35
- .page-header {
36
- background-color: #000000;
37
- opacity: 0.6;
38
- filter: alpha(opacity = 60); /* For IE8 and earlier */
39
-
40
- padding: 20px 20px 10px;
41
- margin: -20px -20px 20px;
42
-
43
- }
44
-
45
- .page-header h1 {
46
- color: white;
47
- }
48
-
49
- /* Styles you shouldn't keep as they are for displaying this base example only */
50
- .content .span10,
51
- .content .span4 {
52
- min-height: 350px;
53
- }
54
-
55
- /* Give a quick and non-cross-browser friendly divider */
56
- .content .span6 {
57
- margin-left: 0;
58
- padding-left: 19px;
59
- border-left: 1px solid #eee;
60
- }
61
-
62
- .topbar .btn {
63
- border: 0;
64
- }
65
-
66
- th {
67
- border: none;
68
- }
69
-
70
- a:link {
71
- color: #556b2f;
72
- }
73
-
74
- a:visited {
75
- color: #556b2f;
76
- }
77
-
78
- a:hover {
79
- text-shadow: none;
80
- background: none;
81
- text-decoration: none;
82
- color: #000000;
83
- font-weight:bold;
84
- }
85
-
86
- .nav a:hover {
87
- background: black;
88
- text-decoration: none;
89
- color: white;
90
- }
91
-
92
- .nav_link a:hover {
93
- text-decoration: underline;
94
- color: white;
95
- }
96
-
97
- .activate_pageslide {
98
-
99
- }
100
-
101
- td {
102
- border:none;
103
- }
104
-
105
- tr {
106
- border:none;
107
- }
@@ -1,77 +0,0 @@
1
- .switcher {
2
- /* this can be whatever selector you want */
3
- width: 910px; /* the full width of the switcher */
4
- position: relative; /* important */
5
- font-family: Georgia;
6
- margin: 0 auto;
7
- }
8
-
9
- .switcher > div {
10
- height: 60px; /* the height of the boxes when collapsed */
11
- position: absolute;
12
- left: 660px; /* the width of the switcher minus the outer width of the collapsed boxes (including margin, padding and border) */
13
- right: 0; /* important */
14
- margin: 4px; /* the margin between collapsed boxes */
15
- padding: 5px; /* the padding for the collapsed boxes */
16
- border: 1px solid #C2C2C2; /* the border for collapsed boxes */
17
- overflow: hidden; /* important */
18
- cursor: pointer;
19
-
20
- border-radius: 10px;
21
- background: #a4b357; /* Old browsers */
22
- background: -moz-linear-gradient(top, #a4b357 0%, #75890c 100%); /* FF3.6+ */
23
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #a4b357), color-stop(100%, #75890c)); /* Chrome,Safari4+ */
24
- background: -webkit-linear-gradient(top, #a4b357 0%, #75890c 100%); /* Chrome10+,Safari5.1+ */
25
- background: -o-linear-gradient(top, #a4b357 0%, #75890c 100%); /* Opera 11.10+ */
26
- background: -ms-linear-gradient(top, #a4b357 0%, #75890c 100%); /* IE10+ */
27
- background: linear-gradient(top, #a4b357 0%, #75890c 100%); /* W3C */
28
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '#a4b357', endColorstr = '#75890c', GradientType = 0); /* IE6-9 */
29
-
30
- }
31
-
32
- .switcher > div .content {
33
- opacity: 0; /* impotant */
34
- }
35
-
36
- .switcher > div > h3 {
37
- text-align: center;
38
- line-height: 60px; /* used to vertically center the text in collapsed boxes, should be the height of the collapsed boxes */
39
- font-size: 18px;
40
- font-family: Helvetica;
41
- color:white;
42
- }
43
-
44
- .switcher .active {
45
- height: auto; /* important */
46
- width: auto; /* important */
47
- top: 0; /* important */
48
- left: 0; /* important */
49
- bottom: 0; /* important */
50
- right: 250px; /* the outer width of the collapsed boxes */
51
- cursor: default;
52
-
53
- background: #fefcea; /* Old browsers */
54
- background: -moz-radial-gradient(center, ellipse cover, #fefcea 0%, #f1da36 100%); /* FF3.6+ */
55
- background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%,#fefcea), color-stop(100%,#f1da36)); /* Chrome,Safari4+ */
56
- background: -webkit-radial-gradient(center, ellipse cover, #fefcea 0%,#f1da36 100%); /* Chrome10+,Safari5.1+ */
57
- background: -o-radial-gradient(center, ellipse cover, #fefcea 0%,#f1da36 100%); /* Opera 12+ */
58
- background: -ms-radial-gradient(center, ellipse cover, #fefcea 0%,#f1da36 100%); /* IE10+ */
59
- background: radial-gradient(center, ellipse cover, #fefcea 0%,#f1da36 100%); /* W3C */
60
- filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fefcea', endColorstr='#f1da36',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
61
-
62
- }
63
-
64
- .switcher .active .content {
65
- opacity: 1; /* important */
66
- }
67
-
68
- .switcher .active > h3 {
69
- line-height: 48px; /* the line height of the box heading when active */
70
- color:black;
71
- }
72
-
73
- p {
74
- line-height: 22px;
75
- font-size: 14px;
76
- padding: 5px;
77
- }
@@ -1,3 +0,0 @@
1
- // Place all the styles related to the information_page controller here.
2
- // They will automatically be included in application.css.
3
- // You can use Sass (SCSS) here: http://sass-lang.com/
@@ -1,513 +0,0 @@
1
- /*
2
- * File: demo_table_jui.css
3
- * CVS: $Id$
4
- * Description: CSS descriptions for DataTables demo pages
5
- * Author: Allan Jardine
6
- * Created: Tue May 12 06:47:22 BST 2009
7
- * Modified: $Date$ by $Author$
8
- * Language: CSS
9
- * Project: DataTables
10
- *
11
- * Copyright 2009 Allan Jardine. All Rights Reserved.
12
- *
13
- * ***************************************************************************
14
- * DESCRIPTION
15
- *
16
- * The styles given here are suitable for the demos that are used with the standard DataTables
17
- * distribution (see www.datatables.net). You will most likely wish to modify these styles to
18
- * meet the layout requirements of your site.
19
- *
20
- * Common issues:
21
- * 'full_numbers' pagination - I use an extra selector on the body tag to ensure that there is
22
- * no conflict between the two pagination types. If you want to use full_numbers pagination
23
- * ensure that you either have "example_alt_pagination" as a body class name, or better yet,
24
- * modify that selector.
25
- * Note that the path used for Images is relative. All images are by default located in
26
- * ../images/ - relative to this CSS file.
27
- */
28
-
29
- /*
30
- * Additional styling
31
- */
32
-
33
- input, textarea, select, .uneditable-input, label {
34
- width: auto;
35
- float: none;
36
- }
37
-
38
-
39
- /*
40
- * jQuery UI specific styling
41
- */
42
-
43
- .paging_two_button .ui-button {
44
- float: left;
45
- cursor: pointer;
46
- *cursor: hand;
47
- }
48
-
49
- .paging_full_numbers .ui-button {
50
- padding: 2px 6px;
51
- margin: 0;
52
- cursor: pointer;
53
- *cursor: hand;
54
- }
55
-
56
- .dataTables_paginate .ui-button {
57
- margin-right: -0.1em !important;
58
- }
59
-
60
- .paging_full_numbers {
61
- width: 300px !important;
62
- }
63
-
64
- .dataTables_wrapper .ui-toolbar {
65
- padding: 5px;
66
- }
67
-
68
- .dataTables_paginate {
69
- width: auto;
70
- }
71
-
72
- .dataTables_info {
73
- padding-top: 3px;
74
- }
75
-
76
- table.display thead th {
77
- padding: 3px 0px 3px 10px;
78
- cursor: pointer;
79
- *cursor: hand;
80
- }
81
-
82
- div.dataTables_wrapper .ui-widget-header {
83
- font-weight: normal;
84
- }
85
-
86
- /*
87
- * Sort arrow icon positioning
88
- */
89
- table.display thead th div.DataTables_sort_wrapper {
90
- position: relative;
91
- padding-right: 20px;
92
- padding-right: 20px;
93
- }
94
-
95
- table.display thead th div.DataTables_sort_wrapper span {
96
- position: absolute;
97
- top: 50%;
98
- margin-top: -8px;
99
- right: 0;
100
- }
101
-
102
- /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
103
- *
104
- * Everything below this line is the same as demo_table.css. This file is
105
- * required for 'cleanliness' of the markup
106
- *
107
- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
108
-
109
- /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
110
- * DataTables features
111
- */
112
-
113
- .dataTables_wrapper {
114
- position: relative;
115
- min-height: 302px;
116
- _height: 302px;
117
- clear: both;
118
- }
119
-
120
- .dataTables_processing {
121
- position: absolute;
122
- top: 0px;
123
- left: 50%;
124
- width: 250px;
125
- margin-left: -125px;
126
- border: 1px solid #ddd;
127
- text-align: center;
128
- color: #999;
129
- font-size: 11px;
130
- padding: 2px 0;
131
- }
132
-
133
- .dataTables_length {
134
- width: 40%;
135
- float: left;
136
- }
137
-
138
- .dataTables_filter {
139
- width: 50%;
140
- float: right;
141
- text-align: right;
142
- }
143
-
144
- .dataTables_info {
145
- width: 50%;
146
- float: left;
147
- }
148
-
149
- .dataTables_paginate {
150
- float: right;
151
- text-align: right;
152
- }
153
-
154
- /* Pagination nested */
155
- .paginate_disabled_previous, .paginate_enabled_previous, .paginate_disabled_next, .paginate_enabled_next {
156
- height: 19px;
157
- width: 19px;
158
- margin-left: 3px;
159
- float: left;
160
- }
161
-
162
- .paginate_disabled_previous {
163
- background-image: url('../images/back_disabled.jpg');
164
- }
165
-
166
- .paginate_enabled_previous {
167
- background-image: url('../images/back_enabled.jpg');
168
- }
169
-
170
- .paginate_disabled_next {
171
- background-image: url('../images/forward_disabled.jpg');
172
- }
173
-
174
- .paginate_enabled_next {
175
- background-image: url('../images/forward_enabled.jpg');
176
- }
177
-
178
- /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
179
- * DataTables display
180
- */
181
- table.display {
182
- margin: 0 auto;
183
- width: 100%;
184
- clear: both;
185
- border-collapse: collapse;
186
- }
187
-
188
- table.display tfoot th {
189
- padding: 3px 0px 3px 10px;
190
- font-weight: bold;
191
- font-weight: normal;
192
- }
193
-
194
- table.display tr.heading2 td {
195
- border-bottom: 1px solid #aaa;
196
- }
197
-
198
- table.display td {
199
- padding: 3px 10px;
200
- }
201
-
202
- table.display td.center {
203
- text-align: center;
204
- }
205
-
206
- /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
207
- * DataTables sorting
208
- */
209
-
210
- .sorting_asc {
211
- background: url('../images/sort_asc.png') no-repeat center right;
212
- }
213
-
214
- .sorting_desc {
215
- background: url('../images/sort_desc.png') no-repeat center right;
216
- }
217
-
218
- .sorting {
219
- background: url('../images/sort_both.png') no-repeat center right;
220
- }
221
-
222
- .sorting_asc_disabled {
223
- background: url('../images/sort_asc_disabled.png') no-repeat center right;
224
- }
225
-
226
- .sorting_desc_disabled {
227
- background: url('../images/sort_desc_disabled.png') no-repeat center right;
228
- }
229
-
230
- /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
231
- * DataTables row classes
232
- */
233
- table.display tr.odd.ptotem {
234
- background-color: #ddffdd;
235
- }
236
-
237
- table.display tr.even.ptotem {
238
- background-color: #eeffee;
239
- }
240
-
241
- table.display tr.odd.gradeA {
242
- background-color: #ddffdd;
243
- }
244
-
245
- table.display tr.even.gradeA {
246
- background-color: #eeffee;
247
- }
248
-
249
- table.display tr.odd.gradeA {
250
- background-color: #ddffdd;
251
- }
252
-
253
- table.display tr.even.gradeA {
254
- background-color: #eeffee;
255
- }
256
-
257
- table.display tr.odd.gradeC {
258
- background-color: #ddddff;
259
- }
260
-
261
- table.display tr.even.gradeC {
262
- background-color: #eeeeff;
263
- }
264
-
265
- table.display tr.odd.gradeX {
266
- background-color: #ffdddd;
267
- }
268
-
269
- table.display tr.even.gradeX {
270
- background-color: #ffeeee;
271
- }
272
-
273
- table.display tr.odd.gradeU {
274
- background-color: #ddd;
275
- }
276
-
277
- table.display tr.even.gradeU {
278
- background-color: #eee;
279
- }
280
-
281
- tr.odd {
282
- background-color: #c4c4c4;
283
- }
284
-
285
- tr.even {
286
- background-color: white;
287
- }
288
-
289
- /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
290
- * Misc
291
- */
292
- .dataTables_scroll {
293
- clear: both;
294
- }
295
-
296
- .top, .bottom {
297
- padding: 15px;
298
- background-color: #F5F5F5;
299
- border: 1px solid #CCCCCC;
300
- }
301
-
302
- .top .dataTables_info {
303
- float: none;
304
- }
305
-
306
- .clear {
307
- clear: both;
308
- }
309
-
310
- .dataTables_empty {
311
- text-align: center;
312
- }
313
-
314
- tfoot input {
315
- margin: 0.5em 0;
316
- width: 100%;
317
- color: #444;
318
- }
319
-
320
- tfoot input.search_init {
321
- color: #999;
322
- }
323
-
324
- td.group {
325
- background-color: #d1cfd0;
326
- border-bottom: 2px solid #A19B9E;
327
- border-top: 2px solid #A19B9E;
328
- }
329
-
330
- td.details {
331
- background-color: #d1cfd0;
332
- border: 2px solid #A19B9E;
333
- }
334
-
335
- .example_alt_pagination div.dataTables_info {
336
- width: 40%;
337
- }
338
-
339
- .paging_full_numbers span.paginate_button,
340
- .paging_full_numbers span.paginate_active {
341
- border: 1px solid #aaa;
342
- -webkit-border-radius: 5px;
343
- -moz-border-radius: 5px;
344
- padding: 2px 5px;
345
- margin: 0 3px;
346
- cursor: pointer;
347
- *cursor: hand;
348
- }
349
-
350
- .paging_full_numbers span.paginate_button {
351
- background-color: #ddd;
352
- }
353
-
354
- .paging_full_numbers span.paginate_button:hover {
355
- background-color: #ccc;
356
- }
357
-
358
- .paging_full_numbers span.paginate_active {
359
- background-color: #99B3FF;
360
- }
361
-
362
- table.display tr.even.row_selected td {
363
- background-color: #B0BED9;
364
- }
365
-
366
- table.display tr.odd.row_selected td {
367
- background-color: #9FAFD1;
368
- }
369
-
370
- /*
371
- * Sorting classes for columns
372
- */
373
- /* For the standard odd/even */
374
- tr.odd td.sorting_1 {
375
- background-color: #D3D6FF;
376
- }
377
-
378
- tr.odd td.sorting_2 {
379
- background-color: #DADCFF;
380
- }
381
-
382
- tr.odd td.sorting_3 {
383
- background-color: #E0E2FF;
384
- }
385
-
386
- tr.even td.sorting_1 {
387
- background-color: #EAEBFF;
388
- }
389
-
390
- tr.even td.sorting_2 {
391
- background-color: #F2F3FF;
392
- }
393
-
394
- tr.even td.sorting_3 {
395
- background-color: #F9F9FF;
396
- }
397
-
398
- /* For the Conditional-CSS grading rows */
399
- /*
400
- Colour calculations (based off the main row colours)
401
- Level 1:
402
- dd > c4
403
- ee > d5
404
- Level 2:
405
- dd > d1
406
- ee > e2
407
- */
408
- tr.odd.gradeA td.sorting_1 {
409
- background-color: #c4ffc4;
410
- }
411
-
412
- tr.odd.gradeA td.sorting_2 {
413
- background-color: #d1ffd1;
414
- }
415
-
416
- tr.odd.gradeA td.sorting_3 {
417
- background-color: #d1ffd1;
418
- }
419
-
420
- tr.even.gradeA td.sorting_1 {
421
- background-color: #d5ffd5;
422
- }
423
-
424
- tr.even.gradeA td.sorting_2 {
425
- background-color: #e2ffe2;
426
- }
427
-
428
- tr.even.gradeA td.sorting_3 {
429
- background-color: #e2ffe2;
430
- }
431
-
432
- tr.odd.gradeC td.sorting_1 {
433
- background-color: #c4c4ff;
434
- }
435
-
436
- tr.odd.gradeC td.sorting_2 {
437
- background-color: #d1d1ff;
438
- }
439
-
440
- tr.odd.gradeC td.sorting_3 {
441
- background-color: #d1d1ff;
442
- }
443
-
444
- tr.even.gradeC td.sorting_1 {
445
- background-color: #d5d5ff;
446
- }
447
-
448
- tr.even.gradeC td.sorting_2 {
449
- background-color: #e2e2ff;
450
- }
451
-
452
- tr.even.gradeC td.sorting_3 {
453
- background-color: #e2e2ff;
454
- }
455
-
456
- tr.odd.gradeX td.sorting_1 {
457
- background-color: #ffc4c4;
458
- }
459
-
460
- tr.odd.gradeX td.sorting_2 {
461
- background-color: #ffd1d1;
462
- }
463
-
464
- tr.odd.gradeX td.sorting_3 {
465
- background-color: #ffd1d1;
466
- }
467
-
468
- tr.even.gradeX td.sorting_1 {
469
- background-color: #ffd5d5;
470
- }
471
-
472
- tr.even.gradeX td.sorting_2 {
473
- background-color: #ffe2e2;
474
- }
475
-
476
- tr.even.gradeX td.sorting_3 {
477
- background-color: #ffe2e2;
478
- }
479
-
480
- tr.odd.gradeU td.sorting_1 {
481
- background-color: #c4c4c4;
482
- }
483
-
484
- tr.odd.gradeU td.sorting_2 {
485
- background-color: #d1d1d1;
486
- }
487
-
488
- tr.odd.gradeU td.sorting_3 {
489
- background-color: #d1d1d1;
490
- }
491
-
492
- tr.even.gradeU td.sorting_1 {
493
- background-color: #d5d5d5;
494
- }
495
-
496
- tr.even.gradeU td.sorting_2 {
497
- background-color: #e2e2e2;
498
- }
499
-
500
- tr.even.gradeU td.sorting_3 {
501
- background-color: #e2e2e2;
502
- }
503
-
504
- /*
505
- * Row highlighting example
506
- */
507
- .ex_highlight #example tbody tr.even:hover, #example tbody tr.even td.highlighted {
508
- background-color: #ECFFB3;
509
- }
510
-
511
- .ex_highlight #example tbody tr.odd:hover, #example tbody tr.odd td.highlighted {
512
- background-color: #E6FF99;
513
- }