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:
Chad Little
2013-05-28 16:52:53 -07:00
parent 5227a06e3c
commit aec0e2f8f9
3 changed files with 29 additions and 12 deletions

View File

@@ -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(

View File

@@ -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(