added sync help buttons

This commit is contained in:
Luke Pulverenti 2015-01-28 22:58:39 -05:00
parent 93203c53b9
commit 340fcbb607
5 changed files with 24 additions and 8 deletions

View File

@ -5,7 +5,7 @@
</head>
<body class="serverlessPage">
<div class="backdropContainer" style="background-image:url(css/images/splash.png);top:0;"></div>
<div id="connectLoginPage" data-role="page" class="page standalonePage connectLoginPage lightBackdropPage backdropPage staticBackdropPage" data-theme="b" style="background-color: rgba(20, 20,20, .82)!important;">
<div id="connectLoginPage" data-role="page" class="page standalonePage connectLoginPage lightBackdropPage backdropPage staticBackdropPage" data-theme="b" style="background-color: rgba(20, 20,20, .75)!important;">
<div data-role="content">
@ -24,7 +24,7 @@
<input type="password" id="txtManualPassword" required="required" />
</div>
<button type="submit" data-icon="check" data-mini="true">
<button type="submit" data-icon="check">
${ButtonSignIn}
</button>
<p>
@ -33,7 +33,7 @@
<br />
<h2 style="text-align: left;">${HeaderNewUsers}</h2>
<a data-role="button" data-icon="action" href="http://mediabrowser.tv/community/index.php?app=core&module=global&section=register" target="_blank" data-mini="true">${ButtonSignUp}</a>
<a data-role="button" data-icon="action" href="http://mediabrowser.tv/community/index.php?app=core&module=global&section=register" target="_blank">${ButtonSignUp}</a>
</form>
</div>

View File

@ -1024,6 +1024,10 @@ h1 + .accentButton {
margin: 18px 0 0 20px;
}
.detailSectionHeader .accentButton {
font-size: 13px;
}
.dashboardFooter {
margin-top: 50px;
text-align: center;

View File

@ -141,12 +141,13 @@
var lastTargetName = '';
var cardBoxCssClass = 'cardBox visualCardBox';
var barCssClass = 'detailSectionHeader';
var syncJobPage = 'syncjob.html';
var showHelpButtons = false;
if ($(page).hasClass('mySyncPage')) {
syncJobPage = 'mysyncjob.html';
showHelpButtons = true;
}
for (var i = 0, length = jobs.length; i < length; i++) {
@ -164,7 +165,18 @@
lastTargetName = targetName;
html += '<div class="' + barCssClass + '" style="padding: 0 1em;"><p>' + targetName + '</p></div>';
html += '<div class="detailSectionHeader" style="padding: .85em 0 .85em 1em;">';
html += '<div style="display:inline-block;vertical-align:middle;">' + targetName + '</div>';
if (showHelpButtons) {
html += '<a class="accentButton accentButton-g" style="display:inline-block;vertical-align:middle;margin-top:0;margin-left: 20px;" href="https://github.com/MediaBrowser/Wiki/wiki/Sync" target="_blank">';
html += '<i class="fa fa-info-circle"></i>';
html += Globalize.translate('ButtonHelp');
html += '</a>';
}
html += '</div>';
}
html += getSyncJobHtml(page, job, cardBoxCssClass, syncJobPage);

View File

@ -4,7 +4,7 @@
<title>${TitleSync}</title>
</head>
<body>
<div id="syncActivityPage" data-role="page" class="page type-interior syncConfigurationPage syncActivityPage">
<div id="syncActivityPage" data-role="page" class="page type-interior syncConfigurationPage syncActivityPage" data-helpurl="https://github.com/MediaBrowser/Wiki/wiki/Sync">
<div data-role="content">
<div class="content-primary">
@ -27,7 +27,7 @@
<div>
${HeaderEnjoyDayTrial}
</div>
<div style="font-weight:normal;font-size:90%;margin-top:5px;">
<div style="font-weight:normal;font-size:90%;margin-top:5px;">
${ButtonLearnMore}
</div>
</a>

View File

@ -4,7 +4,7 @@
<title>${TitleSync}</title>
</head>
<body>
<div id="syncSettingsPage" data-role="page" class="page type-interior syncConfigurationPage">
<div id="syncSettingsPage" data-role="page" class="page type-interior syncConfigurationPage" data-helpurl="https://github.com/MediaBrowser/Wiki/wiki/Sync">
<div data-role="content">
<div class="content-primary">