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

improve user view images

This commit is contained in:
Luke Pulverenti 2014-10-29 18:01:02 -04:00
parent 132a02a48d
commit 6b72ea474c
19 changed files with 325 additions and 224 deletions

View file

@ -15,17 +15,23 @@
Dashboard.setPageTitle(user.Name);
var imageUrl;
if (user.PrimaryImageTag) {
var imageUrl = ApiClient.getUserImageUrl(user.Id, {
imageUrl = ApiClient.getUserImageUrl(user.Id, {
height: 200,
tag: user.PrimaryImageTag,
type: "Primary"
});
$('#fldImage', page).show().html('').html("<img width='140px' src='" + imageUrl + "' />");
} else {
imageUrl = "css/images/logindefault.png";
}
$('#fldImage', page).show().html('').html("<img width='140px' src='" + imageUrl + "' />");
if (user.ConnectLinkType == 'Guest') {
$('.newImageForm', page).hide();
@ -40,10 +46,9 @@
$('.connectMessage', page).hide();
} else {
$('.newImageSection', page).show();
$('#fldImage', page).hide().html('');
$('.newImageForm', page).show();
$('#btnDeleteImage', page).hide();
$('#headerUploadNewImage', page).hide();
$('#headerUploadNewImage', page).show();
$('.connectMessage', page).hide();
}