From 50c0d67c202c6a755d367a0ddf63c6559a98bf77 Mon Sep 17 00:00:00 2001 From: j Date: Wed, 30 Aug 2017 21:20:10 +0200 Subject: [PATCH] call demo pan.do/ra --- pandora/config.pandora.jsonc | 2 +- static/js/siteDialog.js | 41 +++++++++++++++++++++--------------- 2 files changed, 25 insertions(+), 18 deletions(-) diff --git a/pandora/config.pandora.jsonc b/pandora/config.pandora.jsonc index 9e778831..55fab0aa 100644 --- a/pandora/config.pandora.jsonc +++ b/pandora/config.pandora.jsonc @@ -1001,7 +1001,7 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution. }, "https": false, "id": "pandora", - "name": "Demo", + "name": "pan.do/ra", "sendReferrer": true, "url": "pandora.local" }, diff --git a/static/js/siteDialog.js b/static/js/siteDialog.js index 28f67ef3..1c754dc7 100644 --- a/static/js/siteDialog.js +++ b/static/js/siteDialog.js @@ -25,24 +25,31 @@ pandora.ui.siteDialog = function(section) { } else if (id == 'news') { pandora.$ui.news = pandora.ui.news(dialogWidth, dialogHeight).appendTo($content); } else if (id == 'software') { + var about = '

pan.do/ra

' + + 'open media archive' + + '

{0} is based on pan.do/ra, ' + + 'a free, open source platform for media archives.

' + + 'pan.do/ra includes OxJS, ' + + 'a new JavaScript library for web applications.

' + + '

To learn more about pan.do/ra and OxJS, ' + + 'please visit pan.do/ra ' + + 'and oxjs.org.

' + + ( + canSeeVersion + ? '{0}' + + ' is running pan.do/ra revision ' + + '{1}.' + : '' + ); + if (pandora.site.site.name.toLocaleLowerCase() == 'pan.do/ra') { + about = about + .replace('{0} is based on pan.do/ra, ', + 'pan.do/ra is ') + .replace('{0} is running pan.do/ra ', + 'This instances runs pan.do/ra '); + } Ox.Element() - .html(Ox._( - '

pan.do/ra

' - + 'open media archive' - + '

{0} is based on pan.do/ra, ' - + 'a free, open source platform for media archives.

' - + 'pan.do/ra includes OxJS, ' - + 'a new JavaScript library for web applications.

' - + '

To learn more about pan.do/ra and OxJS, ' - + 'please visit pan.do/ra ' - + 'and oxjs.org.

' - + ( - canSeeVersion - ? '{0}' - + ' is running pan.do/ra revision ' - + '{1}.' - : '' - ), + .html(Ox._(about, [pandora.site.site.name, pandora.site.site.version] )) .appendTo($content);