package.hamlet: link to hackage, license/author markup, number of revdeps

This commit is contained in:
Jens Petersen 2016-02-17 17:59:23 +09:00
parent 6fcb72889f
commit 30896f3663

View File

@ -17,7 +17,8 @@ $newline never
<h1> <h1>
#{pn} # #{pn} #
<span .latest-version> <span .latest-version>
#{displayedVersion} # <a href="https://hackage.haskell.org/package/#{pn}">
#{displayedVersion}
<p .synopsis> <p .synopsis>
#{synopsis} #{synopsis}
\ # \ #
@ -41,12 +42,11 @@ $newline never
<div .span12> <div .span12>
<div .authorship> <div .authorship>
<span .license> <span .license>
<a href=""> #{packageLicenseName package} licensed
#{packageLicenseName package} licensed #
$if null maintainers $if null maintainers
and maintained # and maintained #
$if not (null authors) $if not (null authors)
by # \ by #
$forall (i,identity) <- authors $forall (i,identity) <- authors
<strong .author> <strong .author>
$case identity $case identity
@ -126,7 +126,7 @@ $if not (LT.null (LT.renderHtml (packageChangelog package)))
#{name} #{name}
$if not $ null revdeps $if not $ null revdeps
<div .reverse-dependencies .expanding #reverse-dependencies> <div .reverse-dependencies .expanding #reverse-dependencies>
Used by Used by #{length revdeps} packages:
<div .dep-list> <div .dep-list>
$forall (i,(name, range)) <- revdeps $forall (i,(name, range)) <- revdeps
$if i /= 0 $if i /= 0