From 3d362588ebbed0c6b46a3d9fc2efc4c6e51c13e8 Mon Sep 17 00:00:00 2001 From: Chris Schneider Date: Thu, 14 Mar 2013 21:42:18 -0500 Subject: [PATCH] add about page to help section --- Html/about.html | 36 ++++++++++++++++++++++++++++++++++++ Html/log.html | 3 ++- Html/scripts/aboutPage.js | 24 ++++++++++++++++++++++++ Html/scripts/site.js | 2 +- Html/support.html | 1 + Html/supporter.html | 1 + Html/supporterKey.html | 1 + 7 files changed, 66 insertions(+), 2 deletions(-) create mode 100644 Html/about.html create mode 100644 Html/scripts/aboutPage.js diff --git a/Html/about.html b/Html/about.html new file mode 100644 index 0000000000..5b778f4a7b --- /dev/null +++ b/Html/about.html @@ -0,0 +1,36 @@ + + + + About + + +
+ +
+
+
+ +

+ +
+
+ Version +

+
+
+
+

+ Utilizing Pismo File Mount through a donated license. +

+
+
+
+
+ + diff --git a/Html/log.html b/Html/log.html index db76240ffa..0cc5bbbf17 100644 --- a/Html/log.html +++ b/Html/log.html @@ -12,7 +12,8 @@ General View Log Become a Supporter - Supporter Key + Supporter Key + About

diff --git a/Html/scripts/aboutPage.js b/Html/scripts/aboutPage.js new file mode 100644 index 0000000000..c9a275d9b2 --- /dev/null +++ b/Html/scripts/aboutPage.js @@ -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); \ No newline at end of file diff --git a/Html/scripts/site.js b/Html/scripts/site.js index 75521f9fde..c3c842e7cf 100644 --- a/Html/scripts/site.js +++ b/Html/scripts/site.js @@ -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" }]; }, diff --git a/Html/support.html b/Html/support.html index 44ed773f50..185ae01e61 100644 --- a/Html/support.html +++ b/Html/support.html @@ -14,6 +14,7 @@ View Log Become a Supporter Supporter Key + About

General Help

diff --git a/Html/supporter.html b/Html/supporter.html index a642de8103..3beb6e3b97 100644 --- a/Html/supporter.html +++ b/Html/supporter.html @@ -14,6 +14,7 @@ View Log Become a Supporter Supporter Key + About

Support the Media Browser Team

diff --git a/Html/supporterKey.html b/Html/supporterKey.html index 9d52c6cd69..7d565640f7 100644 --- a/Html/supporterKey.html +++ b/Html/supporterKey.html @@ -14,6 +14,7 @@ View Log Become a Supporter Supporter Key + About

Supporter Key