diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-11-29 15:23:50 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-11-29 15:23:50 +0000 |
commit | 4e1ab212c1286730963c72cd11cf87dddd3b3cab (patch) | |
tree | b8effcec64bda8caa329c1408677d8aa947eba4e | |
parent | 7980e02c11bbb049d213c9ff9caa36f4edb82d54 (diff) | |
parent | 0d2a72017779ba0cd7c7d40e0fa32713129333c5 (diff) |
Merge branch 'switch-to-asset-pipeline' into develop
-rw-r--r-- | assets/images/alaveteli-logo.png (renamed from public/images/logo.png) | bin | 1606 -> 1606 bytes | |||
-rw-r--r-- | assets/images/home-grad.png (renamed from public/images/home-grad.png) | bin | 306 -> 306 bytes | |||
-rw-r--r-- | assets/images/quote-marks.png (renamed from public/images/quote-marks.png) | bin | 470 -> 470 bytes | |||
-rw-r--r-- | assets/stylesheets/custom.scss (renamed from public/stylesheets/custom.css) | 24 | ||||
-rw-r--r-- | lib/alavetelitheme.rb | 9 | ||||
-rw-r--r-- | lib/views/general/_before_head_end.html.erb | 2 | ||||
-rw-r--r-- | lib/views/general/_orglink.html.erb | 2 |
7 files changed, 23 insertions, 14 deletions
diff --git a/public/images/logo.png b/assets/images/alaveteli-logo.png Binary files differindex 8b88458..8b88458 100644 --- a/public/images/logo.png +++ b/assets/images/alaveteli-logo.png diff --git a/public/images/home-grad.png b/assets/images/home-grad.png Binary files differindex ff9887a..ff9887a 100644 --- a/public/images/home-grad.png +++ b/assets/images/home-grad.png diff --git a/public/images/quote-marks.png b/assets/images/quote-marks.png Binary files differindex 752b7d4..752b7d4 100644 --- a/public/images/quote-marks.png +++ b/assets/images/quote-marks.png diff --git a/public/stylesheets/custom.css b/assets/stylesheets/custom.scss index ec8bdda..6ca983e 100644 --- a/public/stylesheets/custom.css +++ b/assets/stylesheets/custom.scss @@ -7,7 +7,7 @@ font-family:Arial, sans-serif; background-repeat:no-repeat; background-position:center top; background-color:#F0F0F0; -background:url(/images/stripes.png); +background:image-url('stripes.png'); } #topnav { @@ -82,7 +82,7 @@ font-weight:400; } .request_listing span.desc { -background:url(/images/quote-marks.png) no-repeat; +background:image-url('quote-marks.png') no-repeat; color:#444; } @@ -104,14 +104,14 @@ color:#93278F; #stepwise_make_request { background-color:#d0d0d0; -background:url(/images/stripes.png); +background:image-url('stripes.png'); border:1px solid #DEBEDD; font-family:'DeliciousRoman', Arial, sans-serif; color:#6B3C6A; } div.comment_in_request { -background:url(/images/stripes-70-light2.png); +background:image-url('stripes-70-light2.png'); border-color:#5F5F5F; border-style:dotted; border-width:1px; @@ -131,7 +131,7 @@ font-family:'DeliciousRoman', Arial, sans-serif; } div.frontpage-box { -background:url(/images/stripes.png); +background:image-url('stripes.png'); border:1px solid #DEBEDD; font-family:'DeliciousRoman', Arial, sans-serif; color:#6B3C6A; @@ -139,15 +139,15 @@ color:#6B3C6A; div.correspondence,div.comment_in_request { -background:url(/images/stripes-70.png); +background:image-url('stripes-70.png'); } div.outgoing.correspondence { -background:url(/images/stripes-70-light.png); +background:image-url('stripes-70-light.png'); } #frontpage_splash { -background:url(/images/flying-computer.png) no-repeat 175px bottom; +background:image-url('flying-computer.png') no-repeat 175px bottom; } #frontpage_splash h1 { @@ -262,13 +262,13 @@ color:#93278F; body.front { -background:url(../images/home-grad.png) repeat-x 0 160px; +background:image-url('home-grad.png') repeat-x 0 160px; } .request_listing span.desc { -background:url(../images/quote-marks.png) no-repeat; +background:image-url('quote-marks.png') no-repeat; } #frontpage_examples .excerpt { -background:url(../images/quote-marks.png) no-repeat; -}
\ No newline at end of file +background:image-url('quote-marks.png') no-repeat; +} diff --git a/lib/alavetelitheme.rb b/lib/alavetelitheme.rb index 2930ba6..8476e90 100644 --- a/lib/alavetelitheme.rb +++ b/lib/alavetelitheme.rb @@ -32,6 +32,15 @@ end # something unique (e.g. yourtheme-custom-routes.rb": $alaveteli_route_extensions << 'custom-routes.rb' +# Prepend the asset directories in this theme to the asset path: +['stylesheets', 'images', 'javascripts'].each do |asset_type| + theme_asset_path = File.join(File.dirname(__FILE__), + '..', + 'assets', + asset_type) + Rails.application.config.assets.paths.unshift theme_asset_path +end + # Tell FastGettext about the theme's translations: look in the theme's # locale-theme directory for a translation in the first place, and if # it isn't found, look in the Alaveteli locale directory next: diff --git a/lib/views/general/_before_head_end.html.erb b/lib/views/general/_before_head_end.html.erb index 1644299..9f8f339 100644 --- a/lib/views/general/_before_head_end.html.erb +++ b/lib/views/general/_before_head_end.html.erb @@ -1 +1 @@ -<%= stylesheet_link_tag "/alavetelitheme/stylesheets/custom" %> +<%= stylesheet_link_tag "application" %> diff --git a/lib/views/general/_orglink.html.erb b/lib/views/general/_orglink.html.erb index 9535a79..6a83ffb 100644 --- a/lib/views/general/_orglink.html.erb +++ b/lib/views/general/_orglink.html.erb @@ -1 +1 @@ -<%= link_to image_tag('/alavetelitheme/images/logo.png'), frontpage_url, :id=>'logo' %> +<%= link_to image_tag('alaveteli-logo.png'), frontpage_url, :id=>'logo' %> |