mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
move more metadata settings to per library
This commit is contained in:
parent
9dcf14df27
commit
af2e209ce4
20 changed files with 79 additions and 85 deletions
|
@ -1,4 +1,4 @@
|
|||
define(['jQuery', 'paper-icon-button-light', 'cardStyle'], function ($) {
|
||||
define(['jQuery', 'humanedate', 'paper-icon-button-light', 'cardStyle'], function ($) {
|
||||
|
||||
function deleteUser(page, id) {
|
||||
|
||||
|
@ -152,6 +152,16 @@
|
|||
html += user.Name;
|
||||
html += "</div>";
|
||||
|
||||
html += '<div class="cardText cardText-secondary">';
|
||||
var lastSeen = getLastSeenText(user.LastActivityDate);
|
||||
if (lastSeen != "") {
|
||||
html += lastSeen;
|
||||
}
|
||||
else {
|
||||
html += " ";
|
||||
}
|
||||
html += '</div>';
|
||||
|
||||
// cardFooter
|
||||
html += "</div>";
|
||||
|
||||
|
@ -164,6 +174,15 @@
|
|||
return html;
|
||||
}
|
||||
|
||||
function getLastSeenText(lastActivityDate) {
|
||||
|
||||
if (!lastActivityDate) {
|
||||
return "";
|
||||
}
|
||||
|
||||
return "Last seen " + humane_date(lastActivityDate);
|
||||
}
|
||||
|
||||
function getUserSectionHtml(users, addConnectIndicator) {
|
||||
|
||||
var html = '';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue