Highlight today on Calendar/Conpherence
Summary: Highlights which day is today on the calendar list in conpherence. Fixes T3254 Test Plan: Made sure today was Tuesday. Reviewers: epriestley, btrahan Reviewed By: epriestley CC: aran, Korvin Maniphest Tasks: T3254 Differential Revision: https://secure.phabricator.com/D6065
This commit is contained in:
@@ -945,7 +945,7 @@ celerity_register_resource_map(array(
|
||||
),
|
||||
'conpherence-widget-pane-css' =>
|
||||
array(
|
||||
'uri' => '/res/d3829b07/rsrc/css/application/conpherence/widget-pane.css',
|
||||
'uri' => '/res/6f836b19/rsrc/css/application/conpherence/widget-pane.css',
|
||||
'type' => 'css',
|
||||
'requires' =>
|
||||
array(
|
||||
|
||||
@@ -200,10 +200,16 @@ final class ConpherenceWidgetController extends
|
||||
$one_day = 24 * 60 * 60;
|
||||
foreach ($weekstamps as $time => $day) {
|
||||
// build a header for the new day
|
||||
if ($day->format('w') == $today->format('w')) {
|
||||
$active_class = 'today';
|
||||
} else {
|
||||
$active_class = '';
|
||||
}
|
||||
|
||||
$content[] = phutil_tag(
|
||||
'div',
|
||||
array(
|
||||
'class' => 'day-header'
|
||||
'class' => 'day-header '.$active_class
|
||||
),
|
||||
array(
|
||||
phutil_tag(
|
||||
|
||||
Reference in New Issue
Block a user