Giter Club home page Giter Club logo

redmine_user_specific_theme's Introduction

Redmine User-Specific Theme Plugin

Build Status Code Climate

This plugin allows Redmine users to select themes in their account settings. The selected theme will be displayed for the user regardless of the system-wide theme settings.

Compatibility

This plugin version is compatible only with Redmine 2.1.x and later.

Installation

  1. To install the plugin

    • Download the .ZIP archive, extract files and copy the plugin directory into #{REDMINE_ROOT}/plugins.

    Or

    • Change you current directory to your Redmine root directory:

        cd {REDMINE_ROOT}
      

      Copy the plugin from GitHub using the following command:

        git clone https://github.com/Restream/redmine_user_specific_theme.git plugins/redmine_user_specific_theme
      
  2. Install the required gems using the command:

     bundle install  
    
    • In case of bundle install errors, remove the Gemfile.lock file, update the local package index and install the required dependencies. Then execute the bundle install command again:

        rm Gemfile.lock
        sudo apt-get update
        sudo apt-get install -y libxml2-dev libxslt-dev libpq-dev
        bundle install
      
  3. Restart Redmine.

Now you should be able to see the plugin in Administration > Plugins.

Usage

The plugin adds the Theme setting to the user account. If the Theme setting is blank, then the system-wide theme is applied; otherwise, the selected theme is displayed. user theme

Maintainers

Danil Tashkinov, github.com/nodecarter

License

Copyright (c) 2015 Restream

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

redmine_user_specific_theme's People

Contributors

irina-l avatar nodecarter avatar t-gergely avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

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.