Countdown revamp
Summary: countdown_timer table named to countdown. datepoint and related stuff renamed to epoch. Countdowns now have phids. Various UI items changed from timer to countdown. Test Plan: Did run storage upgrade and added some countdowns. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin, AnhNhan Maniphest Tasks: T2624 Differential Revision: https://secure.phabricator.com/D5812
This commit is contained in:
committed by
epriestley
parent
1fa307750d
commit
271d6605a9
@@ -14,7 +14,7 @@ final class PhabricatorCountdownViewController
|
||||
|
||||
$request = $this->getRequest();
|
||||
$user = $request->getUser();
|
||||
$timer = id(new PhabricatorTimer())->load($this->id);
|
||||
$timer = id(new PhabricatorCountdown())->load($this->id);
|
||||
if (!$timer) {
|
||||
return new Aphront404Response();
|
||||
}
|
||||
@@ -50,7 +50,7 @@ final class PhabricatorCountdownViewController
|
||||
</div>',
|
||||
$container,
|
||||
$timer->getTitle(),
|
||||
phabricator_datetime($timer->getDatePoint(), $user),
|
||||
phabricator_datetime($timer->getEpoch(), $user),
|
||||
pht('Days'),
|
||||
pht('Hours'),
|
||||
pht('Minutes'),
|
||||
@@ -62,7 +62,7 @@ final class PhabricatorCountdownViewController
|
||||
$chrome_link);
|
||||
|
||||
Javelin::initBehavior('countdown-timer', array(
|
||||
'timestamp' => $timer->getDatepoint(),
|
||||
'timestamp' => $timer->getEpoch(),
|
||||
'container' => $container,
|
||||
));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user