@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Cleaner Countdown widget UI

Summary: Adds the launch date, normalize spacing a bit.

Test Plan:
Test a normal and embeded countdowns.

{F670199}

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D13740

+35 -8
+2 -2
resources/celerity/map.php
··· 54 54 'rsrc/css/application/conpherence/update.css' => 'faf6be09', 55 55 'rsrc/css/application/conpherence/widget-pane.css' => '419fd50c', 56 56 'rsrc/css/application/contentsource/content-source-view.css' => '4b8b05d4', 57 - 'rsrc/css/application/countdown/timer.css' => '3791bb38', 57 + 'rsrc/css/application/countdown/timer.css' => '3d1355ec', 58 58 'rsrc/css/application/daemon/bulk-job.css' => 'df9c1d4a', 59 59 'rsrc/css/application/dashboard/dashboard.css' => 'eb458607', 60 60 'rsrc/css/application/diff/inline-comment-summary.css' => '51efda3a', ··· 722 722 'phabricator-chatlog-css' => 'd295b020', 723 723 'phabricator-content-source-view-css' => '4b8b05d4', 724 724 'phabricator-core-css' => 'a76cefc9', 725 - 'phabricator-countdown-css' => '3791bb38', 725 + 'phabricator-countdown-css' => '3d1355ec', 726 726 'phabricator-dashboard-css' => 'eb458607', 727 727 'phabricator-drag-and-drop-file-upload' => '07de8873', 728 728 'phabricator-draggable-list' => 'a16ec1c6',
+11
src/applications/countdown/view/PhabricatorCountdownView.php
··· 56 56 javelin_tag('td', array('sigil' => 'phabricator-timer-seconds'), '-'), 57 57 ); 58 58 59 + $epoch = $countdown->getEpoch(); 60 + $launch_date = phabricator_datetime($epoch, $this->getUser()); 61 + $foot = phutil_tag( 62 + 'td', 63 + array( 64 + 'colspan' => '4', 65 + 'class' => 'phabricator-timer-foot', 66 + ), 67 + $launch_date); 68 + 59 69 $container = celerity_generate_unique_node_id(); 60 70 $content = phutil_tag( 61 71 'div', ··· 65 75 phutil_tag('table', array('class' => 'phabricator-timer-table'), array( 66 76 phutil_tag('tr', array(), $ths), 67 77 phutil_tag('tr', array(), $dashes), 78 + phutil_tag('tr', array(), $foot), 68 79 )), 69 80 )); 70 81
+22 -6
webroot/rsrc/css/application/countdown/timer.css
··· 24 24 } 25 25 26 26 .phabricator-timer-header { 27 - font-size: {$biggerfontsize}; 28 27 font-weight: bold; 29 - padding: 4px 8px; 28 + padding: 8px; 30 29 background: {$bluebackground}; 31 30 border-radius: 3px 3px 0 0; 32 - border-bottom: 1px solid {$lightblueborder}; 31 + } 32 + 33 + .phabricator-timer-header a { 34 + color: {$darkbluetext}; 35 + font-weight: normal; 33 36 } 34 37 35 38 .phabricator-timer-table { 36 39 width: 100%; 37 - margin: 8px 0; 40 + margin: 8px 0 0 0; 38 41 } 39 42 40 43 .phabricator-timer-table th { 41 44 text-align: center; 42 45 font-size: {$biggerfontsize}; 43 - color: {$greytext}; 46 + color: {$bluetext}; 44 47 width: 10%; 45 48 padding: 4px; 46 49 } ··· 49 52 padding: 4px; 50 53 text-align: center; 51 54 font-size: 36px; 55 + font-weight: bold; 52 56 overflow: hidden; 53 57 line-height: auto; 54 58 height: auto; 55 - line-height: 36px; 59 + line-height: 44px; 60 + } 61 + 62 + .phabricator-timer-table td.phabricator-timer-foot { 63 + font-size: {$normalfontsize}; 64 + line-height: 16px; 65 + border-top: 1px solid {$thinblueborder}; 66 + color: {$bluetext}; 67 + font-weight: normal; 68 + padding: 8px; 69 + border-bottom-right-radius: 3px; 70 + border-bottom-left-radius: 3px; 71 + text-align: center; 56 72 } 57 73 58 74 .phabricator-timer-table small {