mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 10:58:20 -07:00
add tagline to editing interface
This commit is contained in:
parent
eab5e1812e
commit
0a3876a9b1
@ -99,7 +99,7 @@
|
||||
}
|
||||
|
||||
.videoTopControlsLogo img {
|
||||
max-height: 40px;
|
||||
max-height: 42px;
|
||||
max-width: 200px;
|
||||
}
|
||||
|
||||
|
@ -27,9 +27,11 @@
|
||||
.posterItemOverlayInner {
|
||||
padding: 11px 12px 10px;
|
||||
}
|
||||
.posterItemOverlayInner button:last-child {
|
||||
margin-right:0!important;
|
||||
}
|
||||
|
||||
.posterItemOverlayInner button:last-child {
|
||||
margin-right: 0!important;
|
||||
}
|
||||
|
||||
.posterItemOverlayInner p {
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
@ -139,6 +141,7 @@
|
||||
|
||||
.myLibraryPosterItem {
|
||||
width: 42%;
|
||||
min-width: 50px;
|
||||
}
|
||||
|
||||
.myLibraryPosterItem .posterItemImage {
|
||||
@ -388,6 +391,8 @@
|
||||
|
||||
.myLibraryPosterItem {
|
||||
width: 30%;
|
||||
/* Specify a min width just in case the container doesn't have a width */
|
||||
min-width: 160px;
|
||||
}
|
||||
}
|
||||
|
||||
@ -406,6 +411,8 @@
|
||||
|
||||
.myLibraryPosterItem {
|
||||
width: 23%;
|
||||
/* Specify a min width just in case the container doesn't have a width */
|
||||
min-width: 220px;
|
||||
}
|
||||
|
||||
.smallBackdropPosterItem {
|
||||
@ -444,6 +451,8 @@
|
||||
|
||||
.myLibraryPosterItem {
|
||||
width: 19%;
|
||||
/* Specify a min width just in case the container doesn't have a width */
|
||||
min-width: 220px;
|
||||
}
|
||||
|
||||
.backdropPosterItem {
|
||||
@ -484,5 +493,7 @@
|
||||
|
||||
.myLibraryPosterItem {
|
||||
width: 16%;
|
||||
/* Specify a min width just in case the container doesn't have a width */
|
||||
min-width: 220px;
|
||||
}
|
||||
}
|
||||
|
@ -127,6 +127,10 @@
|
||||
<label for="txtHomePageUrl">Website:</label>
|
||||
<input type="url" id="txtHomePageUrl" data-mini="true" />
|
||||
</div>
|
||||
<div data-role="fieldcontain" id="fldTagline" style="display: none;">
|
||||
<label for="txtTagline">Tagline:</label>
|
||||
<input type="text" id="txtTagline" data-mini="true" />
|
||||
</div>
|
||||
<div data-role="fieldcontain">
|
||||
<label for="txtOverview">Overview:</label>
|
||||
<textarea id="txtOverview" data-mini="true"></textarea>
|
||||
|
@ -88,6 +88,12 @@
|
||||
$('#fldShortOverview', page).hide();
|
||||
}
|
||||
|
||||
if (item.MediaType == "Video" && item.Type != "Episode") {
|
||||
$('#fldTagline', page).show();
|
||||
} else {
|
||||
$('#fldTagline', page).hide();
|
||||
}
|
||||
|
||||
Dashboard.getCurrentUser().done(function (user) {
|
||||
|
||||
if (user.Configuration.EnableContentDeletion &&
|
||||
@ -458,6 +464,7 @@
|
||||
$('#txtName', page).val(item.Name || "");
|
||||
$('#txtOverview', page).val(item.Overview || "");
|
||||
$('#txtShortOverview', page).val(item.ShortOverview || "");
|
||||
$('#txtTagline', page).val((item.Taglines.length ? item.Taglines[0] : ''));
|
||||
$('#txtSortName', page).val(item.ForcedSortName || "");
|
||||
$('#txtDisplayMediaType', page).val(item.DisplayMediaType || "");
|
||||
$('#txtCommunityRating', page).val(item.CommunityRating || "");
|
||||
@ -918,6 +925,9 @@
|
||||
item.RunTimeTicks = seriesRuntime ? (seriesRuntime * 600000000) : null;
|
||||
}
|
||||
|
||||
var tagline = $('#txtTagline', form).val();
|
||||
item.Taglines = tagline ? [tagline] : [];
|
||||
|
||||
ApiClient.updateItem(item).done(function () {
|
||||
|
||||
Dashboard.alert('Item saved.');
|
||||
|
@ -105,7 +105,7 @@
|
||||
var html = '<br/>';
|
||||
|
||||
if (index) {
|
||||
html += '<h1 class="listHeader">' + Globalize.translate('HeaderMyLibrary') + '</h1>';
|
||||
html += '<h1 class="listHeader">' + Globalize.translate('HeaderMyViews') + '</h1>';
|
||||
}
|
||||
html += '<div>';
|
||||
html += createMediaLinks({
|
||||
|
@ -298,7 +298,7 @@
|
||||
|
||||
url = ApiClient.getScaledImageUrl(state.NowPlayingItem.LogoItemId, {
|
||||
type: "Logo",
|
||||
height: 40,
|
||||
height: 42,
|
||||
tag: state.NowPlayingItem.LogoImageTag
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user