You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by hu...@apache.org on 2021/09/21 19:15:06 UTC
[incubator-ponymail-foal] 02/02: Regen JS
This is an automated email from the ASF dual-hosted git repository.
humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
commit a4e8b2f39d9168b89e6f84afee37745e96bbe3ce
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Tue Sep 21 14:14:54 2021 -0500
Regen JS
---
webui/js/ponymail.js | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/webui/js/ponymail.js b/webui/js/ponymail.js
index 843bec6..6062fbb 100644
--- a/webui/js/ponymail.js
+++ b/webui/js/ponymail.js
@@ -3894,6 +3894,13 @@ function renderCalendar(FY, FM, LY, LM, activity = null) {
if (!c_active) {
mdiv.setAttribute("class", "sidebar_calendar_month_nothing");
mdiv.setAttribute("onclick", "javascript:void(0);");
+ } else if (activity && activity[ym]) {
+ let count = activity[ym] * 127;
+ if (count >= 1000) {
+ count = Math.floor(count/1000.0) + "k+";
+ }
+ count = count.toString();
+ mdiv.inject(new HTML('span', {class: 'calendar_count'}, count));
}
ydiv.inject(mdiv);
}