summaryrefslogtreecommitdiff
path: root/templates/empty_status.mako
diff options
context:
space:
mode:
authorDylan Baker <baker.dylan.c@gmail.com>2013-05-28 15:27:26 -0700
committerDylan Baker <baker.dylan.c@gmail.com>2013-07-02 12:10:40 -0700
commit05bc5eb982ff5f5d7acd484a5af6b7a368e53d5e (patch)
treee433021b1d43330a1347ab519a56dc1ea9a5a663 /templates/empty_status.mako
parentc8239501fcd8a0b37fe4153cacbdb5a19d608b94 (diff)
summary: Generate a new empty page for pages with no results
This new page is able to convey the same information, but takes less time to generate v2: - Change message to say "No ${page}". Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
Diffstat (limited to 'templates/empty_status.mako')
-rw-r--r--templates/empty_status.mako27
1 files changed, 27 insertions, 0 deletions
diff --git a/templates/empty_status.mako b/templates/empty_status.mako
new file mode 100644
index 000000000..8ee6fbaa0
--- /dev/null
+++ b/templates/empty_status.mako
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <title>Result summary</title>
+ <link rel="stylesheet" href="status.css" type="text/css" />
+ </head>
+ <body>
+ <h1>Result summary</h1>
+ <p>Currently showing: ${page}</p>
+ <p>Show:
+ ## Index is a logical choice to put first, it will always be a link
+ ## and we don't want in preceeded by a |
+ <a href="index.html">index</a>
+ % for i in pages:
+ % if i == page:
+ | ${i}
+ % else:
+ | <a href="${i}.html">${i}</a>
+ % endif
+ % endfor
+ </p>
+ <h1>No ${page}</h1>
+ </body>
+</html>