diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/alavetelitheme.rb | 2 | ||||
-rw-r--r-- | lib/config/custom-routes.rb | 1 | ||||
-rw-r--r-- | lib/controller_patches.rb | 1 | ||||
-rw-r--r-- | lib/customstates.rb | 1 | ||||
-rw-r--r-- | lib/model_patches.rb | 1 | ||||
-rw-r--r-- | lib/patch_mailer_paths.rb | 1 | ||||
-rw-r--r-- | lib/tasks/alavetelitheme_tasks.rake | 1 | ||||
-rw-r--r-- | lib/views/help/contact.html.erb | 4 |
8 files changed, 10 insertions, 2 deletions
diff --git a/lib/alavetelitheme.rb b/lib/alavetelitheme.rb index c245617..0658142 100644 --- a/lib/alavetelitheme.rb +++ b/lib/alavetelitheme.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- theme_name = File.split(File.expand_path("../..", __FILE__))[1] theme_name.gsub!('-', '_') THEME_NAME = theme_name @@ -38,6 +39,7 @@ $alaveteli_route_extensions << 'custom-routes.rb' ['stylesheets', 'images', 'javascripts'].each do |asset_type| theme_asset_path = File.join(File.dirname(__FILE__), '..', + 'app', 'assets', asset_type) Rails.application.config.assets.paths.unshift theme_asset_path diff --git a/lib/config/custom-routes.rb b/lib/config/custom-routes.rb index 6d4cda4..98fccf7 100644 --- a/lib/config/custom-routes.rb +++ b/lib/config/custom-routes.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- # Here you can override or add to the pages in the core website Rails.application.routes.draw do diff --git a/lib/controller_patches.rb b/lib/controller_patches.rb index 5c48e70..6d796b0 100644 --- a/lib/controller_patches.rb +++ b/lib/controller_patches.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- # Add a callback - to be executed before each request in development, # and at startup in production - to patch existing app classes. # Doing so in init/environment.rb wouldn't work in development, since diff --git a/lib/customstates.rb b/lib/customstates.rb index d801c92..323a105 100644 --- a/lib/customstates.rb +++ b/lib/customstates.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- # See `http://alaveteli.org/docs/customising/themes/#customising-the-request-states` # for more explanation of this file diff --git a/lib/model_patches.rb b/lib/model_patches.rb index b0c906f..d223e36 100644 --- a/lib/model_patches.rb +++ b/lib/model_patches.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- # Add a callback - to be executed before each request in development, # and at startup in production - to patch existing app classes. # Doing so in init/environment.rb wouldn't work in development, since diff --git a/lib/patch_mailer_paths.rb b/lib/patch_mailer_paths.rb index 99da10a..4533be0 100644 --- a/lib/patch_mailer_paths.rb +++ b/lib/patch_mailer_paths.rb @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- # Add a callback - to be executed before each request in development, # and at startup in production - to patch existing app classes. # See http://stackoverflow.com/questions/7072758/plugin-not-reloading-in-development-mode diff --git a/lib/tasks/alavetelitheme_tasks.rake b/lib/tasks/alavetelitheme_tasks.rake index 1f1925b..3744d04 100644 --- a/lib/tasks/alavetelitheme_tasks.rake +++ b/lib/tasks/alavetelitheme_tasks.rake @@ -1,3 +1,4 @@ +# -*- encoding : utf-8 -*- # desc "Explaining what the task does" # task :alavetelitheme do # # Task goes here diff --git a/lib/views/help/contact.html.erb b/lib/views/help/contact.html.erb index 5f467fe..2072d0c 100644 --- a/lib/views/help/contact.html.erb +++ b/lib/views/help/contact.html.erb @@ -93,8 +93,8 @@ <div class="form_button"> <%= hidden_field_tag(:submitted_contact_form, 1) %> - <%= submit_tag "Send message to the charity", :disable_with => "Sending..." %> + <%= submit_tag "Send message to the charity", :data => { :disable_with => "Sending..." } %> <-- we run this site, not the Government! </div> -<% end %>
\ No newline at end of file +<% end %> |