diff --git a/templates/user/user-about.html b/templates/user/user-about.html
index c00288851f..13f4142821 100644
--- a/templates/user/user-about.html
+++ b/templates/user/user-about.html
@@ -56,37 +56,37 @@
- {{ _('Mon') }}
+ {{ _('Sun') }}
|
- {{ _('Tues') }}
+ {{ _('Mon') }}
|
- {{ _('Wed') }}
+ {{ _('Tues') }}
|
- {{ _('Thurs') }}
+ {{ _('Wed') }}
|
- {{ _('Fri') }}
+ {{ _('Thurs') }}
|
- {{ _('Sat') }}
+ {{ _('Fri') }}
|
- {{ _('Sun') }}
+ {{ _('Sat') }}
|
@@ -172,7 +172,7 @@ Rating history
function draw_contribution(year) {
$div.find('#submission-activity-table td').remove();
$div.find('#year').attr('data-year', year);
- $div.find('#prev-year-action').css('display', year > metadata.min_year ? '' : 'none');
+ $div.find('#prev-year-action').css('display', year > (metadata.min_year || current_year) ? '' : 'none');
$div.find('#next-year-action').css('display', year < current_year ? '' : 'none');
var current_weekday = 0;
var start_day = new Date(year, 0, 1)
@@ -205,6 +205,12 @@ Rating history
ngettext("%(cnt)d submission in the last year", "%(cnt)d submissions in the last year", sum_activity)
.replace("%(cnt)d", sum_activity)
)
+ } else {
+ $('#submission-activity-header').text(
+ ngettext("%(cnt)d submission in %(year)d", "%(cnt)d submissions in %(year)d", sum_activity)
+ .replace("%(cnt)d", sum_activity)
+ .replace("%(year)d", year)
+ )
}
var max_activity = Math.max.apply(null, days.map(obj => obj.activity));