Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
gem 'deface', '< 1.0.0'
gem 'deface', '~> 1.0.2'

group :development do
gem 'diffy'
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
<sup>**note**: Tested just on *Redmine 3.1*</sup>

## Installation

Expand Down
2 changes: 1 addition & 1 deletion app/overrides/users/_preferences.rb
Original file line number Diff line number Diff line change
@@ -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 => '<p><%= pref_fields.select :ui_theme, Redmine::Themes.themes.collect {|t| [t.name, t.id]}, { :include_blank => true } %></p>')
4 changes: 2 additions & 2 deletions init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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