1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

moved user detail icons to the right place.

This commit is contained in:
Techywarrior 2013-03-29 19:39:36 -07:00
parent 58f8a27894
commit d28b5cc2b5
3 changed files with 5 additions and 9 deletions

View file

@ -19,7 +19,6 @@
<li id="fldUserName"> <li id="fldUserName">
<label for="txtUserName">Name: </label> <label for="txtUserName">Name: </label>
<input id="txtUserName" name="txtUserName" required="required" type="text" /> <input id="txtUserName" name="txtUserName" required="required" type="text" />
<div id="fldIcons"></div>
</li> </li>
<li id="fldMaxParentalRating" style="display: none;"> <li id="fldMaxParentalRating" style="display: none;">
<label for="selectMaxParentalRating">Max parental rating:</label> <label for="selectMaxParentalRating">Max parental rating:</label>

View file

@ -85,12 +85,6 @@
$('#chkForcedSubtitlesOnly', page).checked(user.Configuration.UseForcedSubtitlesOnly || false).checkboxradio("refresh"); $('#chkForcedSubtitlesOnly', page).checked(user.Configuration.UseForcedSubtitlesOnly || false).checkboxradio("refresh");
$('#chkIsAdmin', page).checked(user.Configuration.IsAdministrator || false).checkboxradio("refresh"); $('#chkIsAdmin', page).checked(user.Configuration.IsAdministrator || false).checkboxradio("refresh");
var userProfileIcons = '';
if (user.Configuration.HasPassword) userProfileIcons += '<img src="css/images/userdata/password.png" alt="Password" title="Password" class="userProfileIcon" />';
if (user.Configuration.IsAdministrator) userProfileIcons += '<img src="css/images/userdata/administrator.png" alt="Administrator" title="Administrator" class="userProfileIcon" />';
$('#fldIcons', page).html(userProfileIcons);
Dashboard.hideLoadingMsg(); Dashboard.hideLoadingMsg();
}, },

View file

@ -36,9 +36,12 @@
html += "<img src='css/images/userflyoutdefault.png' />"; html += "<img src='css/images/userflyoutdefault.png' />";
} }
html += "<h3>" + user.Name + "</h3>"; html += "<h3>" + user.Name;
html += "</a>"; if (user.Configuration.HasPassword) html += '<img src="css/images/userdata/password.png" alt="Password" title="Password" class="userProfileIcon" />';
if (user.Configuration.IsAdministrator) html += '<img src="css/images/userdata/administrator.png" alt="Administrator" title="Administrator" class="userProfileIcon" />';
html += "</h3></a>";
html += "<a onclick='UserProfilesPage.deleteUser(this);' data-userid='" + user.Id + "' data-username='" + user.Name + "' href='#'>Delete</a>"; html += "<a onclick='UserProfilesPage.deleteUser(this);' data-userid='" + user.Id + "' data-username='" + user.Name + "' href='#'>Delete</a>";