Vervis/templates/repo/patch.hamlet
Pere Lev b9ab5e546a
Upgrade to LTS 18 (last LTS with GHC 8)
The major changes:

- No more hit and hit-* packages
- No more diagram and SVG font stuff
- Dependency on darcs is not yet removed
- No more persistent-graph i.e. recursive SQL queries
- Some hit-network stuff still in use, now part of Vervis itself
- Git operations use the git command-line program, a convenient API is provided
  in Data.Git.Local
- No more patch parsing and no diff view, patches are treated as a piece of
  text and displayed as-is (although I could add syntax-highlighting as a nice
  touch for the HTML view)
2024-07-18 13:57:41 +03:00

49 lines
1.2 KiB
Text

$# This file is part of Vervis.
$#
$# Written in 2018, 2019, 2022, 2024 by fr33domlover <fr33domlover@riseup.net>.
$#
$# ♡ Copying is an act of love. Please copy, reuse and share.
$#
$# The author(s) have dedicated all copyright and related and neighboring
$# rights to this software to the public domain worldwide. This software is
$# distributed without any warranty.
$#
$# You should have received a copy of the CC0 Public Domain Dedication along
$# with this software. If not, see
$# <http://creativecommons.org/publicdomain/zero/1.0/>.
<table>
<tr>
<td>By
<td>
$maybe (person, actor) <- mpersonWritten
^{personLinkW person actor}
$nothing
#{authorName author}
$maybe (committer, _) <- patchCommitted patch
;
$maybe (person, actor) <- mpersonCommitted
^{personLinkW person actor}
$nothing
#{authorName committer}
<tr>
<td>At
<td>
#{showDate written}
$maybe (_, committed) <- patchCommitted patch
; #{showDate committed}
<tr>
<td>Title
<td>#{patchTitle patch}
<tr>
<td>Description
<td>
<p>#{patchDescription patch}
<p>Parent commits:
<ol>
$forall parent <- parents
<li>#{parent}
<p>Diff:
<pre>#{patchDiff patch}