Skip to content

Commit 94b50c5

Browse files
committed
Merge branch 'develop'
2 parents 6693f4c + 18c3f42 commit 94b50c5

File tree

83 files changed

+2040
-142
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+2040
-142
lines changed

.cloud66/deploy_hooks.yml

Lines changed: 35 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,50 @@ default: &default
77
sudo: true
88
target: any
99
execute: true
10+
11+
development:
12+
<<: *default
1013
after_rails:
11-
- source: /.cloud66/scripts/rake_task.sh
12-
destination: /tmp/rake_task.sh
14+
- source: /.cloud66/scripts/reseed_custom_content.sh
15+
destination: /tmp/reseed_custom_content.sh
16+
target: rails
17+
execute: true
18+
run_on: single_server
19+
apply_during: all
20+
sudo: false
21+
- source: /.cloud66/scripts/rebuild_indexes.sh
22+
destination: /tmp/rebuild_indexes.sh
1323
target: rails
1424
execute: true
1525
run_on: single_server
1626
apply_during: all
1727
sudo: false
18-
19-
development:
20-
<<: *default
2128

2229
staging:
2330
<<: *default
31+
after_rails:
32+
- source: /.cloud66/scripts/reseed_custom_content.sh
33+
destination: /tmp/reseed_custom_content.sh
34+
target: rails
35+
execute: true
36+
run_on: single_server
37+
apply_during: all
38+
sudo: false
39+
- source: /.cloud66/scripts/rebuild_indexes.sh
40+
destination: /tmp/rebuild_indexes.sh
41+
target: rails
42+
execute: true
43+
run_on: single_server
44+
apply_during: all
45+
sudo: false
2446

2547
production:
2648
<<: *default
49+
after_rails:
50+
- source: /.cloud66/scripts/rebuild_indexes.sh
51+
destination: /tmp/rebuild_indexes.sh
52+
target: rails
53+
execute: true
54+
run_on: single_server
55+
apply_during: all
56+
sudo: false
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
#!/bin/bash
22
cd $STACK_PATH
33
bundle exec rake cortex:rebuild_indexes
4-
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
cd $STACK_PATH
3+
bundle exec rake cortex:custom_content_core:db:reseed

Gemfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ gem 'pg', '~> 0.18.4'
4242
gem 'hashie-forbidden_attributes', '~> 0.1.1'
4343
gem 'ranked-model', '~> 0.4.0'
4444
gem 'redis-rails', '~> 4.0'
45+
gem 'pomona', '~> 0.6.0'
4546

4647
# Middleware
4748
gem 'rack-cors', '~> 0.4.0', require: 'rack/cors'
@@ -75,11 +76,13 @@ gem 'uglifier', '~> 2.7.2'
7576

7677
# View
7778
gem 'haml', '~> 4.1.0.beta'
79+
gem 'cells', git: 'git://github.com/samstickland/cells', branch: 'collection_fix' # remove explicit 'cells' dependency when collection_fix is merged in. See: https://github.com/apotonick/cells/pull/415
7880
gem 'cells-rails', '~> 0.0.6'
7981
gem 'cells-haml', '~> 0.0.10'
8082
gem 'breadcrumbs_on_rails', '~> 2.3.1'
8183
gem 'wice_grid', '~> 3.6.2'
8284
gem 'jquery-ui-rails', '~> 5.0.5'
85+
gem 'bootstrap-tagsinput-rails', '~> 0.4.2'
8386

8487
# Style
8588
gem 'sass-rails', '~> 5.0'

Gemfile.lock

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ GIT
77
execjs
88
rails (>= 3.1)
99

