diff options
author | Vincent Ambo <viam@humac.com> | 2012-03-03T03·02+0100 |
---|---|---|
committer | Vincent Ambo <viam@humac.com> | 2012-03-03T03·02+0100 |
commit | 7114876693cf5b2ce9ac4b7d7c5121aba4be94e2 (patch) | |
tree | dec26763f79629d3000adf2e798e4fc54198e77e /src/Blog.hs | |
parent | 65a5443e2d3f523dc3a61e6cdf2a9a588e6ac368 (diff) |
* limiting amount of queries with couchDB's limit parameter
Diffstat (limited to 'src/Blog.hs')
-rw-r--r-- | src/Blog.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Blog.hs b/src/Blog.hs index 61c8bc3f029d..0709dd3a3b2a 100644 --- a/src/Blog.hs +++ b/src/Blog.hs @@ -72,12 +72,12 @@ blogTemplate lang t_append body = H.docTypeHtml $ do --add body H.a ! A.href (toValue imu) ! A.target "_blank" $ "iMessage" "." -renderEntries :: [Entry] -> Int -> String-> Html -renderEntries entries num topText = H.div ! A.class_ "innerBox" $ do +renderEntries :: [Entry] -> String-> Html +renderEntries entries topText = H.div ! A.class_ "innerBox" $ do H.div ! A.class_ "innerBoxTop" $ toHtml topText H.div ! A.class_ "innerBoxMiddle" $ do H.ul $ - sequence_ $ take num $ reverse $ map showEntry entries + sequence_ $ reverse $ map showEntry entries where showEntry :: Entry -> Html showEntry e = H.li $ do |