From 4341824d813914b24c905aeb50992dbbf9daa19b Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 19 Jun 2012 22:56:26 +0200 Subject: [PATCH] add current revision to download page, add border fixes #861 --- css/pandora.css | 2 ++ js/pandora.js | 11 ++++++++++- json/pandora.json | 4 ++-- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/css/pandora.css b/css/pandora.css index 310ae7b..f0fd5a7 100644 --- a/css/pandora.css +++ b/css/pandora.css @@ -109,6 +109,8 @@ p:last-child { left: 352px; top: 32px; width: 640px; + padding-bottom: 32px; + padding-right: 32px; border-radius: 16px; } #page > div:first-child { diff --git a/js/pandora.js b/js/pandora.js index 44d78c3..dd9c4aa 100644 --- a/js/pandora.js +++ b/js/pandora.js @@ -18,6 +18,7 @@ Ox.getJSON('json/pandora.json', function(pandora) { .html('=>'), tourIndex = 0; + Ox.forEach(pandora.pages, function(data, page) { var $element, text; if (page == '') { @@ -41,6 +42,14 @@ Ox.getJSON('json/pandora.json', function(pandora) { loadPage(); + Ox.get('http://code.0x2620.org/pandora/.bzr/branch/last-revision', function(data) { + var hash = window.location.hash.substr(1).split('.'), + page = hash[0], + version = data.split(' ')[0]; + pandora.pages['download'] = pandora.pages['download'].replace('{version}', '
Latest revision is r'+version+''); + page == 'download' && loadPage(); + }); + function loadPage() { var hash = window.location.hash.substr(1).split('.'), page = hash[0], @@ -179,7 +188,7 @@ Ox.getJSON('json/pandora.json', function(pandora) { $('

').html(pandora.pages.tour[part - 1][1]) ); } else { - text = pandora.pages[page]; + text = pandora.pages[page].replace('{version}', ''); } $head.empty().append( page == '' ? 'pan.do/ra — open media archive' diff --git a/json/pandora.json b/json/pandora.json index ca04e46..7e54da7 100644 --- a/json/pandora.json +++ b/json/pandora.json @@ -153,8 +153,8 @@ ] ], "demo": "

While we're still working on a sandbox to demonstrate pan.do/ra's admin features, you can already try out the sites below to see how pan.do/ra works as a regular user:

0xDB is an experimental online movie database. At its core, it provides full text search for more than a hundred years of cinema.



Pad.ma, short for Public Access Digital Media Archive, is an online repository of densely annotated video materials, primarily documentary footage.

", - "download": "

You can always check out and install the latest version of pan.do/ra from our repository. It runs on most Linux distributions, preferably Ubuntu.


Alternatively download pan.do/ra pre-installed on a virtual machine for VirtualBox, which works fine on many other systems, for example on a MacBook. Download pandora-r2156.torrent (5.66 GiB)

There is also a growing list of tools that have been built for pan.do/ra.

pan.do/ra comes with Firefogg, a browser extension for client-side video encoding and upload. Please visit firefogg.org for more information.


SpeedTrans is a lightweight but powerful video transcription client that runs in your browser. You can get it at Pad.ma.


", - "documentation": "

As pan.do/ra documentation is still a work in progress.

A lot of information can be found on our Wiki. If you need instructions for setting up pan.do/ra, check out the readme file that comes with it.

pan.do/ra's public API includes its own documentation. You can browse it at any live instance of pan.do/ra, for example at 0xDB.org/api.

Detailed documentation of OxJS, the JavaScript library used to build pan.do/ra's frontend, can be found at OxJS.org/#doc.

", + "download": "

pan.do/ra will be officially released later in 2012.

You can always check out and install the latest version of pan.do/ra from our repository. It runs on most Linux distributions, preferably Ubuntu.{version}


Alternatively download pan.do/ra pre-installed on a virtual machine for VirtualBox, which works fine on many other systems, for example on a MacBook. Download pandora-r2156.torrent (5.66 GiB)

There is also a growing list of tools that have been built for pan.do/ra.

pan.do/ra comes with Firefogg, a browser extension for client-side video encoding and upload. Please visit firefogg.org for more information.


SpeedTrans is a lightweight but powerful video transcription client that runs in your browser. You can get it at Pad.ma.


", + "documentation": "

pan.do/ra documentation is still a work in progress.

A lot of information can be found on our Wiki. If you need instructions for setting up pan.do/ra, check out the readme file that comes with it.

pan.do/ra's public API includes its own documentation. You can browse it at any live instance of pan.do/ra, for example at 0xDB.org/api.

Detailed documentation of OxJS, the JavaScript library used to build pan.do/ra's frontend, can be found at OxJS.org/#doc.

", "development": "

To browse or check out the source, take a look at our repository. If you want to report bugs or request features, please use our tracker. For everything else, there's IRC, and our development mailing list. Your feedback is welcome.

pan.do/ra's interface was made with OxJS, a new JavaScript library for web applications. To learn more about OxJS, check out OxJS.org.



A lot of pan.do/ra's server-side functionality has been packaged as a stand-alone library as well. You can get python-ox here.

", "support": "

In case you just need help with installing, configuring or running pan.do/ra yourself, don't hesitate to get in touch with us.

Beyond that, we provide support and offer hosting for individual instances of pan.do/ra. For more details, please send us an e-mail.



", "credits": "

pan.do/ra is being developed and maintained by Jan Gerber and Sebastian Lütgert at 0x2620 in Berlin and Sanjay Bhangar at CAMP in Bombay.

From its early stages on, pan.do/ra has received valuable feedback, especially from Zinnia Ambarpardiwala, Shaina Anand and Ashok Sukumaran.

Last but not least, pan.do/ra would not have been possible without the support of the Bohen Foundation.

",