Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15400083
D13536.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D13536.id.diff
View Options
diff --git a/resources/celerity/map.php b/resources/celerity/map.php
--- a/resources/celerity/map.php
+++ b/resources/celerity/map.php
@@ -123,7 +123,7 @@
'rsrc/css/layout/phabricator-source-code-view.css' => '2ceee894',
'rsrc/css/phui/calendar/phui-calendar-day.css' => 'd1cf6f93',
'rsrc/css/phui/calendar/phui-calendar-list.css' => 'c1c7f338',
- 'rsrc/css/phui/calendar/phui-calendar-month.css' => '476be7e0',
+ 'rsrc/css/phui/calendar/phui-calendar-month.css' => '37956f68',
'rsrc/css/phui/calendar/phui-calendar.css' => 'ccabe893',
'rsrc/css/phui/phui-action-header-view.css' => '89c497e7',
'rsrc/css/phui/phui-action-list.css' => '4f4d09f2',
@@ -773,7 +773,7 @@
'phui-calendar-css' => 'ccabe893',
'phui-calendar-day-css' => 'd1cf6f93',
'phui-calendar-list-css' => 'c1c7f338',
- 'phui-calendar-month-css' => '476be7e0',
+ 'phui-calendar-month-css' => '37956f68',
'phui-crumbs-view-css' => '594d719e',
'phui-document-view-css' => '94d5dcd8',
'phui-feed-story-css' => 'c9f3a0b5',
diff --git a/src/view/phui/calendar/PHUICalendarMonthView.php b/src/view/phui/calendar/PHUICalendarMonthView.php
--- a/src/view/phui/calendar/PHUICalendarMonthView.php
+++ b/src/view/phui/calendar/PHUICalendarMonthView.php
@@ -12,6 +12,11 @@
private $image;
private $error;
+
+ public function getMaxDailyEventCount() {
+ return 15;
+ }
+
public function setBrowseURI($browse_uri) {
$this->browseURI = $browse_uri;
return $this;
@@ -89,7 +94,7 @@
}
}
- $max_daily = 15;
+ $max_daily = $this->getMaxDailyEventCount();
$counter = 0;
$list = new PHUICalendarListView();
@@ -187,6 +192,14 @@
$event_count_badge = $this->getEventCountBadge($count, $viewer_is_invited);
$cell_day_secret_link = $this->getHiddenDayLink($uri, $max_count, 125);
+ $view_more_link = null;
+ if ($count >= $this->getMaxDailyEventCount()) {
+ $view_more_link = phutil_tag(
+ 'a',
+ array('class' => 'phui-calendar-month-get-more'),
+ pht('View More'));
+ }
+
$cell_data_div = phutil_tag(
'div',
array(
@@ -196,6 +209,7 @@
$cell_day_secret_link,
$event_count_badge,
$list,
+ $view_more_link,
));
return phutil_tag(
@@ -595,4 +609,5 @@
return $date;
}
+
}
diff --git a/webroot/rsrc/css/phui/calendar/phui-calendar-month.css b/webroot/rsrc/css/phui/calendar/phui-calendar-month.css
--- a/webroot/rsrc/css/phui/calendar/phui-calendar-month.css
+++ b/webroot/rsrc/css/phui/calendar/phui-calendar-month.css
@@ -210,3 +210,10 @@
color: {$lightgreytext};
text-align: right;
}
+
+.phui-calendar-month-get-more {
+ position: absolute;
+ height: 18px;
+ padding: 1px;
+ color: {$lightgreytext};
+}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mar 18 2025, 9:36 AM (4 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7706712
Default Alt Text
D13536.id.diff (2 KB)
Attached To
Mode
D13536: Added a "View More" link to the day cell of Calendar monthly view for days with 15 or more events
Attached
Detach File
Event Timeline
Log In to Comment