diff options
author | Phil Hughes <me@iamphill.com> | 2016-07-04 14:38:01 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-07-04 14:38:01 +0300 |
commit | a445630ff353bdd9c5be24ccfd3380c71d3901d1 (patch) | |
tree | 421f4643c89b122905b565292b42808a8e85338e /app/assets/javascripts/users | |
parent | 021b6aef94b3398ab5603b4c11afd4c6d8432795 (diff) |
Added day name to contributions calendar
Closes #19367
Diffstat (limited to 'app/assets/javascripts/users')
-rw-r--r-- | app/assets/javascripts/users/calendar.js.coffee | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/assets/javascripts/users/calendar.js.coffee b/app/assets/javascripts/users/calendar.js.coffee index c081f023b04..c49ba5186f2 100644 --- a/app/assets/javascripts/users/calendar.js.coffee +++ b/app/assets/javascripts/users/calendar.js.coffee @@ -87,14 +87,15 @@ class @Calendar .attr 'width', @daySize .attr 'height', @daySize .attr 'title', (stamp) => + date = new Date(stamp.date) contribText = 'No contributions' if stamp.count > 0 contribText = "#{stamp.count} contribution#{if stamp.count > 1 then 's' else ''}" - date = dateFormat(stamp.date, 'mmm d, yyyy') + dateText = dateFormat(date, 'mmm d, yyyy') - "#{contribText}<br />#{date}" + "#{contribText}<br />#{gl.utils.getDayName(date)} #{dateText}" .attr 'class', 'user-contrib-cell js-tooltip' .attr 'fill', (stamp) => if stamp.count isnt 0 |