mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 03:18:19 -07:00
display news date
This commit is contained in:
parent
b932873b1d
commit
d923a125e2
@ -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) {
|
||||
|
@ -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>';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user