From efea777b99863fb1dcbffe3ff2de638d60ba947f 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 --- .../Api/DashboardService.cs | 1 + MediaBrowser.WebDashboard/Html/about.html | 36 +++++++++++++++++++ MediaBrowser.WebDashboard/Html/log.html | 3 +- .../Html/scripts/aboutPage.js | 24 +++++++++++++ .../Html/scripts/site.js | 2 +- MediaBrowser.WebDashboard/Html/support.html | 1 + MediaBrowser.WebDashboard/Html/supporter.html | 1 + .../Html/supporterKey.html | 1 + .../MediaBrowser.WebDashboard.csproj | 2 ++ 9 files changed, 69 insertions(+), 2 deletions(-) create mode 100644 MediaBrowser.WebDashboard/Html/about.html create mode 100644 MediaBrowser.WebDashboard/Html/scripts/aboutPage.js diff --git a/MediaBrowser.WebDashboard/Api/DashboardService.cs b/MediaBrowser.WebDashboard/Api/DashboardService.cs index 150341b885..3f4c84a879 100644 --- a/MediaBrowser.WebDashboard/Api/DashboardService.cs +++ b/MediaBrowser.WebDashboard/Api/DashboardService.cs @@ -415,6 +415,7 @@ namespace MediaBrowser.WebDashboard.Api { "Extensions.js", "Site.js", + "AboutPage.js", "AddPluginPage.js", "AdvancedConfigurationPage.js", "AdvancedMetadataConfigurationPage.js", diff --git a/MediaBrowser.WebDashboard/Html/about.html b/MediaBrowser.WebDashboard/Html/about.html new file mode 100644 index 0000000000..5b778f4a7b --- /dev/null +++ b/MediaBrowser.WebDashboard/Html/about.html @@ -0,0 +1,36 @@ + + + + About + + +
+ +
+
+
+ +

+ +
+
+ Version +

+
+
+
+

+ Utilizing Pismo File Mount through a donated license. +

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

diff --git a/MediaBrowser.WebDashboard/Html/scripts/aboutPage.js b/MediaBrowser.WebDashboard/Html/scripts/aboutPage.js new file mode 100644 index 0000000000..c9a275d9b2 --- /dev/null +++ b/MediaBrowser.WebDashboard/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/MediaBrowser.WebDashboard/Html/scripts/site.js b/MediaBrowser.WebDashboard/Html/scripts/site.js index 75521f9fde..c3c842e7cf 100644 --- a/MediaBrowser.WebDashboard/Html/scripts/site.js +++ b/MediaBrowser.WebDashboard/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/MediaBrowser.WebDashboard/Html/support.html b/MediaBrowser.WebDashboard/Html/support.html index 44ed773f50..185ae01e61 100644 --- a/MediaBrowser.WebDashboard/Html/support.html +++ b/MediaBrowser.WebDashboard/Html/support.html @@ -14,6 +14,7 @@ View Log Become a Supporter Supporter Key + About

General Help

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

Support the Media Browser Team

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

Supporter Key

diff --git a/MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csproj b/MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csproj index 07992b1e38..b9de00f690 100644 --- a/MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csproj +++ b/MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csproj @@ -385,6 +385,7 @@ + @@ -404,6 +405,7 @@ +