1
0
Fork 0
mirror of https://code.sup39.dev/repos/Wqawg synced 2024-12-27 17:54:53 +09:00

Make the homepage repo table a bit more friendly

This commit is contained in:
fr33domlover 2016-04-12 23:09:52 +00:00
parent ea71f30d96
commit 979156b8ae
2 changed files with 16 additions and 5 deletions

View file

@ -52,7 +52,7 @@ intro = do
ago <- case mdt of
Nothing -> return "never"
Just dt -> timeAgo dt
return (sharer, fromMaybe "(none)" mproj, repo, ago)
return (sharer, mproj, repo, ago)
defaultLayout $ do
setTitle "Welcome to Vervis!"
$(widgetFile "homepage")

View file

@ -25,11 +25,22 @@ $# <http://creativecommons.org/publicdomain/zero/1.0/>.
<h2>Repos
<table>
$forall (sharer, proj, repo, ago) <- rows
<tr>
<th>Sharer
<th>Project
<th>Repo
<th>Last change
$forall (sharer, mproj, repo, ago) <- rows
<tr>
<td>#{sharer}
<td>#{proj}
<td>#{repo}
<td>
<a href=@{PersonR sharer}>#{sharer}
<td>
$maybe proj <- mproj
<a href=@{ProjectR sharer proj}>#{proj}
$nothing
(none)
<td>
<a href=@{RepoR sharer repo}>#{repo}
<td>#{ago}
<h2>People