~ubuntu-branches/ubuntu/wily/phabricator/wily

« back to all changes in this revision

Viewing changes to phabricator/src/view/phui/calendar/PHUICalendarMonthView.php

  • Committer: Package Import Robot
  • Author(s): Richard Sellam
  • Date: 2015-06-13 10:52:10 UTC
  • mfrom: (0.30.1) (0.29.1) (0.17.4) (2.1.9 sid)
  • Revision ID: package-import@ubuntu.com-20150613105210-5uirr7tvnk0n6e6y
Tags: 0~git20150613-1
* New snapshot release (closes: #787805)
* fixed typo in logrotate script (closes: #787645)

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
        }
90
90
      }
91
91
 
 
92
      $max_daily = 15;
 
93
      $counter = 0;
 
94
 
92
95
      $list = new PHUICalendarListView();
93
96
      $list->setUser($this->user);
94
97
      foreach ($all_day_events as $item) {
95
 
        $list->addEvent($item);
 
98
        if ($counter <= $max_daily) {
 
99
          $list->addEvent($item);
 
100
        }
 
101
        $counter++;
96
102
      }
97
103
      foreach ($list_events as $item) {
98
 
        $list->addEvent($item);
 
104
        if ($counter <= $max_daily) {
 
105
          $list->addEvent($item);
 
106
        }
99
107
      }
100
108
 
101
109
      $uri = $this->getBrowseURI();
228
236
      $cell_day = null;
229
237
    }
230
238
 
231
 
    if ($date && $date->format('j') == $this->day) {
 
239
    if ($date && $date->format('j') == $this->day &&
 
240
      $date->format('m') == $this->month) {
232
241
      $today_class = 'phui-calendar-today-slot phui-calendar-today';
233
242
    } else {
234
243
      $today_class = 'phui-calendar-today-slot';