Commit Graph

56 Commits

Author SHA1 Message Date
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
ffce07e785 Start working on replacing old icons with SVG icons (#23980):
* Introduces IconsHelper with methods to render SVG icon from a sprite file.
* Adds SVG sprite file with icons mainly from Font Awesome, but also from Material Design Icons and Fluent UI System Icons (based on the work made by Takashi Kato (@tohosaku)).
* Replaces specific icons with new SVG icons.
* Temporarily keep all old CSS icon definitions for backard compatibility.



git-svn-id: https://svn.redmine.org/redmine/trunk@22988 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-08-29 21:46:40 +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
380444f085 Fix RuboCop offense Performance/StringIdentifierArgument (#39888).
git-svn-id: https://svn.redmine.org/redmine/trunk@22535 e93f8b46-1217-0410-a6f0-8f06a7374b81
2023-12-20 09:23:05 +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
Go MAEDA
5b29b2b5d1 Use the regular "icon icon-*" classes for sort-handle (#31433).
Patch by Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@18203 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-05-27 21:19:51 +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
acac5974e3 New My page block: Updated issues (#30975).
Patch by Yuichi HARADA.


git-svn-id: http://svn.redmine.org/redmine/trunk@18109 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-04-30 08:10:30 +00:00
Go MAEDA
42532605db Update Rails ujs (#31205).
Patch by Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@18062 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-04-18 16:04:13 +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
e70c283a22 Remove unnecessary encoding magic comment (#31034).
The default script encoding is UTF-8 in Ruby 2.0 or later.

Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@17976 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-16 06:26:33 +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
Go MAEDA
93528d124b Performance improvement when rendering news or calendar block on My page (#30249).
Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@17771 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-12-21 03:41:15 +00:00
Go MAEDA
5f96648717 Use Project::STATUS_ACTIVE constant instead of harcoded 1 (#29449).
Patch by Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@17612 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-10-29 07:01:51 +00:00
Go MAEDA
bae9ffd327 Filter out issues from closed projects in the following widgets (#29449):
* Issues assigned to me
* Reported issues
* Watched issues

Patch by Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@17611 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-10-29 06:14:56 +00:00
Go MAEDA
9a53b68b73 Fix that MyHelper::render_activity_block is not timezone aware (#2471, #29816).
Patch by Mizuki ISHIKAWA.


git-svn-id: http://svn.redmine.org/redmine/trunk@17600 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-10-20 23:43:25 +00:00
Go MAEDA
87a671ce75 Add my activities to my page (#2471).
Patch by Mizuki ISHIKAWA.


git-svn-id: http://svn.redmine.org/redmine/trunk@17443 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-07-11 14:51:07 +00:00
Go MAEDA
2ecb29bfcb Use pluck instead of map in MyHelper (#26711).
Patch by jwjw yy.


git-svn-id: http://svn.redmine.org/redmine/trunk@17036 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-11-26 14:37:31 +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
ea26846b81 Load queries from the helper.
git-svn-id: http://svn.redmine.org/redmine/trunk@16416 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-03-18 08:36:52 +00:00
Jean-Philippe Lang
23131d14f5 Use helper methods for rendering blocks.
git-svn-id: http://svn.redmine.org/redmine/trunk@16414 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-03-16 18:26:43 +00:00
Jean-Philippe Lang
4cfd513373 Allow multiple instances of custom queries on My page (#1565).
git-svn-id: http://svn.redmine.org/redmine/trunk@16413 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-03-16 18:02:43 +00:00
Jean-Philippe Lang
f828a985ae Let user display a custom query on "My page" (#1565).
git-svn-id: http://svn.redmine.org/redmine/trunk@16406 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-03-15 17:59:31 +00:00
Jean-Philippe Lang
6bc537f6f9 Adds titles on icon links.
git-svn-id: http://svn.redmine.org/redmine/trunk@16403 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-03-14 18:25:23 +00:00
Jean-Philippe Lang
8c7898bb5d Let user choose columns and sort order of issue lists on "My page" (#1565).
git-svn-id: http://svn.redmine.org/redmine/trunk@16400 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-03-14 18:18:19 +00:00
Jean-Philippe Lang
6f6362fe2d Preload associations used to display issues on My page.
git-svn-id: http://svn.redmine.org/redmine/trunk@16395 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-03-13 20:06:33 +00:00
Jean-Philippe Lang
28e34e101c Don't reload the page when adding/removing a block.
git-svn-id: http://svn.redmine.org/redmine/trunk@16394 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-03-13 20:02:34 +00:00
Jean-Philippe Lang
327a6e54da Fix that move/delete links disappear after updating block settings.
git-svn-id: http://svn.redmine.org/redmine/trunk@16393 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-03-13 19:57:49 +00:00
Jean-Philippe Lang
b91489ce6b Fix sort handle on "My page".
git-svn-id: http://svn.redmine.org/redmine/trunk@16389 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-03-11 13:07:38 +00:00
Jean-Philippe Lang
eb0a93d353 Removes MyControllerTest#page_layout (#25297).
git-svn-id: http://svn.redmine.org/redmine/trunk@16385 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-03-09 19:08:02 +00:00
Jean-Philippe Lang
3ba70a7616 Tests broken by r15942 (#8761).
git-svn-id: http://svn.redmine.org/redmine/trunk@15943 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-11-03 17:49:14 +00:00
Jean-Philippe Lang
db5bd2b2de My page - Spent time: configurable number of days to display (#8761).
git-svn-id: http://svn.redmine.org/redmine/trunk@15942 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-10-30 08:32:31 +00:00
Jean-Philippe Lang
ac7e5f4db2 Missing select name.
git-svn-id: http://svn.redmine.org/redmine/trunk@15931 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-10-29 10:16:58 +00:00
Jean-Philippe Lang
8b86d5158e Moves blocks definition to Redmine::MyPage.
git-svn-id: http://svn.redmine.org/redmine/trunk@15930 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-10-29 10:10:31 +00:00
Jean-Philippe Lang
604ce984eb Use regular icon-* class.
git-svn-id: http://svn.redmine.org/redmine/trunk@15928 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-10-29 08:22:37 +00:00
Jean-Philippe Lang
f9eaeaf451 Adds helpers for rendering my page blocks.
git-svn-id: http://svn.redmine.org/redmine/trunk@15927 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-10-29 08:10:19 +00:00
Jean-Philippe Lang
1faca3a1dd Show open issues only in "Reported Issues" on My page (#23472).
Patch by Marius BALTEANU.

git-svn-id: http://svn.redmine.org/redmine/trunk@15772 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-08-31 16:58:17 +00:00
Jean-Philippe Lang
ed50d42210 Replace Date.today with User.current.today (#22320).
Depending on the offset between a user's configured timezone and the server
timezone, Date.today may be more or less often wrong from the user's
perspective, leading to things like issues marked as overdue too early or too
late, or yesterday / tomorrow being displayed / selected where 'today' is
intended.

A test case illustrating the problem with Issue#overdue? is included

Patch by Jens Kraemer.

git-svn-id: http://svn.redmine.org/redmine/trunk@15379 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-05-07 10:42:22 +00:00
Jean-Philippe Lang
ffa4dd00f6 Watched issues count on "My page" is shown for all issues instead of only open ones (#15777).
Patch by Karel Pičman and Go MAEDA.

git-svn-id: http://svn.redmine.org/redmine/trunk@15315 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-04-09 09:57:37 +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
8160f2addb Adds a scope to get issues assigned to a user.
git-svn-id: http://svn.redmine.org/redmine/trunk@14720 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-10-21 17:00:14 +00:00
Jean-Philippe Lang
d6c6c7ac62 Use the same scope for counting.
git-svn-id: http://svn.redmine.org/redmine/trunk@14719 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-10-21 16:45:42 +00:00
Jean-Philippe Lang
6e356071dd Fixed that spent time on my page does not include entries without issue (#19320).
git-svn-id: http://svn.redmine.org/redmine/trunk@14071 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-03-10 19:42:45 +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
6f92548b38 remove unneeded "references" of joins
"references" is needed for includes, but not needed for joins.

git-svn-id: http://svn.redmine.org/redmine/trunk@13501 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-10-24 02:18:45 +00:00
Jean-Philippe Lang
2d1866d966 Merged rails-4.1 branch (#14534).
git-svn-id: http://svn.redmine.org/redmine/trunk@13482 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-10-22 17:37:16 +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