display news date

This commit is contained in:
Luke Pulverenti 2014-01-18 17:47:44 -05:00
parent b932873b1d
commit d923a125e2
2 changed files with 11 additions and 1 deletions

View File

@ -803,6 +803,11 @@ progress {
text-decoration: none !important;
}
.newsItemDate {
margin: .25em 0;
color: green;
}
@media all and (max-width: 1440px) {
.dashboardHomeRightColumn {
@ -812,6 +817,7 @@ progress {
.dashboardContent {
max-width: 1000px;
margin-top: -10px;
}
@media all and (min-width: 1440px) {

View File

@ -29,7 +29,7 @@
ApiClient.getProductNews({
limit: 5
limit: 6
}).done(function (result) {
@ -39,6 +39,10 @@
itemHtml += '<div class="newsItem">';
itemHtml += '<a class="newsItemHeader" href="' + item.Link + '" target="_blank">' + item.Title + '</a>';
var date = parseISO8601Date(item.Date, { toLocal: true });
itemHtml += '<div class="newsItemDate">' + date.toLocaleDateString() + '</div>';
itemHtml += '<div class="newsItemDescription">' + item.Description + '</div>';
itemHtml += '</div>';