Author: baggins                      Date: Sat Mar 13 17:56:39 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- rel 4
- fix rendering gantt template

---- Files affected:
packages/redmine:
   redmine.spec (1.26 -> 1.27) , redmine-gantt.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/redmine/redmine.spec
diff -u packages/redmine/redmine.spec:1.26 packages/redmine/redmine.spec:1.27
--- packages/redmine/redmine.spec:1.26  Sat Mar 13 00:43:14 2010
+++ packages/redmine/redmine.spec       Sat Mar 13 18:56:34 2010
@@ -7,7 +7,7 @@
 Summary:       Flexible project management web application
 Name:          redmine
 Version:       0.9.3
-Release:       3
+Release:       4
 License:       GPL v2
 Group:         Applications/WWW
 Source0:       
http://rubyforge.org/frs/download.php/69449/%{name}-%{version}.tar.gz
@@ -27,6 +27,7 @@
 Patch5:                %{name}-csv-utf.patch
 Patch6:                %{name}-rfpdf.patch
 Patch7:                %{name}-mercurial.patch
+Patch8:                %{name}-gantt.patch
 URL:           http://www.redmine.org/
 BuildRequires: dos2unix
 BuildRequires: rpmbuild(macros) >= 1.202
@@ -130,6 +131,7 @@
 %patch5 -p1
 %patch6 -p1
 %patch7 -p1
+%patch8 -p1
 
 find -type f -print0 | \
        xargs -0 %{__sed} -i -e 's,/usr/bin/env ruby,%{__ruby},' \
@@ -273,6 +275,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.27  2010/03/13 17:56:34  baggins
+- rel 4
+- fix rendering gantt template
+
 Revision 1.26  2010/03/12 23:43:14  baggins
 - rel 3
 - mercurial overhaul

================================================================
Index: packages/redmine/redmine-gantt.patch
diff -u /dev/null packages/redmine/redmine-gantt.patch:1.1
--- /dev/null   Sat Mar 13 18:56:39 2010
+++ packages/redmine/redmine-gantt.patch        Sat Mar 13 18:56:34 2010
@@ -0,0 +1,20 @@
+--- redmine/app/views/issues/gantt.rhtml~      2010-03-13 18:47:18.559124715 
+0100
++++ redmine/app/views/issues/gantt.rhtml       2010-03-13 18:47:21.031124401 
+0100
+@@ -62,7 +62,7 @@
+     end
+ end
+ 
+-g_width = (@gantt.date_to - @gantt.date_from + 1)*zoom
++g_width = (@gantt.date_to.jd - @gantt.date_from.jd + 1)*zoom
+ g_height = [(20 * @gantt.events.length + 6)+150, 206].max
+ t_height = g_height + headers_height
+ %>
+@@ -106,7 +106,7 @@
+ left = 0
+ height = (show_weeks ? header_heigth : header_heigth + g_height)
+ @gantt.months.times do 
+-      width = ((month_f >> 1) - month_f) * zoom - 1
++      width = ((month_f >> 1).jd - month_f.jd) * zoom - 1
+       %>
+       <div style="left:<%= left %>px;width:<%= width %>px;height:<%= height 
%>px;" class="gantt_hdr">
+       <%= link_to "#{month_f.year}-#{month_f.month}", 
@gantt.params.merge(:year => month_f.year, :month => month_f.month), :title => 
"#{month_name(month_f.month)} #{month_f.year}"%>
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/redmine/redmine.spec?r1=1.26&r2=1.27&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to