1
0
Fork 0
mirror of https://code.sup39.dev/repos/Wqawg synced 2024-12-28 10:34: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 ago <- case mdt of
Nothing -> return "never" Nothing -> return "never"
Just dt -> timeAgo dt Just dt -> timeAgo dt
return (sharer, fromMaybe "(none)" mproj, repo, ago) return (sharer, mproj, repo, ago)
defaultLayout $ do defaultLayout $ do
setTitle "Welcome to Vervis!" setTitle "Welcome to Vervis!"
$(widgetFile "homepage") $(widgetFile "homepage")

View file

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