From ab14388dc07971761d66af647599fb82bdacb532 Mon Sep 17 00:00:00 2001 From: "S.M. Mousavi" Date: Thu, 19 Nov 2015 19:11:09 +0330 Subject: [PATCH 1/3] Added supporting for Redmine 3.1 --- Gemfile | 2 +- app/overrides/users/_preferences.rb | 2 +- init.rb | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Gemfile b/Gemfile index 3189640..02e974a 100644 --- a/Gemfile +++ b/Gemfile @@ -1,4 +1,4 @@ -gem 'deface', '< 1.0.0' +gem 'deface', '~> 1.0.2' group :development do gem 'diffy' diff --git a/app/overrides/users/_preferences.rb b/app/overrides/users/_preferences.rb index d87a249..f64fea0 100644 --- a/app/overrides/users/_preferences.rb +++ b/app/overrides/users/_preferences.rb @@ -1,5 +1,5 @@ Deface::Override.new( :virtual_path => 'users/_preferences', :name => 'user_ui_theme_preference', - :insert_before => 'code[erb-silent]:contains("end"):last', + :insert_before => 'erb[silent]:contains("end"):last', :text => '

<%= pref_fields.select :ui_theme, Redmine::Themes.themes.collect {|t| [t.name, t.id]}, { :include_blank => true } %>

') diff --git a/init.rb b/init.rb index 0c6360c..c5588fa 100644 --- a/init.rb +++ b/init.rb @@ -8,8 +8,8 @@ name 'Redmine User-Specific Theme Plugin' description 'This plugin allows users to set Redmine themes in the account settings.' author 'Undev' - version '1.0.0' + version '1.1.0' url 'https://github.com/Undev/redmine_user_specific_theme' - requires_redmine :version_or_higher => '2.1' + requires_redmine :version_or_higher => '3.1' end From 73256e58e47737d4ecd6ae62839be024ca1fa77f Mon Sep 17 00:00:00 2001 From: "S.M. Mousavi" Date: Thu, 19 Nov 2015 20:15:08 +0330 Subject: [PATCH 2/3] Readme updated --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 59c8a12..35434ea 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,8 @@ This plugin allows Redmine users to select themes in their account settings. The ## Compatibility -This plugin version is compatible only with Redmine 2.1.x and later. +This plugin version is compatible only with Redmine 3.x and later. +**note: Tested just on *Redmine 3.1* ## Installation From 16166c98a21f6ac2421fb500cc02a5582864d807 Mon Sep 17 00:00:00 2001 From: "S.M. Mousavi" Date: Thu, 19 Nov 2015 20:23:37 +0330 Subject: [PATCH 3/3] Readme updated --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 35434ea..c8f1f5e 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ This plugin allows Redmine users to select themes in their account settings. The ## Compatibility This plugin version is compatible only with Redmine 3.x and later. -**note: Tested just on *Redmine 3.1* +**note**: Tested just on *Redmine 3.1* ## Installation