Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 40 lines (37 sloc) 1.33 KB
<!DOCTYPE html>
<html>
<head>
<title>Slippy Slides Repository</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
body {
font: 12px Arial, sans-serif;
}
.download {
font-size: 0.6em;
}
</style>
</head>
<body>
<h1>This is a Slippy Repository</h1>
<p>You can find the sources for this application on <a href="http://github.com/Seldaek/slippy">github</a>, and browse the available slide decks in the list below.</p>
<ul>
<?php
foreach ($decks as $deck) {
echo '<li>';
echo '<h2>
<a href="?file='.htmlspecialchars(urlencode(basename($deck['file']))).'">'.$deck['topic'].'</a>
<a rel="nofollow" class="download" href="?file='.htmlspecialchars(urlencode(basename($deck['file']))).'&download=1">Download</a>
</h2>';
if (isset($deck['date'])) {
echo $deck['date'];
}
if (isset($deck['venue'])) {
echo ' @ '.$deck['venue'];
}
echo '</li>';
}
?>
</ul>
</body>
</html>