Benjamin Renard commited on 2014-01-25 22:31:04
Showing 2 changed files, with 7 additions and 1 deletions.
... | ... |
@@ -167,7 +167,7 @@ show_contributions=function(group,contributor_email) { |
167 | 167 |
sum=0; |
168 | 168 |
for (idx in contributions) { |
169 | 169 |
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>'; |
170 |
- tbody.append('<tr><td>'+contributions[idx].getTitle()+'</td><td>'+contributions[idx].cost.toFixed(2)+' €</td>'+col_actions+'</tr>'); |
|
170 |
+ 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>'); |
|
171 | 171 |
sum+=contributions[idx].cost; |
172 | 172 |
} |
173 | 173 |
total.html(sum.toFixed(2)+' €'); |
... | ... |
@@ -52,6 +52,12 @@ body{ |
52 | 52 |
#view-group h1 { |
53 | 53 |
text-transform: capitalize; |
54 | 54 |
} |
55 |
+ |
|
56 |
+#view-group span.date { |
|
57 |
+ color: #999; |
|
58 |
+ font-size: 0.8em; |
|
59 |
+ font-style: italic; |
|
60 |
+} |
|
55 | 61 |
</style> |
56 | 62 |
<body> |
57 | 63 |
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation"> |
58 | 64 |