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

add tagline to editing interface

This commit is contained in:
Luke Pulverenti 2014-06-28 22:30:20 -04:00
parent eab5e1812e
commit 0a3876a9b1
6 changed files with 31 additions and 6 deletions

View file

@ -99,7 +99,7 @@
} }
.videoTopControlsLogo img { .videoTopControlsLogo img {
max-height: 40px; max-height: 42px;
max-width: 200px; max-width: 200px;
} }

View file

@ -27,9 +27,11 @@
.posterItemOverlayInner { .posterItemOverlayInner {
padding: 11px 12px 10px; padding: 11px 12px 10px;
} }
.posterItemOverlayInner button:last-child {
margin-right:0!important; .posterItemOverlayInner button:last-child {
} margin-right: 0!important;
}
.posterItemOverlayInner p { .posterItemOverlayInner p {
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
@ -139,6 +141,7 @@
.myLibraryPosterItem { .myLibraryPosterItem {
width: 42%; width: 42%;
min-width: 50px;
} }
.myLibraryPosterItem .posterItemImage { .myLibraryPosterItem .posterItemImage {
@ -388,6 +391,8 @@
.myLibraryPosterItem { .myLibraryPosterItem {
width: 30%; width: 30%;
/* Specify a min width just in case the container doesn't have a width */
min-width: 160px;
} }
} }
@ -406,6 +411,8 @@
.myLibraryPosterItem { .myLibraryPosterItem {
width: 23%; width: 23%;
/* Specify a min width just in case the container doesn't have a width */
min-width: 220px;
} }
.smallBackdropPosterItem { .smallBackdropPosterItem {
@ -444,6 +451,8 @@
.myLibraryPosterItem { .myLibraryPosterItem {
width: 19%; width: 19%;
/* Specify a min width just in case the container doesn't have a width */
min-width: 220px;
} }
.backdropPosterItem { .backdropPosterItem {
@ -484,5 +493,7 @@
.myLibraryPosterItem { .myLibraryPosterItem {
width: 16%; width: 16%;
/* Specify a min width just in case the container doesn't have a width */
min-width: 220px;
} }
} }

View file

@ -127,6 +127,10 @@
<label for="txtHomePageUrl">Website:</label> <label for="txtHomePageUrl">Website:</label>
<input type="url" id="txtHomePageUrl" data-mini="true" /> <input type="url" id="txtHomePageUrl" data-mini="true" />
</div> </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"> <div data-role="fieldcontain">
<label for="txtOverview">Overview:</label> <label for="txtOverview">Overview:</label>
<textarea id="txtOverview" data-mini="true"></textarea> <textarea id="txtOverview" data-mini="true"></textarea>

View file

@ -88,6 +88,12 @@
$('#fldShortOverview', page).hide(); $('#fldShortOverview', page).hide();
} }
if (item.MediaType == "Video" && item.Type != "Episode") {
$('#fldTagline', page).show();
} else {
$('#fldTagline', page).hide();
}
Dashboard.getCurrentUser().done(function (user) { Dashboard.getCurrentUser().done(function (user) {
if (user.Configuration.EnableContentDeletion && if (user.Configuration.EnableContentDeletion &&
@ -458,6 +464,7 @@
$('#txtName', page).val(item.Name || ""); $('#txtName', page).val(item.Name || "");
$('#txtOverview', page).val(item.Overview || ""); $('#txtOverview', page).val(item.Overview || "");
$('#txtShortOverview', page).val(item.ShortOverview || ""); $('#txtShortOverview', page).val(item.ShortOverview || "");
$('#txtTagline', page).val((item.Taglines.length ? item.Taglines[0] : ''));
$('#txtSortName', page).val(item.ForcedSortName || ""); $('#txtSortName', page).val(item.ForcedSortName || "");
$('#txtDisplayMediaType', page).val(item.DisplayMediaType || ""); $('#txtDisplayMediaType', page).val(item.DisplayMediaType || "");
$('#txtCommunityRating', page).val(item.CommunityRating || ""); $('#txtCommunityRating', page).val(item.CommunityRating || "");
@ -918,6 +925,9 @@
item.RunTimeTicks = seriesRuntime ? (seriesRuntime * 600000000) : null; item.RunTimeTicks = seriesRuntime ? (seriesRuntime * 600000000) : null;
} }
var tagline = $('#txtTagline', form).val();
item.Taglines = tagline ? [tagline] : [];
ApiClient.updateItem(item).done(function () { ApiClient.updateItem(item).done(function () {
Dashboard.alert('Item saved.'); Dashboard.alert('Item saved.');

View file

@ -105,7 +105,7 @@
var html = '<br/>'; var html = '<br/>';
if (index) { if (index) {
html += '<h1 class="listHeader">' + Globalize.translate('HeaderMyLibrary') + '</h1>'; html += '<h1 class="listHeader">' + Globalize.translate('HeaderMyViews') + '</h1>';
} }
html += '<div>'; html += '<div>';
html += createMediaLinks({ html += createMediaLinks({

View file

@ -298,7 +298,7 @@
url = ApiClient.getScaledImageUrl(state.NowPlayingItem.LogoItemId, { url = ApiClient.getScaledImageUrl(state.NowPlayingItem.LogoItemId, {
type: "Logo", type: "Logo",
height: 40, height: 42,
tag: state.NowPlayingItem.LogoImageTag tag: state.NowPlayingItem.LogoImageTag
}); });