mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
display news date
This commit is contained in:
parent
b932873b1d
commit
d923a125e2
2 changed files with 11 additions and 1 deletions
|
@ -803,6 +803,11 @@ progress {
|
||||||
text-decoration: none !important;
|
text-decoration: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.newsItemDate {
|
||||||
|
margin: .25em 0;
|
||||||
|
color: green;
|
||||||
|
}
|
||||||
|
|
||||||
@media all and (max-width: 1440px) {
|
@media all and (max-width: 1440px) {
|
||||||
|
|
||||||
.dashboardHomeRightColumn {
|
.dashboardHomeRightColumn {
|
||||||
|
@ -812,6 +817,7 @@ progress {
|
||||||
|
|
||||||
.dashboardContent {
|
.dashboardContent {
|
||||||
max-width: 1000px;
|
max-width: 1000px;
|
||||||
|
margin-top: -10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media all and (min-width: 1440px) {
|
@media all and (min-width: 1440px) {
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
|
|
||||||
ApiClient.getProductNews({
|
ApiClient.getProductNews({
|
||||||
|
|
||||||
limit: 5
|
limit: 6
|
||||||
|
|
||||||
}).done(function (result) {
|
}).done(function (result) {
|
||||||
|
|
||||||
|
@ -39,6 +39,10 @@
|
||||||
|
|
||||||
itemHtml += '<div class="newsItem">';
|
itemHtml += '<div class="newsItem">';
|
||||||
itemHtml += '<a class="newsItemHeader" href="' + item.Link + '" target="_blank">' + item.Title + '</a>';
|
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 class="newsItemDescription">' + item.Description + '</div>';
|
||||||
itemHtml += '</div>';
|
itemHtml += '</div>';
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue