add about page to help section

This commit is contained in:
Chris Schneider 2013-03-14 21:42:18 -05:00
parent 65303c8816
commit efea777b99
9 changed files with 69 additions and 2 deletions

View file

@ -415,6 +415,7 @@ namespace MediaBrowser.WebDashboard.Api
{
"Extensions.js",
"Site.js",
"AboutPage.js",
"AddPluginPage.js",
"AdvancedConfigurationPage.js",
"AdvancedMetadataConfigurationPage.js",

View file

@ -0,0 +1,36 @@
<!DOCTYPE html>
<html>
<head>
<title>About</title>
</head>
<body>
<div id="aboutPage" data-role="page" class="page type-interior">
<div data-role="content">
<div class="content-primary">
<div class="readOnlyContent">
<div data-role="controlgroup" data-type="horizontal" class="localnav" data-mini="true">
<a href="support.html" data-role="button">General</a>
<a href="log.html" data-role="button">View Log</a>
<a href="supporter.html" data-role="button">Become a Supporter</a>
<a href="supporterKey.html" data-role="button">Supporter Key</a>
<a href="about.html" data-role="button" class="ui-btn-active">About</a>
</div>
<p>
<img class="imgLogoIcon" src="css/images/mblogoicon.png" /><img class="imgLogoText" src="css/images/mblogotextblack.png" />
<br />
<br />
Version <span id="appVersionNumber"></span>
</p>
<hr/>
<br/>
<br/>
<p>
Utilizing <a href="http://www.pismotechnic.com/pfm/" />Pismo File Mount</a> through a donated license.
</p>
</div>
</div>
</div>
</div>
</body>
</html>

View file

@ -12,7 +12,8 @@
<a href="support.html" data-role="button">General</a>
<a href="log.html" data-role="button" class="ui-btn-active">View Log</a>
<a href="supporter.html" data-role="button">Become a Supporter</a>
<a href="supporterKey.html" data-role="button">Supporter Key</a>
<a href="supporterKey.html" data-role="button">Supporter Key</a>
<a href="about.html" data-role="button">About</a>
</div>
<p>
<label for="chkAutoScroll">Auto-scroll</label>

View file

@ -0,0 +1,24 @@
var AboutPage = {
onPageShow: function () {
AboutPage.pollForInfo();
},
pollForInfo: function () {
$.getJSON("dashboardInfo").done(AboutPage.renderInfo);
},
renderInfo: function (dashboardInfo) {
AboutPage.renderSystemInfo(dashboardInfo);
},
renderSystemInfo: function (dashboardInfo) {
var page = $.mobile.activePage;
$('#appVersionNumber', page).html(dashboardInfo.SystemInfo.Version);
},
};
$(document).on('pageshow', "#aboutPage", AboutPage.onPageShow);

View file

@ -835,7 +835,7 @@ var Dashboard = {
}, {
name: "Help",
href: "support.html",
selected: pageElem.id == "supportPage" || pageElem.id == "logPage" || pageElem.id == "supporterPage" || pageElem.id == "supporterKeyPage"
selected: pageElem.id == "supportPage" || pageElem.id == "logPage" || pageElem.id == "supporterPage" || pageElem.id == "supporterKeyPage" || pageElem.id == "aboutPage"
}];
},

View file

@ -14,6 +14,7 @@
<a href="log.html" data-role="button">View Log</a>
<a href="supporter.html" data-role="button">Become a Supporter</a>
<a href="supporterKey.html" data-role="button">Supporter Key</a>
<a href="about.html" data-role="button">About</a>
</div>
<h2>General Help</h2>
<p>

View file

@ -14,6 +14,7 @@
<a href="log.html" data-role="button">View Log</a>
<a href="supporter.html" data-role="button" class="ui-btn-active">Become a Supporter</a>
<a href="supporterKey.html" data-role="button">Supporter Key</a>
<a href="about.html" data-role="button">About</a>
</div>
<h2>Support the Media Browser Team</h2>
<p>

View file

@ -14,6 +14,7 @@
<a href="log.html" data-role="button">View Log</a>
<a href="supporter.html" data-role="button">Become a Supporter</a>
<a href="supporterKey.html" data-role="button" class="ui-btn-active">Supporter Key</a>
<a href="about.html" data-role="button">About</a>
</div>
<h2>Supporter Key</h2>
</div>

View file

@ -385,6 +385,7 @@
<EmbeddedResource Include="Html\scripts\ItemDetailPage.js" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Html\scripts\AboutPage.js" />
<EmbeddedResource Include="Html\css\images\supporterflag.png" />
<EmbeddedResource Include="Html\scripts\ItemListPage.js" />
<EmbeddedResource Include="Html\itemList.html" />
@ -404,6 +405,7 @@
<EmbeddedResource Include="Html\css\images\mblogotextwhite.png" />
<EmbeddedResource Include="Html\css\images\clients\dlna.png" />
<EmbeddedResource Include="ApiClient.js" />
<EmbeddedResource Include="Html\about.html" />
<Content Include="Html\css\images\stars.png" />
<EmbeddedResource Include="Html\scripts\MediaPlayer.js" />
</ItemGroup>