Display date of contributions

This commit is contained in:
Benjamin Renard 2014-01-25 23:31:04 +01:00
parent 2bbf0e3ae6
commit 52f4d37b88
2 changed files with 7 additions and 1 deletions

View file

@ -167,7 +167,7 @@ show_contributions=function(group,contributor_email) {
sum=0; sum=0;
for (idx in contributions) { for (idx in contributions) {
col_actions='<td><div class="btn-group" data-uuid="'+contributions[idx].uuid+'"><button type="button" class="btn btn-default contribution_edit_btn"><span class="glyphicon glyphicon-edit"></span></button><button type="button" class="btn btn-default contribution_delete_btn"><span class="glyphicon glyphicon-trash"></span></button></div></td>'; col_actions='<td><div class="btn-group" data-uuid="'+contributions[idx].uuid+'"><button type="button" class="btn btn-default contribution_edit_btn"><span class="glyphicon glyphicon-edit"></span></button><button type="button" class="btn btn-default contribution_delete_btn"><span class="glyphicon glyphicon-trash"></span></button></div></td>';
tbody.append('<tr><td>'+contributions[idx].getTitle()+'</td><td>'+contributions[idx].cost.toFixed(2)+' €</td>'+col_actions+'</tr>'); tbody.append('<tr><td>'+contributions[idx].getTitle()+'</td><td>'+contributions[idx].cost.toFixed(2)+' €<br/><span class="date">'+moment(contributions[idx].date).format('DD/MM/YYYY')+'</span></td>'+col_actions+'</tr>');
sum+=contributions[idx].cost; sum+=contributions[idx].cost;
} }
total.html(sum.toFixed(2)+' €'); total.html(sum.toFixed(2)+' €');

View file

@ -52,6 +52,12 @@ body{
#view-group h1 { #view-group h1 {
text-transform: capitalize; text-transform: capitalize;
} }
#view-group span.date {
color: #999;
font-size: 0.8em;
font-style: italic;
}
</style> </style>
<body> <body>
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation"> <div class="navbar navbar-inverse navbar-fixed-top" role="navigation">