Skip to content
This repository has been archived by the owner on Oct 12, 2018. It is now read-only.

Commit

Permalink
Merge commit '1c4bc52b97dd546c4820313d780f238eb7a0e890' into HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins committed May 10, 2012
2 parents 7205e17 + 1c4bc52 commit 56b030b
Show file tree
Hide file tree
Showing 47 changed files with 2,621 additions and 174 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -4,3 +4,4 @@ db/*.sqlite3
log/*.log
tmp/
.sass-cache/
.DS_Store
10 changes: 5 additions & 5 deletions Gemfile
Expand Up @@ -8,7 +8,8 @@ end
gem 'gds-warmup-controller'

gem 'plek', '~> 0'
gem 'formtastic'
gem 'formtastic', git: 'git://github.com/justinfrench/formtastic.git', branch: '2.1-stable'
gem 'formtastic-bootstrap', git: 'git://github.com/cgunther/formtastic-bootstrap.git', branch: 'bootstrap-2'
gem 'stomp'
gem 'marples', '~> 1.0'
gem 'daemonette', :git => 'git@github.com:alphagov/daemonette.git'
Expand Down Expand Up @@ -37,10 +38,9 @@ else
gem 'gds-sso', '~> 0.5'
end

if ENV['SLIMMER_DEV']
gem 'slimmer', :path => '../slimmer'
else
gem 'slimmer', '~> 1.1', ">= 1.1.16"
group :assets do
gem "therubyracer", "~> 0.9.4"
gem 'uglifier'
end

group :test do
Expand Down
39 changes: 29 additions & 10 deletions Gemfile.lock
@@ -1,3 +1,20 @@
GIT
remote: git://github.com/cgunther/formtastic-bootstrap.git
revision: 3428fef4f7870b01241d65893b882ad32cfc18d8
branch: bootstrap-2
specs:
formtastic-bootstrap (1.2.0)
formtastic
rails (>= 3.1.0)

GIT
remote: git://github.com/justinfrench/formtastic.git
revision: 7b7428fa4a6a44aea1e8278523f4f45f2570a33d
branch: 2.1-stable
specs:
formtastic (2.1.1)
actionpack (~> 3.0)

GIT
remote: git@github.com:alphagov/daemonette.git
revision: 8179408a2db8f2e882965a2b95ddfc4cdf5230f3
Expand Down Expand Up @@ -79,6 +96,8 @@ GEM
erubis (2.7.0)
exception_notification (2.5.2)
actionmailer (>= 3.0.4)
execjs (1.2.13)
multi_json (~> 1.0)
factory_girl (2.4.0)
activesupport
factory_girl_rails (1.5.0)
Expand All @@ -90,8 +109,6 @@ GEM
multipart-post (~> 1.1)
rack (~> 1.1)
ffi (1.0.11)
formtastic (2.2.0)
actionpack (>= 3.0)
gds-api-adapters (0.0.40)
lrucache (~> 0.1.1)
null_logger
Expand All @@ -115,6 +132,7 @@ GEM
json (1.6.6)
launchy (2.0.5)
addressable (~> 2.2.6)
libv8 (3.3.10.4)
lrucache (0.1.1)
PriorityQueue (~> 0.1.2)
mail (2.3.3)
Expand Down Expand Up @@ -204,12 +222,6 @@ GEM
simplecov-html (0.4.5)
simplecov-rcov (0.2.3)
simplecov (>= 0.4.1)
slimmer (1.1.27)
json
nokogiri (~> 1.5.0)
null_logger
plek (>= 0.1.8)
rack (~> 1.3.5)
sprockets (2.0.3)
hike (~> 1.2)
rack (~> 1.0)
Expand All @@ -220,6 +232,8 @@ GEM
stomp (1.2.0)
term-ansicolor (1.0.7)
test-unit (2.4.5)
therubyracer (0.9.10)
libv8 (~> 3.3.10)
thor (0.14.6)
tilt (1.3.3)
treetop (1.4.10)
Expand All @@ -228,6 +242,9 @@ GEM
turn (0.8.3)
ansi
tzinfo (0.3.33)
uglifier (1.2.2)
execjs (>= 0.3.0)
multi_json (>= 1.0.2)
warden (1.0.6)
rack (>= 1.0)
webrobots (0.0.12)
Expand Down Expand Up @@ -257,7 +274,8 @@ DEPENDENCIES
factory_girl
factory_girl_rails
fakeweb
formtastic
formtastic!
formtastic-bootstrap!
gds-api-adapters (~> 0.0.15)
gds-sso (~> 0.5)
gds-warmup-controller
Expand All @@ -277,9 +295,10 @@ DEPENDENCIES
shoulda (~> 2.11.3)
simplecov (= 0.4.2)
simplecov-rcov
slimmer (~> 1.1, >= 1.1.16)
sqlite3-ruby
stomp
test-unit
therubyracer (~> 0.9.4)
turn
uglifier
whenever
Binary file added app/assets/images/asc.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/bg.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/chosen-sprite.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/desc.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/glyphicons-halflings-white.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/glyphicons-halflings.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/header-crown.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/icon-answer.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/icon-custom-application.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/icon-guide.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/icon-local_transaction.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/icon-place.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/icon-programme.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/icon-service.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/icon-transaction.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions app/assets/javascripts/artefacts.js
@@ -0,0 +1,29 @@
$(function() {
var blankByDefault = ($("#artefact_slug").attr('value') != '');
var generateSlug = function generateSlug() {
if(blankByDefault) { return }
var title = $("#artefact_name").val();
var slug = title.toLowerCase()
.replace(/[^\w ]+/g, '')
.replace(/ +/g, '-')
.replace(/^-+|-+$/, '')
$("#artefact_slug").val(slug);
}
$("#artefact_name").change(generateSlug)
$("#artefact_name").bind('keyup', generateSlug)

$('a[rel=external]').attr('target','_blank');

// $('.related select').chosen({
// allow_single_deselect: true,
// no_results_text: "No results matched"
// });

$('select#artefact_section').chosen({
allow_single_deselect: true,
no_results_text: "Section not found"
});

$('.flash-notice').delay(4000).slideUp(300).
one('click', function () { $(this).slideUp(300); });
});

0 comments on commit 56b030b

Please sign in to comment.