add current revision to download page, add border fixes #861

This commit is contained in:
j 2012-06-19 22:56:26 +02:00
parent adca0d5289
commit 4341824d81
3 changed files with 14 additions and 3 deletions

View file

@ -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 {

View file

@ -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}', '<br>Latest revision is <b>r'+version+'</b>');
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) {
$('<p>').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 &mdash; open media archive'

View file

@ -153,8 +153,8 @@
]
],
"demo": "<p>While we're still working on a sandbox to demonstrate <b>pan.do/ra</b>'s admin features, you can already try out the sites below to see how <b>pan.do/ra</b> works as a regular user:</p><p><a href=\"https://0xDB.org\"><img class=\"logo\" src=\"png/0xdb256.png\"></a><a href=\"https://0xDB.org\">0xDB</a> is an experimental online movie database. At its core, it provides full text search for more than a hundred years of cinema.</p><br clear=\"all\"><br><p><a href=\"https://Pad.ma\"><img class=\"logo\" src=\"png/padma256.png\"></a><a href=\"https//:Pad.ma\">Pad.ma</a>, short for Public Access Digital Media Archive, is an online repository of densely annotated video materials, primarily documentary footage.<br></p>",
"download": "<p><p><a href=\"https://wiki.0x2620.org/browser/pandora\"><img src=\"png/icon256.png\" class=\"logo\" style=\"width: 64px\"></a>You can always check out and install the latest version of <b>pan.do/ra</b> from our <a href=\"https://wiki.0x2620.org/browser/pandora\">repository</a>. It runs on most Linux distributions, preferably Ubuntu.</p><br><p><a href=\"magnet:?xt=urn:btih:b90576ea174e53b6483b7414a9469f0604abe365&dn=pandora-r2156&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=udp%3A%2F%2Ftracker.publicbt.com%3A80&tr=udp%3A%2F%2Ftracker.istole.it%3A6969&tr=udp%3A%2F%2Ftracker.ccc.de%3A80\"><img src=\"png/icon256.png\" class=\"logo\" style=\"width: 64px;\"></a>Alternatively download <b>pan.do/ra</b> pre-installed on a virtual machine for <a href=\"https://www.virtualbox.org/\">VirtualBox</a>, which works fine on many other systems, for example on a MacBook. <a href=\"magnet:?xt=urn:btih:b90576ea174e53b6483b7414a9469f0604abe365&dn=pandora-r2156&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=udp%3A%2F%2Ftracker.publicbt.com%3A80&tr=udp%3A%2F%2Ftracker.istole.it%3A6969&tr=udp%3A%2F%2Ftracker.ccc.de%3A80\">Download pandora-r2156.torrent (5.66 GiB)</a></p><p>There is also a growing list of tools that have been built for <b>pan.do/ra</b>.</p><p><a href=\"https://firefogg.org\"><img src=\"png/firefogg256.png\" class=\"logo\" style=\"width: 64px\"></a><b>pan.do/ra</b> comes with <b>Firefogg</b>, a browser extension for client-side video encoding and upload. Please visit <a href=\"https://firefogg.org\">firefogg.org</a> for more information.</p><br><p><a href=\"http://files.pad.ma/speedtrans/\"><img src=\"png/speedtrans256.png\" class=\"logo\" style=\"width: 48px; padding: 0 8px 16px 8px\"></a><b>SpeedTrans</b> is a lightweight but powerful video transcription client that runs in your browser. You can get it at <a href=\"http://files.pad.ma/speedtrans/\">Pad.ma</a>.</p><br>",
"documentation": "<p>As <b>pan.do/ra</b> documentation is still a work in progress.</p><p>A lot of information can be found on our <a href=\"https://wiki.0x2620.org\">Wiki</a>. If you need instructions for setting up <b>pan.do/ra</b>, check out the <a href=\"https://wiki.0x2620.org/browser/pandora/README\">readme</a> file that comes with it.</p><p><a href=\"https://0xDB.org/api\"><img src=\"png/0xdb256.png\" class=\"logo\" style=\"width: 80px\"></a><b>pan.do/ra</b>'s public API includes its own documentation. You can browse it at any live instance of <b>pan.do/ra</b>, for example at <a href=\"http://0xdb.org/api\">0xDB.org/api</a>.</p><p><a href=\"https://OxJS.org/#doc\"><img src=\"png/oxjs256.png\" class=\"logo\" style=\"width: 80px; border-radius: 10px; box-shadow: 0 0 1px black\"></a>Detailed documentation of <b>OxJS</b>, the JavaScript library used to build <b>pan.do/ra</b>'s frontend, can be found at <a href=\"https://OxJS.org/#doc\">OxJS.org/#doc</a>.</p>",
"download": "<p><b>pan.do/ra</b> will be officially released later in 2012.</p><p><a href=\"https://wiki.0x2620.org/browser/pandora\"><img src=\"png/icon256.png\" class=\"logo\" style=\"width: 64px\"></a>You can always check out and install the latest version of <b>pan.do/ra</b> from our <a href=\"https://wiki.0x2620.org/browser/pandora\">repository</a>. It runs on most Linux distributions, preferably Ubuntu.{version}</p><br><p><a href=\"magnet:?xt=urn:btih:b90576ea174e53b6483b7414a9469f0604abe365&dn=pandora-r2156&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=udp%3A%2F%2Ftracker.publicbt.com%3A80&tr=udp%3A%2F%2Ftracker.istole.it%3A6969&tr=udp%3A%2F%2Ftracker.ccc.de%3A80\"><img src=\"png/icon256.png\" class=\"logo\" style=\"width: 64px;\"></a>Alternatively download <b>pan.do/ra</b> pre-installed on a virtual machine for <a href=\"https://www.virtualbox.org/\">VirtualBox</a>, which works fine on many other systems, for example on a MacBook. <a href=\"magnet:?xt=urn:btih:b90576ea174e53b6483b7414a9469f0604abe365&dn=pandora-r2156&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=udp%3A%2F%2Ftracker.publicbt.com%3A80&tr=udp%3A%2F%2Ftracker.istole.it%3A6969&tr=udp%3A%2F%2Ftracker.ccc.de%3A80\">Download pandora-r2156.torrent (5.66 GiB)</a></p><p>There is also a growing list of tools that have been built for <b>pan.do/ra</b>.</p><p><a href=\"https://firefogg.org\"><img src=\"png/firefogg256.png\" class=\"logo\" style=\"width: 64px\"></a><b>pan.do/ra</b> comes with <b>Firefogg</b>, a browser extension for client-side video encoding and upload. Please visit <a href=\"https://firefogg.org\">firefogg.org</a> for more information.</p><br><p><a href=\"http://files.pad.ma/speedtrans/\"><img src=\"png/speedtrans256.png\" class=\"logo\" style=\"width: 48px; padding: 0 8px 16px 8px\"></a><b>SpeedTrans</b> is a lightweight but powerful video transcription client that runs in your browser. You can get it at <a href=\"http://files.pad.ma/speedtrans/\">Pad.ma</a>.</p><br>",
"documentation": "<p><b>pan.do/ra</b> documentation is still a work in progress.</p><p>A lot of information can be found on our <a href=\"https://wiki.0x2620.org\">Wiki</a>. If you need instructions for setting up <b>pan.do/ra</b>, check out the <a href=\"https://wiki.0x2620.org/browser/pandora/README\">readme</a> file that comes with it.</p><p><a href=\"https://0xDB.org/api\"><img src=\"png/0xdb256.png\" class=\"logo\" style=\"width: 80px\"></a><b>pan.do/ra</b>'s public API includes its own documentation. You can browse it at any live instance of <b>pan.do/ra</b>, for example at <a href=\"http://0xdb.org/api\">0xDB.org/api</a>.</p><p><a href=\"https://OxJS.org/#doc\"><img src=\"png/oxjs256.png\" class=\"logo\" style=\"width: 80px; border-radius: 10px; box-shadow: 0 0 1px black\"></a>Detailed documentation of <b>OxJS</b>, the JavaScript library used to build <b>pan.do/ra</b>'s frontend, can be found at <a href=\"https://OxJS.org/#doc\">OxJS.org/#doc</a>.</p>",
"development": "<p>To browse or check out the source, take a look at our <a href=\"https://wiki.0x2620.org/browser/pandora\">repository</a>. If you want to report bugs or request features, please use our <a href=\"https://wiki.0x2620.org/report\">tracker</a>. For everything else, there's <a href=\"irc://irc.freenode.net#pan.do/ra\">IRC</a>, and our <a href=\"https://mailb.org/cgi-bin/mailman/listinfo/dev\">development mailing list</a>. Your feedback is welcome.</p><p><a href=\"https://OxJS.org\"><img src=\"png/oxjs256.png\" class=\"logo\" style=\"border-radius: 32px; box-shadow: 0 0 1px black\"></a><b>pan.do/ra</b>'s interface was made with <b>OxJS</b>, a new JavaScript library for web applications. To learn more about <b>OxJS</b>, check out <a href=\"https://OxJS.org\">OxJS.org</a>.</p><br><br><p><a href=\"https://wiki.0x2620.org/wiki/python-ox\"><img src=\"png/python-ox256.png\" class=\"logo\"></a>A lot of <b>pan.do/ra</b>'s server-side functionality has been packaged as a stand-alone library as well. You can get <b>python-ox</b> <a href=\"https://wiki.0x2620.org/wiki/python-ox\">here</a>.</p>",
"support": "<img class=\"logo\" src=\"png/box256.png\"><p>In case you just need help with installing, configuring or running <b>pan.do/ra</b> yourself, don't hesitate to <a href=\"#contact\">get in touch</a> with us.</p><p>Beyond that, we provide support and offer hosting for individual instances of <b>pan.do/ra</b>. For more details, please <a href=\"#contact\">send us an e-mail</a>.<br><br><br><br></p>",
"credits": "<p><b>pan.do/ra</b> is being developed and maintained by Jan Gerber and Sebastian Lütgert at <a href=\"https://0x2620.org\">0x2620</a> in Berlin and Sanjay Bhangar at <a href=\"http://camputer.org\">CAMP</a> in Bombay.</p><p>From its early stages on, <b>pan.do/ra</b> has received valuable feedback, especially from Zinnia Ambarpardiwala, Shaina Anand and Ashok Sukumaran.</p><p><a href=\"http://bohen.org\"><img class=\"logo\" src=\"png/bohen256.png\"></a>Last but not least, <b>pan.do/ra</b> would not have been possible without the support of the <a href=\"http://bohen.org\">Bohen Foundation</a>.<br><br></p>",