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

Week day names in Calendar month view should be full names on desktop and short names on device

Summary: Ref T8186, Week day names in Calendar month view should be full names on desktop and short names on device

Test Plan: Open month view, desktop view should display Monday, Tuesday, etc. Shrink browser, days should be Mon, Tue, etc.

Reviewers: chad, epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin, epriestley

Maniphest Tasks: T8186

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

+42 -10
+2 -2
resources/celerity/map.php
··· 122 122 'rsrc/css/layout/phabricator-source-code-view.css' => '2ceee894', 123 123 'rsrc/css/phui/calendar/phui-calendar-day.css' => '3b4a65d8', 124 124 'rsrc/css/phui/calendar/phui-calendar-list.css' => '840baa8d', 125 - 'rsrc/css/phui/calendar/phui-calendar-month.css' => '450c37ea', 125 + 'rsrc/css/phui/calendar/phui-calendar-month.css' => '9fde32d1', 126 126 'rsrc/css/phui/calendar/phui-calendar.css' => '8345be98', 127 127 'rsrc/css/phui/phui-action-header-view.css' => '89c497e7', 128 128 'rsrc/css/phui/phui-action-list.css' => '4f4d09f2', ··· 763 763 'phui-calendar-css' => '8345be98', 764 764 'phui-calendar-day-css' => '3b4a65d8', 765 765 'phui-calendar-list-css' => '840baa8d', 766 - 'phui-calendar-month-css' => '450c37ea', 766 + 'phui-calendar-month-css' => '9fde32d1', 767 767 'phui-crumbs-view-css' => '594d719e', 768 768 'phui-document-view-css' => '94d5dcd8', 769 769 'phui-feed-story-css' => 'c9f3a0b5',
+27 -7
src/view/phui/calendar/PHUICalendarMonthView.php
··· 294 294 'tr', 295 295 array('class' => 'phui-calendar-day-of-week-header'), 296 296 array( 297 - phutil_tag('th', array(), pht('Sun')), 298 - phutil_tag('th', array(), pht('Mon')), 299 - phutil_tag('th', array(), pht('Tue')), 300 - phutil_tag('th', array(), pht('Wed')), 301 - phutil_tag('th', array(), pht('Thu')), 302 - phutil_tag('th', array(), pht('Fri')), 303 - phutil_tag('th', array(), pht('Sat')), 297 + $this->getDayHeader(pht('Sun'), pht('Sunday')), 298 + $this->getDayHeader(pht('Mon'), pht('Monday')), 299 + $this->getDayHeader(pht('Tue'), pht('Tuesday')), 300 + $this->getDayHeader(pht('Wed'), pht('Wednesday')), 301 + $this->getDayHeader(pht('Thu'), pht('Thursday')), 302 + $this->getDayHeader(pht('Fri'), pht('Friday')), 303 + $this->getDayHeader(pht('Sat'), pht('Saturday')), 304 304 )); 305 + } 306 + 307 + private function getDayHeader($short, $long) { 308 + $day = array(); 309 + $day[] = phutil_tag( 310 + 'span', 311 + array( 312 + 'class' => 'long-weekday-name', 313 + ), 314 + $long); 315 + $day[] = phutil_tag( 316 + 'span', 317 + array( 318 + 'class' => 'short-weekday-name', 319 + ), 320 + $short); 321 + return phutil_tag( 322 + 'th', 323 + array(), 324 + $day); 305 325 } 306 326 307 327 private function renderCalendarHeader(DateTime $date) {
+13 -1
webroot/rsrc/css/phui/calendar/phui-calendar-month.css
··· 10 10 11 11 tr.phui-calendar-day-of-week-header th { 12 12 text-align: center; 13 - font-size: 11px; 13 + font-size: 13px; 14 14 padding: 3px; 15 15 color: {$lightbluetext}; 16 16 background: {$lightgreybackground}; 17 + } 18 + 19 + .device tr.phui-calendar-day-of-week-header th .long-weekday-name { 20 + display: none; 21 + } 22 + 23 + tr.phui-calendar-day-of-week-header th .short-weekday-name { 24 + display: none; 25 + } 26 + 27 + .device tr.phui-calendar-day-of-week-header th .short-weekday-name { 28 + display: inline; 17 29 } 18 30 19 31 table.phui-calendar-view td {