1
0
Fork 0
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:
Luke Pulverenti 2016-10-02 00:31:47 -04:00
parent 9dcf14df27
commit af2e209ce4
20 changed files with 79 additions and 85 deletions

View file

@ -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 += "&nbsp;";
}
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 = '';