/[soft]/dashboard/Report/Box/00_Project.php
ViewVC logotype

Diff of /dashboard/Report/Box/00_Project.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1696 by rda, Wed May 25 16:34:23 2011 UTC revision 1697 by rda, Tue Jun 21 12:24:45 2011 UTC
# Line 24  class Report_Box_Project extends Report_ Line 24  class Report_Box_Project extends Report_
24      function _get_var_definitions() {      function _get_var_definitions() {
25          return array(          return array(
26              'age'  => ':render',              'age'  => ':render',
27              'next' => ':render',              'age_mageia_1' => ':render',
28    //            'next' => ':render',
29              'contribs' => '%d registered contributors',              'contribs' => '%d registered contributors',
30  //            'packagers' => '%d packagers',  //            'packagers' => '%d packagers',
31          );          );
# Line 39  class Report_Box_Project extends Report_ Line 40  class Report_Box_Project extends Report_
40              'c' => 'ok',              'c' => 'ok',
41              's' => 0              's' => 0
42          );          );
43        }
44        
45        function _render_value_age_mageia_1()
46        {
47            $today = time();
48            $myBirthDate = strtotime("2011-06-01 00:00:00");
49            return array(
50                't' => sprintf("Mageia 1 is %d days old.", round(abs($today-$myBirthDate)/60/60/24)),
51                'c' => 'ok',
52                's' => 0
53            );
54      }      }
55            
56      function _render_value_next()      function _render_value_next()

Legend:
Removed from v.1696  
changed lines
  Added in v.1697

  ViewVC Help
Powered by ViewVC 1.1.28