Commit Graph

42 Commits

Author SHA1 Message Date
Go MAEDA
32b5992c22 Fix RuboCop offense Style/MapCompactWithConditionalBlock (#39887).
git-svn-id: https://svn.redmine.org/redmine/trunk@22919 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-07-11 08:48:35 +00:00
Marius Balteanu
38d950df55 Remove current year from source file copyright headers and update year in footer to 2024 (#40043).
git-svn-id: https://svn.redmine.org/redmine/trunk@22746 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-02-26 22:55:54 +00:00
Marius Balteanu
9155b777e6 Custom themes are now loaded from "/themes" directory from project root. The themes provided by Redmine (alternate and classic) remains in "app/assets/themes" (#39111).
git-svn-id: https://svn.redmine.org/redmine/trunk@22708 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-02-13 23:11:28 +00:00
Marius Balteanu
34f1c52e23 Move public assets (images, javascripts, stylesheets, themes) to app/assets (#39111).
git-svn-id: https://svn.redmine.org/redmine/trunk@22696 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-02-07 20:55:00 +00:00
Marius Balteanu
0fa0848521 Reverts r22694 (#39111).
git-svn-id: https://svn.redmine.org/redmine/trunk@22695 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-02-07 20:48:26 +00:00
Marius Balteanu
9b540ae8af Move public assets (images, javascripts, stylesheets, themes) to app/assets (#39111).
git-svn-id: https://svn.redmine.org/redmine/trunk@22694 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-02-07 20:44:44 +00:00
Go MAEDA
352decdb1e Fix RuboCop offense Style/BlockDelimiters, Layout/MultilineBlockLayout, and Layout/BlockEndNewline (#39111).
git-svn-id: https://svn.redmine.org/redmine/trunk@22645 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-01-27 01:41:44 +00:00
Marius Balteanu
c99bb27e27 Add Propshaft library to enable the asset pipeline without modifying existing assets (#39111).
Patch by Takashi Kato (@tohosaku).

git-svn-id: https://svn.redmine.org/redmine/trunk@22626 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-01-25 05:38:33 +00:00
Go MAEDA
9f3ca1e753 Refactor file extension removal in Theme#assets to use File.basename instead of delete_suffix (#40008).
git-svn-id: https://svn.redmine.org/redmine/trunk@22598 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-01-08 01:39:27 +00:00
Go MAEDA
52a55f407b Replace String#sub with delete_prefix / delete_suffix (#40008).
Patch by Go MAEDA (@maeda).


git-svn-id: https://svn.redmine.org/redmine/trunk@22596 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-01-08 01:04:37 +00:00
Go MAEDA
945a82b5c0 <=> operator should return nil when invoked with an incomparable object (#38772).
Patch by Go MAEDA.


git-svn-id: https://svn.redmine.org/redmine/trunk@22269 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-06-29 14:42:54 +00:00
Go MAEDA
92bd67c279 Update copyright year to 2023 (#38141).
git-svn-id: https://svn.redmine.org/redmine/trunk@22013 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-01-01 06:19:35 +00:00
Go MAEDA
3686b77eb6 Update copyright year in source files to 2022 (#36379).
git-svn-id: http://svn.redmine.org/redmine/trunk@21342 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-01-02 05:29:10 +00:00
Go MAEDA
3e36b5c452 Update copyright year in source files to 2021 (#33069).
git-svn-id: http://svn.redmine.org/redmine/trunk@20846 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-03-25 06:58:56 +00:00
Go MAEDA
907e0173e4 Update copyright year in source files to 2020 (#33069).
git-svn-id: http://svn.redmine.org/redmine/trunk@19553 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-03-03 00:24:10 +00:00
Toshi MARUYAMA
40ab3035ff cleanup: rubocop: fix Layout/EmptyLinesAroundModuleBody in lib/redmine/themes.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19133 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-21 12:45:23 +00:00
Toshi MARUYAMA
30f3fea023 fix Redmine::Themes#scan_themes is not private
git-svn-id: http://svn.redmine.org/redmine/trunk@18578 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-01 05:07:27 +00:00
Go MAEDA
4082069c75 Update copyright year.
git-svn-id: http://svn.redmine.org/redmine/trunk@18198 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-05-25 07:36:06 +00:00
Go MAEDA
07b3087fda Enable frozen_string_literal for some files under app and lib directory (#26561).
git-svn-id: http://svn.redmine.org/redmine/trunk@17977 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-16 09:37:35 +00:00
Go MAEDA
5861160ffc Add "frozen_string_literal: false" for all files (#26561).
This will be changed to true in the future.


git-svn-id: http://svn.redmine.org/redmine/trunk@17947 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-15 01:32:57 +00:00
Toshi MARUYAMA
a9aac23343 remove trailing white space from lib/redmine/themes.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@16935 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-07-31 04:30:42 +00:00
Jean-Philippe Lang
7fd04e1f8d Update copyright.
git-svn-id: http://svn.redmine.org/redmine/trunk@16685 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-06-25 08:40:31 +00:00
Jean-Philippe Lang
cda9c63d9c Updates copyright for 2016.
git-svn-id: http://svn.redmine.org/redmine/trunk@15238 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-03-13 10:30:10 +00:00
Jean-Philippe Lang
12fe8a595f Don't reopen ApplicationHelper (#20507).
git-svn-id: http://svn.redmine.org/redmine/trunk@14695 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-10-19 18:03:51 +00:00
Jean-Philippe Lang
a19f6fb500 Reverts r14510 (#20508) and r14511 (#20507), tests broken.
git-svn-id: http://svn.redmine.org/redmine/trunk@14520 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-08-22 11:49:12 +00:00
Jean-Philippe Lang
d00c5f06d9 ThemesHelper reopening ApplicationHelper is problem with autoloading (#20507).
Patch by Ondřej Ezr.

git-svn-id: http://svn.redmine.org/redmine/trunk@14511 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-08-18 06:59:24 +00:00
Jean-Philippe Lang
000124f44f Copyright update.
git-svn-id: http://svn.redmine.org/redmine/trunk@13872 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-01-11 09:09:50 +00:00
Toshi MARUYAMA
35cc911192 update copyright year (#15977)
Contributed by Daniel Felix.

git-svn-id: http://svn.redmine.org/redmine/trunk@12736 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-01-29 22:45:39 +00:00
Jean-Philippe Lang
8b999962de Make favicon themeable (#15689).
Patch by Felix Schäfer modified by Jean-Philippe Lang.

git-svn-id: http://svn.redmine.org/redmine/trunk@12646 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-01-11 11:22:46 +00:00
Jean-Philippe Lang
e396a0eebe Copyright for 2013 (#12788).
Patch by Daniel Felix.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11169 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-01-12 09:29:31 +00:00
Jean-Philippe Lang
ba5a052c8c Copyright update.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9636 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-05-05 12:56:53 +00:00
Jean-Philippe Lang
68f8470d4a Makes image_tag pick the image from the current theme if it exists.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9560 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-04-28 09:47:09 +00:00
Jean-Philippe Lang
03335d014c Restores support for :plugin support to stylesheet_link_tag and javascript_include_tag helpers.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9558 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-04-28 09:10:46 +00:00
Jean-Philippe Lang
5e57a1a9d9 Merged rails-3.2 branch.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9528 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-04-25 17:17:49 +00:00
Toshi MARUYAMA
ffe523c79e remove trailing white-spaces from lib/redmine/themes.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7418 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-20 02:48:17 +00:00
Jean-Philippe Lang
c8dc7fff08 Avoid theme rescan when no theme is selected.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4559 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-12-22 21:41:08 +00:00
Jean-Philippe Lang
523febf9c1 Support for Javascript in Themes (#2803).
If javascripts/theme.js is found in the theme directory, it will be automatically loaded on each page.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4558 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-12-22 21:37:07 +00:00
Jean-Philippe Lang
620c48fbbb Reload themes so that new themes can be used without restarting Redmine (#5712).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4432 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-11-27 14:06:11 +00:00
Jean-Philippe Lang
f65c47e3a7 Fixes theme discovery under JRuby on Rails war structure (#632, #5404).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3710 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-04-30 12:44:19 +00:00
Jean-Philippe Lang
b2b56adbfa Fixed: Themes are not applied with Rails 2.0
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1047 e93f8b46-1217-0410-a6f0-8f06a7374b81
2008-01-07 20:14:50 +00:00
Jean-Philippe Lang
0634591b3d Themes:
* Fixed: themes are not found when running Apache+fastcgi
* Added 'Classic' theme (inspired from the v0.51 design)

git-svn-id: http://redmine.rubyforge.org/svn/trunk@922 e93f8b46-1217-0410-a6f0-8f06a7374b81
2007-11-22 18:03:02 +00:00
Jean-Philippe Lang
824a67ab5a Added basic Theme support.
Theme is set at application level (in Admin -> Settings).
For now, themes can override stylesheets only (application.css).

git-svn-id: http://redmine.rubyforge.org/svn/trunk@818 e93f8b46-1217-0410-a6f0-8f06a7374b81
2007-10-10 17:17:37 +00:00