Feature #4356

add ability Plugin may contain the theme for Redmine

Added by Alexey Lustin almost 12 years ago. Updated almost 12 years ago.

Status:NewStart date:2009-12-07
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Plugin API
Target version:-
Resolution:

Description

at this moment Redmine analyse only themes dir in RAILS_ROOT

module Redmine::Themes

    def self.scan_themes
      dirs = Dir.glob("#{RAILS_ROOT}/public/themes/*").select do |f|
        # A theme should at least override application.css
        File.directory?(f) && File.exist?("#{f}/stylesheets/application.css")
      end
      dirs.collect {|dir| Theme.new(dir)}.sort
    end

if I want to create my own CSS that's enough for me

BUT

if I want to create my own views, I would be create a new plugin with redefined views of core

it is incorrect I think my theme in the core, but the views in plugin

what's why I suggest

  • add ability to Redmine Plugin Engine to support the themes for Redmine

History

#1 Updated by Jean-Philippe Lang almost 12 years ago

  • Category set to Plugin API

Also available in: Atom PDF