summaryrefslogtreecommitdiff
path: root/src/lq/ViewQuote.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/lq/ViewQuote.java')
-rw-r--r--src/lq/ViewQuote.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/lq/ViewQuote.java b/src/lq/ViewQuote.java
index 2575523..5c40ac3 100644
--- a/src/lq/ViewQuote.java
+++ b/src/lq/ViewQuote.java
@@ -20,6 +20,8 @@ public class ViewQuote extends HttpServlet {
Quote quote = QuoteUtil.getQuoteWithId(id);
resp.setContentType("text/html");
+ resp.getWriter().println(header);
+ resp.getWriter().println("<pre><hr>");
if (quote != null) {
Printer printer = new Printer(resp.getWriter());
@@ -29,4 +31,21 @@ public class ViewQuote extends HttpServlet {
resp.getWriter().println("Quote not found.");
}
}
+
+ private final String header =
+ "<html> " +
+ "<head> " +
+ "<meta name=\"robots\" content=\"noindex, nofollow\" /> " +
+ "<title>Quotes fra #linux.no på freenode</title> " +
+ "<style type=\"text/css\"> " +
+ "body {font-family: monospace;}" +
+ "hr {" +
+ " border-style: solid;" +
+ " border-color: black;" +
+ " border-width: 1px; " +
+ "}" +
+ "</style> " +
+ "</head> " +
+ "<body bgcolor=\"#FFFFFF\" text=\"#000000\" link=\"#000000\" vlink=\"#000000\"> ";
+
}