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

Add week numbers to Calendar month view.

Summary: Closes T8184, Add week numbers to Calendar month view.

Test Plan: Calendar month view should now show week numbers, incrementing on Mondays, regardless of week start day.

Reviewers: chad, #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: Korvin, epriestley

Maniphest Tasks: T8184

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

+23 -2
+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' => 'a6993b38', 125 + 'rsrc/css/phui/calendar/phui-calendar-month.css' => '5b213ea0', 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' => 'a6993b38', 766 + 'phui-calendar-month-css' => '5b213ea0', 767 767 'phui-crumbs-view-css' => '594d719e', 768 768 'phui-document-view-css' => '94d5dcd8', 769 769 'phui-feed-story-css' => 'c9f3a0b5',
+12
src/view/phui/calendar/PHUICalendarMonthView.php
··· 189 189 $class = $event_list['class']; 190 190 $date = $event_list['date']; 191 191 $cell_day_secret_link = null; 192 + $week_number = null; 192 193 193 194 if ($date) { 194 195 $uri = $event_list['uri']; ··· 201 202 'href' => $uri, 202 203 ), 203 204 $date->format('j')); 205 + 206 + if ($date->format('w') == 1) { 207 + $week_number = phutil_tag( 208 + 'a', 209 + array( 210 + 'class' => 'phui-calendar-week-number', 211 + 'href' => $uri, 212 + ), 213 + $date->format('W')); 214 + } 204 215 } else { 205 216 $cell_day = null; 206 217 } ··· 234 245 ), 235 246 array( 236 247 $cell_day_secret_link, 248 + $week_number, 237 249 $cell_day, 238 250 $today_slot, 239 251 ));
+9
webroot/rsrc/css/phui/calendar/phui-calendar-month.css
··· 94 94 color: {$green}; 95 95 } 96 96 97 + table.phui-calendar-view a.phui-calendar-week-number { 98 + color: {$lightgreyborder}; 99 + padding: 4px; 100 + display: inline-block; 101 + min-width: 16px; 102 + text-align: center; 103 + float: left; 104 + } 105 + 97 106 table.phui-calendar-view a.phui-calendar-date-number { 98 107 color: {$lightgreytext}; 99 108 padding: 4px;