From e2e9fc3d1885f882df487aec0e01ee543fae3bf6 Mon Sep 17 00:00:00 2001 From: Benjamin Barenblat Date: Sat, 27 Apr 2013 18:04:33 -0400 Subject: Forum: More layout tweaking --- forum/forum.ur | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'forum/forum.ur') diff --git a/forum/forum.ur b/forum/forum.ur index d017900..6e62b83 100644 --- a/forum/forum.ur +++ b/forum/forum.ur @@ -25,6 +25,8 @@ open Asker style questionList style questionMetadata +style questionEntryTitle +style questionEntryBody table question : { Id : int, Title : string, @@ -47,19 +49,22 @@ fun prettyPrintQuestion row : xbody = fun main () : transaction page = - newestQuestions <- queryX (SELECT * FROM question) prettyPrintQuestion; + newestQuestions <- queryX (SELECT * FROM question + ORDER BY Question.Id DESC + LIMIT 5) + prettyPrintQuestion; askerOpt <- getName; return ( Template.generic (Some "Forum")
-

All questions:

+

Latest questions

    {newestQuestions}
-

Ask a new question:

+

Ask a new question

-
-