diff options
author | Louise Crow <louise.crow@gmail.com> | 2014-01-24 10:35:13 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2014-01-24 10:35:13 +0000 |
commit | e19a0d6edbfdbbec18240c4f96941a9b288f2617 (patch) | |
tree | a0f0cbe528c99f64c5c870030b6133ff7ccc53c2 /lib | |
parent | 3f0b2ccb10aa58c5471c92b44633ae78e0386f68 (diff) | |
parent | e3b0227230807d8471c7311520f599bba3806f3f (diff) |
Merge branch 'develop'
Diffstat (limited to 'lib')
-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 |
3 files changed, 11 insertions, 2 deletions
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' %> |