From 52f4d37b88492d378ecc238a6c4ff37600570d4e Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Sat, 25 Jan 2014 23:31:04 +0100 Subject: [PATCH] Display date of contributions --- inc/myco.js | 2 +- index.html | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/inc/myco.js b/inc/myco.js index 88c0531..092a873 100644 --- a/inc/myco.js +++ b/inc/myco.js @@ -167,7 +167,7 @@ show_contributions=function(group,contributor_email) { sum=0; for (idx in contributions) { col_actions='
'; - tbody.append(''+contributions[idx].getTitle()+''+contributions[idx].cost.toFixed(2)+' €'+col_actions+''); + tbody.append(''+contributions[idx].getTitle()+''+contributions[idx].cost.toFixed(2)+' €
'+moment(contributions[idx].date).format('DD/MM/YYYY')+''+col_actions+''); sum+=contributions[idx].cost; } total.html(sum.toFixed(2)+' €'); diff --git a/index.html b/index.html index 5007e67..6141ea1 100644 --- a/index.html +++ b/index.html @@ -52,6 +52,12 @@ body{ #view-group h1 { text-transform: capitalize; } + +#view-group span.date { + color: #999; + font-size: 0.8em; + font-style: italic; +}