From 523febf9c1b31991fed52fe5878bec3153f8aafb Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Wed, 22 Dec 2010 21:37:07 +0000 Subject: [PATCH] Support for Javascript in Themes (#2803). If javascripts/theme.js is found in the theme directory, it will be automatically loaded on each page. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4558 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/layouts/base.rhtml | 1 + lib/redmine/themes.rb | 52 +++++++++++++++--- test/integration/lib/redmine/themes_test.rb | 60 +++++++++++++++++++++ 3 files changed, 107 insertions(+), 6 deletions(-) create mode 100644 test/integration/lib/redmine/themes_test.rb diff --git a/app/views/layouts/base.rhtml b/app/views/layouts/base.rhtml index 0393815b0..8cd7a97eb 100644 --- a/app/views/layouts/base.rhtml +++ b/app/views/layouts/base.rhtml @@ -9,6 +9,7 @@ <%= stylesheet_link_tag 'application', :media => 'all' %> <%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %> <%= javascript_include_tag :defaults %> +<%= heads_for_theme %> <%= heads_for_wiki_formatter %>