mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update app buttons
This commit is contained in:
parent
f188ee8847
commit
e2384f3087
10 changed files with 46 additions and 22 deletions
Binary file not shown.
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 42 KiB |
Binary file not shown.
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 10 KiB |
|
@ -416,7 +416,7 @@ h1 .imageLink {
|
||||||
}
|
}
|
||||||
|
|
||||||
.appLinks img {
|
.appLinks img {
|
||||||
height: 32px;
|
height: 36px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.activeDevicesCollapsible .ui-collapsible-content {
|
.activeDevicesCollapsible .ui-collapsible-content {
|
||||||
|
|
|
@ -16,9 +16,9 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="dashboardContent">
|
<div class="dashboardContent">
|
||||||
<div class="ui-bar-a welcomeMessage" style="display: none; padding: 2em; border-radius: 10px; margin: 2em 0; font-weight: normal; max-width: 800px;">
|
<div class="ui-bar-a welcomeMessage" style="display: none; padding: 2em; border-radius: 10px; margin: 2em 0; font-weight: normal; max-width: 800px;">
|
||||||
<h1 style="margin-top: 0;">${HeaderWelcomeToMediaBrowserServerDashboard}</h1>
|
<h1 style="margin-top: 0;" class="tourHeader"></h1>
|
||||||
<p>
|
<p>
|
||||||
<button class="btnTakeTour" type="button" data-icon="arrow-r" data-iconpos="right">${ButtonTakeTheTour}</button>
|
<button class="btnTakeTour" type="button" data-icon="arrow-r" data-iconpos="right"><span class="tourButtonText"></span></button>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -120,9 +120,7 @@
|
||||||
<div id="contribute" style="margin-top: 2em; display: none;">
|
<div id="contribute" style="margin-top: 2em; display: none;">
|
||||||
<h2 style="margin: 0 0 .35em;">${HeaderHelpImproveMediaBrowser}</h2>
|
<h2 style="margin: 0 0 .35em;">${HeaderHelpImproveMediaBrowser}</h2>
|
||||||
<div>
|
<div>
|
||||||
<a data-role="button" data-icon="mail" data-mini="true" href="supporter.html">
|
<a data-role="button" data-icon="mail" data-mini="true" href="supporter.html">${ButtonDonate}</a>
|
||||||
<img src="css/images/supporter/donatepaypal.png" />
|
|
||||||
</a>
|
|
||||||
<a href="https://github.com/MediaBrowser/MediaBrowser/wiki" data-role="button" target="_blank" data-icon="user" data-mini="true">Join the Development Team</a>
|
<a href="https://github.com/MediaBrowser/MediaBrowser/wiki" data-role="button" target="_blank" data-icon="user" data-mini="true">Join the Development Team</a>
|
||||||
|
|
||||||
<p class="appLinks" style="padding-left: 5px;">
|
<p class="appLinks" style="padding-left: 5px;">
|
||||||
|
|
|
@ -17,9 +17,9 @@
|
||||||
<div data-role="content">
|
<div data-role="content">
|
||||||
|
|
||||||
<div class="ui-bar-b readOnlyContent welcomeMessage" style="display: none; padding: 2em; border-radius: 10px; margin: 2em auto; font-weight: normal;">
|
<div class="ui-bar-b readOnlyContent welcomeMessage" style="display: none; padding: 2em; border-radius: 10px; margin: 2em auto; font-weight: normal;">
|
||||||
<h1 style="margin-top: 0;">${HeaderWelcomeToMediaBrowserWebClient}</h1>
|
<h1 style="margin-top: 0;" class="tourHeader"></h1>
|
||||||
<p>
|
<p>
|
||||||
<button class="btnTakeTour" type="button" data-icon="arrow-r" data-iconpos="right">${ButtonTakeTheTour}</button>
|
<button class="btnTakeTour" type="button" data-icon="arrow-r" data-iconpos="right"><span class="tourButtonText"></span></button>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -1249,7 +1249,7 @@ $(document).on('pagebeforeshow', "#dashboardPage", DashboardPage.onPageShow)
|
||||||
|
|
||||||
(function ($, document, window) {
|
(function ($, document, window) {
|
||||||
|
|
||||||
var welcomeDismissValue = '8';
|
var welcomeDismissValue = '10';
|
||||||
var welcomeTourKey = 'welcomeTour';
|
var welcomeTourKey = 'welcomeTour';
|
||||||
|
|
||||||
function dismissWelcome(page, userId) {
|
function dismissWelcome(page, userId) {
|
||||||
|
@ -1272,7 +1272,19 @@ $(document).on('pagebeforeshow', "#dashboardPage", DashboardPage.onPageShow)
|
||||||
if (result.CustomPrefs[welcomeTourKey] == welcomeDismissValue) {
|
if (result.CustomPrefs[welcomeTourKey] == welcomeDismissValue) {
|
||||||
$('.welcomeMessage', page).hide();
|
$('.welcomeMessage', page).hide();
|
||||||
} else {
|
} else {
|
||||||
$('.welcomeMessage', page).show();
|
|
||||||
|
var elem = $('.welcomeMessage', page).show();
|
||||||
|
|
||||||
|
if (result.CustomPrefs[welcomeTourKey]) {
|
||||||
|
|
||||||
|
$('.tourHeader', elem).html(Globalize.translate('HeaderWelcomeBack'));
|
||||||
|
$('.tourButtonText', elem).html(Globalize.translate('ButtonTakeTheTourToSeeWhatsNew'));
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
|
$('.tourHeader', elem).html(Globalize.translate('HeaderWelcomeToMediaBrowserServerDashboard'));
|
||||||
|
$('.tourButtonText', elem).html(Globalize.translate('ButtonTakeTheTour'));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -533,8 +533,25 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function showWelcomeIfNeeded() {
|
function showWelcomeIfNeeded(page, displayPreferences) {
|
||||||
|
|
||||||
|
if (displayPreferences.CustomPrefs[homePageTourKey] == homePageDismissValue) {
|
||||||
|
$('.welcomeMessage', page).hide();
|
||||||
|
} else {
|
||||||
|
|
||||||
|
var elem = $('.welcomeMessage', page).show();
|
||||||
|
|
||||||
|
if (displayPreferences.CustomPrefs[homePageTourKey]) {
|
||||||
|
|
||||||
|
$('.tourHeader', elem).html(Globalize.translate('HeaderWelcomeBack'));
|
||||||
|
$('.tourButtonText', elem).html(Globalize.translate('ButtonTakeTheTourToSeeWhatsNew'));
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
|
$('.tourHeader', elem).html(Globalize.translate('HeaderWelcomeToMediaBrowserWebClient'));
|
||||||
|
$('.tourButtonText', elem).html(Globalize.translate('ButtonTakeTheTour'));
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function takeTour(page, userId) {
|
function takeTour(page, userId) {
|
||||||
|
@ -581,12 +598,7 @@
|
||||||
|
|
||||||
ApiClient.getDisplayPreferences('home', userId, 'webclient').done(function (result) {
|
ApiClient.getDisplayPreferences('home', userId, 'webclient').done(function (result) {
|
||||||
|
|
||||||
if (result.CustomPrefs[homePageTourKey] == homePageDismissValue) {
|
showWelcomeIfNeeded(page, result);
|
||||||
$('.welcomeMessage', page).hide();
|
|
||||||
} else {
|
|
||||||
$('.welcomeMessage', page).show();
|
|
||||||
}
|
|
||||||
|
|
||||||
loadSections(page, userId, result);
|
loadSections(page, userId, result);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -105,14 +105,14 @@
|
||||||
|
|
||||||
$('.planSummary', page)
|
$('.planSummary', page)
|
||||||
.html(Globalize.translate('MessageYouHaveALifetimeMembership'))
|
.html(Globalize.translate('MessageYouHaveALifetimeMembership'))
|
||||||
.css('color', 'blue');
|
.css('color', 'green');
|
||||||
|
|
||||||
}
|
}
|
||||||
else if (info.IsActiveSupporter) {
|
else if (info.IsActiveSupporter) {
|
||||||
|
|
||||||
$('.planSummary', page)
|
$('.planSummary', page)
|
||||||
.html(Globalize.translate('MessageYouHaveAnActiveRecurringMembership').replace('{0}', info.PlanType))
|
.html(Globalize.translate('MessageYouHaveAnActiveRecurringMembership').replace('{0}', info.PlanType))
|
||||||
.css('color', 'blue');
|
.css('color', 'green');
|
||||||
|
|
||||||
}
|
}
|
||||||
else if (info.IsExpiredSupporter) {
|
else if (info.IsExpiredSupporter) {
|
||||||
|
@ -191,6 +191,8 @@
|
||||||
|
|
||||||
$('.radioDonationType', page).trigger('change');
|
$('.radioDonationType', page).trigger('change');
|
||||||
|
|
||||||
|
$('.benefits', page).html(Globalize.translate('HeaderSupporterBenefit', '<a href="http://mediabrowser.tv/donate" target="_blank">', '</a>')).trigger('create');
|
||||||
|
|
||||||
loadUserInfo(page);
|
loadUserInfo(page);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
<h3>${HeaderSupportTheTeam}</h3>
|
<h3>${HeaderSupportTheTeam}</h3>
|
||||||
<p>${HeaderSupportTheTeamHelp}</p>
|
<p>${HeaderSupportTheTeamHelp}</p>
|
||||||
|
|
||||||
<p>${HeaderSupporterBenefit}</p>
|
<p class="benefits"></p>
|
||||||
|
|
||||||
<div class="currentPlanInfo" style="display:none;margin-top:1.5em;">
|
<div class="currentPlanInfo" style="display:none;margin-top:1.5em;">
|
||||||
<p class="planSummary"></p>
|
<p class="planSummary"></p>
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
<a href="http://forum.team-mediaportal.com/threads/plugin-mediabrowser-for-mediaportal-v0-13-beta-2013-10-21.119513" target="_blank" title="Media Portal">
|
<a href="http://forum.team-mediaportal.com/threads/plugin-mediabrowser-for-mediaportal-v0-13-beta-2013-10-21.119513" target="_blank" title="Media Portal">
|
||||||
<img src="css/images/clients/mediaportal.png" /></a>
|
<img src="css/images/clients/mediaportal.png" /></a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="wizardNavigation">
|
<div class="wizardNavigation">
|
||||||
<button type="button" data-iconpos="left" data-icon="arrow-l" data-inline="true" onclick="history.back();">${LabelPrevious}</button>
|
<button type="button" data-iconpos="left" data-icon="arrow-l" data-inline="true" onclick="history.back();">${LabelPrevious}</button>
|
||||||
<button type="button" data-iconpos="right" data-icon="check" data-inline="true" onclick="WizardFinishPage.onFinish();" data-theme="b">${LabelFinish}</button>
|
<button type="button" data-iconpos="right" data-icon="check" data-inline="true" onclick="WizardFinishPage.onFinish();" data-theme="b">${LabelFinish}</button>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue