Commit Graph

129 Commits

Author SHA1 Message Date
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
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
Toshi MARUYAMA
e6b7c73169 pdf: use all lower cases for DejaVuSansMono (#19017)
git-svn-id: http://svn.redmine.org/redmine/trunk@14963 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-12-06 12:36:19 +00:00
Toshi MARUYAMA
abea7c2d30 pdf: remove italic from DejaVuSansMono (#19017)
DejaVuSansMono Italic Arabic font has problem.

Contributed by Jun NAITOH.

git-svn-id: http://svn.redmine.org/redmine/trunk@14960 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-12-06 12:21:36 +00:00
Toshi MARUYAMA
4996e56ff3 pdf: use "family" parameter instead of l(:general_pdf_fontname) at SetFont method (#19017)
Contributed by Jun NAITOH.

git-svn-id: http://svn.redmine.org/redmine/trunk@14959 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-12-06 12:21:25 +00:00
Toshi MARUYAMA
8b17507423 revert r14950 (#19017)
r14907 breaks Arabic italic pdf rendering.

git-svn-id: http://svn.redmine.org/redmine/trunk@14951 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-12-06 07:22:09 +00:00
Toshi MARUYAMA
9922125269 pdf: use "family" parameter instead of l(:general_pdf_fontname) at SetFont method (#19017)
Contributed by Jun NAITOH.

git-svn-id: http://svn.redmine.org/redmine/trunk@14950 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-12-06 06:35:37 +00:00
Toshi MARUYAMA
12ede7d07f revert r14907 (#19017)
r14907 breaks Arabic italic pdf rendering.

git-svn-id: http://svn.redmine.org/redmine/trunk@14911 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-12-04 06:50:08 +00:00
Toshi MARUYAMA
367c417b5e pdf: use l(:general_pdf_monospaced_fontname) (#19017)
Contributed by Jun NAITOH.

git-svn-id: http://svn.redmine.org/redmine/trunk@14910 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-12-04 05:43:21 +00:00
Toshi MARUYAMA
77f9155d55 pdf: use "family" parameter instead of l(:general_pdf_fontname) at SetFont method (#19017)
Contributed by Jun NAITOH.

git-svn-id: http://svn.redmine.org/redmine/trunk@14907 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-12-04 05:42:14 +00:00
Toshi MARUYAMA
41c64d1266 pdf: fix Vietnamese Italic is not shown (#21328)
git-svn-id: http://svn.redmine.org/redmine/trunk@14888 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-11-25 06:55:00 +00:00
Jean-Philippe Lang
eee65c8ba8 Display totals if the PDF export (#1561).
git-svn-id: http://svn.redmine.org/redmine/trunk@14666 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-10-09 09:02:29 +00:00
Jean-Philippe Lang
3077ed8d3a Add BOM to UTF-8 encoded CSV (#7037).
git-svn-id: http://svn.redmine.org/redmine/trunk@14303 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-06-13 07:55:30 +00:00
Jean-Philippe Lang
49914f010d Adds a class for handling CSV generation (#7037).
git-svn-id: http://svn.redmine.org/redmine/trunk@14302 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-06-13 07:33:20 +00:00
Jean-Philippe Lang
03c87f3db1 Change default display mode for PDF Export to OneColumn (#19546).
Patch by Marcel Müller.

git-svn-id: http://svn.redmine.org/redmine/trunk@14299 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-06-06 07:24:13 +00:00
Toshi MARUYAMA
e622ce6691 pdf: remove styles by fontname instated of Arabic/Persian/Thai locale (#10681, #18586)
git-svn-id: http://svn.redmine.org/redmine/trunk@13977 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-02-08 04:04:35 +00:00
Toshi MARUYAMA
15e5d01b30 pdf: remove styles of Arabic/Persian Italic and Thai Bold (#10681, #18586)
Contributed by Jun NAITOH.

git-svn-id: http://svn.redmine.org/redmine/trunk@13976 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-02-08 04:04:24 +00:00
Jean-Philippe Lang
5541f9ca51 Render issue description and journal notes with #textilizable (#13051).
git-svn-id: http://svn.redmine.org/redmine/trunk@13946 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-01-25 09:23:45 +00:00
Jean-Philippe Lang
10dab4045e Removed an instance variable.
git-svn-id: http://svn.redmine.org/redmine/trunk@13945 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-01-25 09:08:13 +00:00
Jean-Philippe Lang
7a0432d85c Adds support for macro and Redmine links in PDF export (#13051).
git-svn-id: http://svn.redmine.org/redmine/trunk@13944 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-01-25 09:04:52 +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
78cc63e52c Use IssueRelation#to_s in PDF export.
git-svn-id: http://svn.redmine.org/redmine/trunk@13564 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-11-05 16:27:47 +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
e23d4d9b4e pdf: define "general_pdf_fontname" at i18n yaml for multilingual environment (#13781)
Contributed by Jun NAITOH.

git-svn-id: http://svn.redmine.org/redmine/trunk@13458 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-10-20 04:15:11 +00:00
Toshi MARUYAMA
3d15ec3c96 remove general_pdf_encoding from lib/redmine/export/pdf.rb (#17570)
git-svn-id: http://svn.redmine.org/redmine/trunk@13359 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-08-28 10:23:54 +00:00
Toshi MARUYAMA
4a9210d86f use rbpdf gem instead of bundled rfpdf (#17570)
Contributed by Jun NAITOH.

git-svn-id: http://svn.redmine.org/redmine/trunk@13358 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-08-28 10:23:46 +00:00
Toshi MARUYAMA
868e15ff2d remove unneeded trailing ';' from lib/redmine/export/pdf.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@13132 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-05-07 08:25:15 +00:00
Toshi MARUYAMA
fd6fea5713 Rails4: replace ActionView::Helpers::TextHelper#truncate by String#truncate at lib/redmine/export/pdf.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@12832 e93f8b46-1217-0410-a6f0-8f06a7374b81
2014-02-06 03:34:09 +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
2e2e2cfe42 Merged custom fields format refactoring.
git-svn-id: http://svn.redmine.org/redmine/trunk@12400 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-12-14 08:22:43 +00:00
Jean-Philippe Lang
628d05629b Role-based issue custom field visibility (#5037).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12012 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-07-13 09:20:11 +00:00
Toshi MARUYAMA
1fd7540b85 pdf: replace "id_width" parameter name to original "col_id_width" (#14178)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11921 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-06-04 11:02:45 +00:00
Toshi MARUYAMA
7bc0c26198 pdf: restore "id_width" parameter of issues_to_pdf_draw_borders (#14178)
Contributed by Massimo Rossello.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11920 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-06-04 10:54:55 +00:00
Etienne Massip
4224a0c3fe Code cleanup (#13630).
Contributed by F Schroedter.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11694 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-04-02 17:37:52 +00:00
Etienne Massip
4a3864a180 Fixed that issue list PDF export displays ID column twice (#13630).
Contributed by F Schroedter.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11693 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-04-02 17:34:15 +00:00
Jean-Philippe Lang
d0888b2f71 Strip {{toc}} tags in pdf exports (#9842).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11227 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-01-20 16:22:20 +00:00
Jean-Philippe Lang
ff53a9cfe1 Don't use Iconv with ruby1.9 (#12787).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11177 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-01-12 21:27:36 +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
5c407a8c40 Fixed that issues grouped by custom field is broken in PDF export (#12513).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10956 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-12-08 09:45:38 +00:00
Jean-Philippe Lang
8201761e77 Adds an option for displaying the issue description on the issue list (#3447).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10948 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-12-06 17:48:19 +00:00
Jean-Philippe Lang
b0013d9f68 Do not show parents/subtasks subjects that are not visible.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10586 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-10-09 21:30:40 +00:00
Jean-Philippe Lang
0178b5a2fe Private issue notes (#1554).
Adds 2 new permissions for viewing/adding private comments to issues.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10547 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-10-03 21:36:19 +00:00
Etienne Massip
823ac010c5 File handling cleanup.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9973 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-07-11 00:14:56 +00:00
Etienne Massip
e2851a8b2a Use 1.8.7 compatible @Pathname#to_s@ alias for @Pathname#to_path@.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9969 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-07-10 20:14:06 +00:00
Etienne Massip
c929ab5c16 Set temporary path cache variable as a String back again so that TCPDF handles error messages fine.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9968 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-07-10 19:53:03 +00:00
Jean-Philippe Lang
4cecc1beed Ability to disable standard fields on a per tracker basis (#1091).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9912 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-07-05 12:20:07 +00:00
Toshi MARUYAMA
e55c8f6b67 pdf: enhanced issues list (#10464)
* Automatic calculation of the size of table columns depending on their content
* Output table header on each page

Contributed by Yuri Makarov.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9246 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-20 07:09:15 +00:00
Toshi MARUYAMA
b17b673039 remove trailing white-spaces from lib/redmine/export/pdf.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9245 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-03-19 23:22:04 +00:00
Jean-Philippe Lang
be9f1c592e Removed border around wiki pages in PDF.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8740 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-01-30 23:11:26 +00:00
Jean-Philippe Lang
7abaa570c6 Fix for ruby1.9.3.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8739 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-01-30 22:53:53 +00:00