aboutsummaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
Diffstat (limited to 'template')
-rw-r--r--template/404.tt4
-rw-r--r--template/head.tt1
-rw-r--r--template/index.tt5
-rw-r--r--template/index_user.tt5
-rw-r--r--template/repository.tt4
5 files changed, 13 insertions, 6 deletions
diff --git a/template/404.tt b/template/404.tt
index 9d93d48..eb40974 100644
--- a/template/404.tt
+++ b/template/404.tt
@@ -1,7 +1,9 @@
<html>
+[% title = "404 Not Found" %]
[% INCLUDE head.tt %]
<body>
-<h1>404</h1>
+ <h1>[% title %]</h1>
+ <p>It's fucking over</p>
</body>
[% INCLUDE foot.tt %]
</html>
diff --git a/template/head.tt b/template/head.tt
index 1a9d3d9..5b32c6c 100644
--- a/template/head.tt
+++ b/template/head.tt
@@ -1,2 +1,3 @@
<head>
+<title>[% title %]</title>
</head>
diff --git a/template/index.tt b/template/index.tt
index 829ee72..4b59942 100644
--- a/template/index.tt
+++ b/template/index.tt
@@ -1,8 +1,9 @@
<html>
+[% title = "Gorilla Nest" %]
[% INCLUDE head.tt %]
<body>
-<h1>index</h1>
-<ul>[% FOR i IN directories %]<li>[% i %]</li>[% END %]</ul>
+<h1>[% title %]</h1>
+<ul>[% FOR i IN directories %]<li><a href="/[% i %]/">/[% i %]/</a></li>[% END %]</ul>
</body>
[% INCLUDE foot.tt %]
</html>
diff --git a/template/index_user.tt b/template/index_user.tt
index 886beec..e27fb35 100644
--- a/template/index_user.tt
+++ b/template/index_user.tt
@@ -1,8 +1,9 @@
<html>
+[% title = "${name} Index" %]
[% INCLUDE head.tt %]
<body>
-<h1>index_user</h1>
-<ul>[% FOR i IN directories %]<li>[% i %]</li>[% END %]</ul>
+<h1>[% title %]</h1>
+<ul>[% FOR i IN directories %]<li><a href="/[% name %]/[% i %]">/[% name %]/[% i %]</a></li>[% END %]</ul>
</body>
[% INCLUDE foot.tt %]
</html>
diff --git a/template/repository.tt b/template/repository.tt
index 004413d..2877fa3 100644
--- a/template/repository.tt
+++ b/template/repository.tt
@@ -1,7 +1,9 @@
<html>
+[% title = "/${name}/${repository}" %]
[% INCLUDE head.tt %]
<body>
-<h1>repository</h1>
+ <h1>[% title %]</h1>
+ <p> Eventually this page will have something on it, RIGHT?!</p>
</body>
[% INCLUDE foot.tt %]
</html>