10+
GIT
11+
remote: git://github.com/samstickland/cells
12+
revision: e5634e25b472d41913030eb82463b015f429f2ca
13+
branch: collection_fix
14+
specs:
15+
cells (4.1.1)
16+
tilt (>= 1.4, < 3)
17+
uber (>= 0.0.9)
18+
1019
GIT
1120
remote: git://github.com/toastercup/grape-kaminari
1221
revision: 8d3f48e04c35cd6b85d4707a5b7f7356d305bf8c
@@ -87,6 +96,8 @@ GEM
8796
rack (>= 0.9.0)
8897
binding_of_caller (0.7.2)
8998
debug_inspector (>= 0.0.1)
99+
bootstrap-tagsinput-rails (0.4.2.1)
100+
railties (>= 3.1)
90101
bourbon (5.0.0.beta.5)
91102
sass (~> 3.4)
92103
thor (~> 0.19)
@@ -101,9 +112,6 @@ GEM
101112
rack (>= 1.0.0)
102113
rack-test (>= 0.5.4)
103114
xpath (~> 2.0)
104-
cells (4.1.1)
105-
tilt (>= 1.4, < 3)
106-
uber (>= 0.0.9)
107115
cells-haml (0.0.10)
108116
cells (>= 4.0.1, <= 6.0.0)
109117
haml (>= 4.1.0.beta.1)
@@ -503,6 +511,7 @@ GEM
503511
cliver (~> 0.3.1)
504512
multi_json (~> 1.0)
505513
websocket-driver (>= 0.2.0)
514+
pomona (0.6.0)
506515
progress (3.1.1)
507516
pry (0.10.3)
508517
coderay (~> 1.1.0)
@@ -719,11 +728,13 @@ DEPENDENCIES
719728
bcrypt (~> 3.1.11)
720729
better_errors
721730
binding_of_caller
731+
bootstrap-tagsinput-rails (~> 0.4.2)
722732
bourbon (~> 5.0.0.beta.5)
723733
bower-rails (~> 0.10.0)
724734
breadcrumbs_on_rails (~> 2.3.1)
725735
byebug
726736
capybara
737+
cells!
727738
cells-haml (~> 0.0.10)
728739
cells-rails (~> 0.0.6)
729740
codeclimate-test-reporter (~> 0.4.8)
@@ -775,6 +786,7 @@ DEPENDENCIES
775786
pg (~> 0.18.4)
776787
phantomjs (~> 1.9.8)
777788
poltergeist
789+
pomona (~> 0.6.0)
778790
pry-doc
779791
pry-nav
780792
pry-rails

app/assets/javascripts/application.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
//= require material
77
//= require wice_grid
88
//= require jquery-ui/datepicker
9+
//= require bootstrap-tagsinput
910

1011
//= require base
12+
//= require forms
1113

1214
//= require turbolinks

app/assets/javascripts/forms.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
$(function() {
2+
$(".datepicker").datepicker({
3+
dateFormat: "dd/mm/yy"
4+
});
5+
6+
$(".datepicker").on("click", function(ev){
7+
if ($(this).val() == "") {
8+
$(this).closest('div').addClass('is-dirty');
9+
}
10+
})
11+
});

app/assets/stylesheets/application.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55
@import "font-awesome-sprockets"; // TODO: Remove once we style Wice with Material Design
66
@import "font-awesome"; // TODO: Remove once we style Wice with Material Design
77
@import 'jquery-ui/datepicker'; // TODO: Remove once we style Wice with Material Design
8+
@import 'bootstrap-tagsinput.scss'; // TODO: Remove once we find a permanent library for tags
89

910
@import 'base';
11+
@import 'helpers';
12+
13+
@import 'components/card';
14+
@import 'components/form';
15+
@import 'components/header';
16+
1017
@import 'demo';
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// Overrides
2+
3+
.mdl-card {
4+
width: auto;
5+
border-radius: 3px;
6+
overflow: visible;
7+
z-index: auto;
8+
}
9+
10+
// Extras
11+
12+
// Dirty trick to only style first instance of a class
13+
// See: http://stackoverflow.com/a/8539107
14+
form > .mdl-grid {
15+
.card-holder {
16+
margin-top: -81px;
17+
18+
@media (max-width: $screen-md-min) {
19+
margin-top:0px;
20+
}
21+
}
22+
}
23+
form > .mdl-grid ~ .mdl-grid {
24+
.card-holder {
25+
margin-top: 0;
26+
}
27+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// Overrides
2+
3+
.mdl-textfield {
4+
width: auto;
5+
display: block;
6+
}
7+
8+
form {
9+
.mdl-button {
10+
float: right;
11+
}
12+
}
13+
14+
div.bootstrap-tagsinput input {
15+
width: 100% !important;
16+
}
17+
18+
.ui-datepicker {
19+
background-color: #FEFEFE;
20+
border-radius: 3px;
21+
padding: 5px;
22+
padding-right: 10px;
23+
box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.25);
24+
}
25+
26+
// Extras

0 commit comments

Comments
 (0)