Giter Club home page Giter Club logo

redmine_user_specific_theme's Issues

Impossible to select default Redmine theme when system wide defined theme is different from default

Hi,

Thank you for this plugin.

It seems it is impossible for users to select the default Redmine theme (which part of redmine core) as it doesn't appears in the theme list. The only why to use the default theme is to make it default in the system, and to not specify a custom theme in the user preference. But as we use a custom theme in the system, there is no way to switch a specific user to the default theme.

Is it fixable ?

Pierre

Theme selection not showing up with Redmine 2.4

I installed plugin with Redmine 2.4.0, but couldn't see the selection window in User preferences menu.
I found following error in logs:

Started GET "/my/account" for 127.0.0.1 at 2014-02-07 16:42:41 +0100
Processing by MyController#account as HTML
  Current user: admin (id=1)
  Rendered users/_mail_notifications.html.erb (105.8ms)
Deface: [WARNING] No :original defined for 'user_ui_theme_preference', you should change its definition to include:

Found related entry at:
spree/deface#105

I solved by applying following to plugin code:

diff --git a/Gemfile b/Gemfile
index e89ad92..1e876ba 100644
--- a/Gemfile
+++ b/Gemfile
@@ -1,4 +1,4 @@
-gem 'deface'
+gem 'deface', '~> 1.0.0'
 
 group :development do
   gem 'diffy'
diff --git a/app/overrides/users/_preferences.rb b/app/overrides/users/_preferences.rb
index a7fb739..97f9bf0 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:contains("end"):last',
+    :insert_before => 'erb:contains("end"):last',
     :text => '

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

')

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.