71 Commits

Author SHA1 Message Date
Marius Balteanu
b21e0513aa Adds documentation for recent_pages macro (#38501).
git-svn-id: https://svn.redmine.org/redmine/trunk@23974 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-09-13 08:51:04 +00:00
Marius Balteanu
3a19544136 Adds {{recent_pages}} macro that displays a list of recently updated Wiki pages (#38501).
Patch by Go MAEDA (user:maeda).

git-svn-id: https://svn.redmine.org/redmine/trunk@23957 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-09-07 08:20:04 +00:00
Marius Balteanu
6951e569c4 Improve SVG icon compatibility with RTL languages by adding the @rtl@ parameter to @sprite_icon@ method. When it is @true@, it adds the 'icon-rtl' class to SVG icons, flipping their direction if an RTL language is used (#42465).
git-svn-id: https://svn.redmine.org/redmine/trunk@23654 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-04-13 20:30:19 +00:00
Marius Balteanu
40b6dce2de Correctly handle exception messages in macros (#42326).
Patch by Holger Just (user:hjust).


git-svn-id: https://svn.redmine.org/redmine/trunk@23519 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-03-06 21:42:27 +00:00
Marius Balteanu
d1008280d8 Renames and improves methods provided by @IconsHelper@ (#23980).
git-svn-id: https://svn.redmine.org/redmine/trunk@23145 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-10-19 10:06:26 +00:00
Marius Balteanu
166540d743 Replaces icon-expanded and icon-collapsed with SVG icons (#23980).
git-svn-id: https://svn.redmine.org/redmine/trunk@23041 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-09-08 17:25:02 +00:00
Go MAEDA
578360fdab Add support for quoted arguments containing commas in wiki macros (#40014).
Patch by Yasu Saku (user:skys).


git-svn-id: https://svn.redmine.org/redmine/trunk@22959 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-08-20 02:13:21 +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
Go MAEDA
090323b7a0 Fixes i18n call in macro error fallback (#37668).
Patch by Jens Krämer.


git-svn-id: https://svn.redmine.org/redmine/trunk@22331 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-10-06 08:30:33 +00:00
Go MAEDA
2415c9f5d7 Fix exception raised during thumbnail macro to image tag conversion in emails (#38697).
Patch by Y saku and Mizuki ISHIKAWA.


git-svn-id: https://svn.redmine.org/redmine/trunk@22285 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-08-30 07:30:16 +00:00
Go MAEDA
3942177f49 Fix RuboCop offense Performance/BlockGivenWithExplicitBlock (#38146).
git-svn-id: https://svn.redmine.org/redmine/trunk@22027 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-01-11 13:20:52 +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
eb399b83a5 Fix {{thumbnail}} macro in an issue note cannot fetch an image attached in a different note (#37881).
Patch by Mizuki ISHIKAWA.


git-svn-id: https://svn.redmine.org/redmine/trunk@22012 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-12-30 09:00:14 +00:00
Go MAEDA
20ed193d93 Thumbnail macro does not work when a file is attached and preview is displayed immediately (#37379).
Patch by Mizuki ISHIKAWA.


git-svn-id: https://svn.redmine.org/redmine/trunk@21716 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-07-19 13:57:04 +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
Marius Balteanu
1245708ba7 Fix typo in class 'icon-expended' (#36149).
Patch by Bernhard Rohloff.

git-svn-id: http://svn.redmine.org/redmine/trunk@21275 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-11-08 20:14:49 +00:00
Go MAEDA
ec3527102d Remove deprecated WikiContent::Version (#35031).
git-svn-id: http://svn.redmine.org/redmine/trunk@21002 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-05-15 05:51:14 +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
Toshi MARUYAMA
690135e1c5 shorten long line of lib/redmine/wiki_formatting/macros.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20638 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-12-12 15:49:29 +00:00
Toshi MARUYAMA
52d8b5549e add empty line after guard clause to lib/redmine/wiki_formatting/macros.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20230 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-11-03 14:54:59 +00:00
Toshi MARUYAMA
3db455b048 remove spaces inside {} of lib/redmine/wiki_formatting/macros.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20062 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-09-21 13:04:09 +00:00
Go MAEDA
e84ab8fcb6 Don't internationalize error messages used when defining a macro (#33426).
git-svn-id: http://svn.redmine.org/redmine/trunk@20015 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-09-11 00:42:49 +00:00
Go MAEDA
58eca8190e Internationalize error messages for wiki macros (#33426).
Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@20013 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-09-10 07:19:21 +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
Go MAEDA
03a4e21568 Fix missing arrow icon of collapse macro (#32754).
Patch by Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@19413 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-01-07 14:56:29 +00:00
Go MAEDA
eb6e390ee8 Reverts r19409 that breaks some tests (#32754).
git-svn-id: http://svn.redmine.org/redmine/trunk@19410 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-01-07 01:51:33 +00:00
Go MAEDA
d06b8bbb53 Fix that arrow icon for {{collapse}} macro is not shown (#32754).
Patch by Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@19409 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-01-07 01:34:14 +00:00
Toshi MARUYAMA
741aa901b0 cleanup: rubocop: fix Layout/ClosingParenthesisIndentation in lib/redmine/wiki_formatting/macros.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19192 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-23 09:04:46 +00:00
Jean-Philippe Lang
93935f7c39 Wiki page collapse block image is not displayed in exported PDF (#30162).
Patch by Jun NAITOH.

git-svn-id: http://svn.redmine.org/redmine/trunk@18307 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-06-20 16:58:01 +00:00
Jean-Philippe Lang
c4a9d4cd4d Issue macro for flexible linking to issues (#29489).
Patch by Jens Krämer.

git-svn-id: http://svn.redmine.org/redmine/trunk@18297 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-06-20 14:01:50 +00:00
Go MAEDA
9eafc3e9a2 Remove trailing whitespaces from lib (#31506).
Patch by Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@18231 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-06-06 14:50:14 +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
72e1451159 Use Regexp#match? to reduce allocations of MatchData object (#28940).
Patch by Pavel Rosický.


git-svn-id: http://svn.redmine.org/redmine/trunk@18011 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-27 02:15:24 +00:00
Go MAEDA
30e341db69 Support frozen_string_literal in lib/**/*.rb (#26561).
Contributed by Pavel Rosický.


git-svn-id: http://svn.redmine.org/redmine/trunk@17988 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-17 16:36:34 +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
Jean-Philippe Lang
85a0e96ad6 Set a default size for macro thumbnails different from the preview thumbnails.
git-svn-id: http://svn.redmine.org/redmine/trunk@16829 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-07-19 07:00:27 +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
df5dba5dde Modify circular inclusion test to use page.id instead of page.title (#24869).
Patch by Michael Esemplare.

git-svn-id: http://svn.redmine.org/redmine/trunk@16227 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-01-19 18:32:06 +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
11bce09825 Typo "coma" (#20551).
Patch by budo kaiman.

git-svn-id: http://svn.redmine.org/redmine/trunk@14712 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-10-20 18:26:28 +00:00
Jean-Philippe Lang
8868ecc624 Don't process macro descriptions with text formatter (#18961).
git-svn-id: http://svn.redmine.org/redmine/trunk@13955 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-01-31 14:26:32 +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
Jean-Philippe Lang
c4484a40c0 Use relative URL for thumbnails according to :only_path option (#18119).
git-svn-id: http://svn.redmine.org/redmine/trunk@13451 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-10-18 10:14:17 +00:00
Jean-Philippe Lang
b12be8025d Include host in macro generated thumbnails urls (#16989).
git-svn-id: http://svn.redmine.org/redmine/trunk@13218 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-07-05 10:13:08 +00:00
Jean-Philippe Lang
e8057d41bb Fixed that collapse macro with headings breaks the table of contents (#16077).
git-svn-id: http://svn.redmine.org/redmine/trunk@12899 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-02-15 10:55:29 +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
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
582dcf4b36 Fixed that macros with uppercase letters can not be called (#12744).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11126 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-01-05 23:11:35 +00:00
Jean-Philippe Lang
14e56006a1 Fixed that #extract_macro_options should not be greedy (#12451).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10885 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-11-27 19:59:33 +00:00
Jean-Philippe Lang
d29fa4735b Adds a macro for inserting collapsed text (#12167).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10680 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-10-20 14:49:32 +00:00