summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKjetil Ørbekk <orbekk@pvv.ntnu.no>2010-09-04 11:00:11 -0400
committerKjetil Ørbekk <orbekk@pvv.ntnu.no>2010-09-04 11:00:11 -0400
commita75305bf103568af904028d0bc63e35056f9bc9c (patch)
treebbb68aae98cc4866e35eb386f1c2eb3d12c06e55 /src
parentaee0930bf89ecf1afcaa2878bf06cdc3b744ca55 (diff)
Fix quote numbers displayed on front page
Diffstat (limited to 'src')
-rw-r--r--src/lq/Printer.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lq/Printer.java b/src/lq/Printer.java
index beee449..14d08f9 100644
--- a/src/lq/Printer.java
+++ b/src/lq/Printer.java
@@ -11,9 +11,16 @@ public class Printer {
}
public void printQuote(Quote quote) {
+ printQuote(quote, null);
+ }
+
+ public void printQuote(Quote quote, Long displayIndex) {
+ if (displayIndex == null) {
+ displayIndex = quote.getId();
+ }
out.println("<br>");
out.println("<a href=\"/view_quote?id=" + quote.getId() + "\">" +
- "#" + quote.getId() +
+ "#" + displayIndex +
"</a>"+
", lagt til av " + Strings.escape(quote.getAuthor()) + "<br>");