Handler.Feed: colorize package version diff as well

This commit is contained in:
Andrei Dziahel 2017-12-31 13:54:39 +03:00
parent 354374b0db
commit 7473c0cb42

View File

@ -69,7 +69,7 @@ getContent sid2 snap = do
<th align=right>Old <th align=right>Old
<th align=left>New <th align=left>New
<tbody> <tbody>
$forall (pkgname@(PackageName name), VersionChange change) <- toDiffList snapDiff $forall (pkgname@(PackageName name), VersionChange change, versionDiff) <- toVersionedDiffList snapDiff
<tr> <tr>
<th align=right>#{name} <th align=right>#{name}
$case change $case change
@ -84,6 +84,16 @@ getContent sid2 snap = do
<a href=@{packageUrl name2 pkgname new}#changes> <a href=@{packageUrl name2 pkgname new}#changes>
#{new} #{new}
$of These old new $of These old new
$maybe (common, left, right) <- versionDiff
<td align=right>
<a href=@{packageUrl name1 pkgname old}#changes>
#{common}#
<span style="background-color: #fcc">#{left}
<td>
<a href=@{packageUrl name2 pkgname new}#changes>
#{common}#
<span style="background-color: #cfc">#{right}
$nothing
<td align=right> <td align=right>
<a href=@{packageUrl name1 pkgname old}#changes> <a href=@{packageUrl name1 pkgname old}#changes>
#{old} #{old}