mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
password and admin icons on edit user page
This commit is contained in:
parent
a42f547c00
commit
58f8a27894
5 changed files with 12 additions and 6 deletions
BIN
dashboard-ui/css/images/userdata/administrator.png
Normal file
BIN
dashboard-ui/css/images/userdata/administrator.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.8 KiB |
BIN
dashboard-ui/css/images/userdata/password.png
Normal file
BIN
dashboard-ui/css/images/userdata/password.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
|
@ -33,7 +33,7 @@ body {
|
||||||
h1 {
|
h1 {
|
||||||
font-family: 'Segoe UI Light', 'Open Sans', Arial, Helvetica, sans-serif;
|
font-family: 'Segoe UI Light', 'Open Sans', Arial, Helvetica, sans-serif;
|
||||||
font-weight: 200;
|
font-weight: 200;
|
||||||
font-size: 28pt;
|
font-size: 32pt;
|
||||||
}
|
}
|
||||||
|
|
||||||
.toolsSidebar h1 {
|
.toolsSidebar h1 {
|
||||||
|
@ -158,7 +158,7 @@ h1 .imageLink {
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 .imageLink img {
|
h1 .imageLink img {
|
||||||
height: 28px;
|
height: 32px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.imageLink:hover {
|
.imageLink:hover {
|
||||||
|
@ -907,7 +907,6 @@ progress {
|
||||||
margin: -.7em .5em auto 0;
|
margin: -.7em .5em auto 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#itemFav img {
|
.userProfileIcon {
|
||||||
width: 64px;
|
width: 36px;
|
||||||
cursor: pointer;
|
}
|
||||||
}
|
|
|
@ -19,6 +19,7 @@
|
||||||
<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>
|
||||||
|
|
|
@ -85,6 +85,12 @@
|
||||||
$('#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();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue