mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-01-31 21:30:25 +01:00
Merge pull request #167 from charles-cooper/master
Link to changelogs in snapshot diff
This commit is contained in:
commit
b16a9b4f37
@ -20,6 +20,11 @@ parseLtsPair t1 = do
|
|||||||
(y, "") <- either (const Nothing) Just $ decimal t3
|
(y, "") <- either (const Nothing) Just $ decimal t3
|
||||||
Just (x, y)
|
Just (x, y)
|
||||||
|
|
||||||
|
packageUrl :: SnapName -> PackageName -> Version -> Route App
|
||||||
|
packageUrl sname pkgname pkgver = SnapshotR sname sdistR
|
||||||
|
where
|
||||||
|
sdistR = StackageSdistR (PNVNameVersion pkgname pkgver)
|
||||||
|
|
||||||
haddockUrl :: SnapName
|
haddockUrl :: SnapName
|
||||||
-> Text -- ^ package-version
|
-> Text -- ^ package-version
|
||||||
-> Text -- ^ module name
|
-> Text -- ^ module name
|
||||||
|
|||||||
@ -111,7 +111,7 @@ $if not (LT.null (LT.renderHtml (packageDescription package)))
|
|||||||
<i class="fa fa-angle-down">
|
<i class="fa fa-angle-down">
|
||||||
|
|
||||||
$if not (LT.null (LT.renderHtml (packageChangelog package)))
|
$if not (LT.null (LT.renderHtml (packageChangelog package)))
|
||||||
<div .container .content>
|
<div .container .content id=changes>
|
||||||
<div .row>
|
<div .row>
|
||||||
<div .span12>
|
<div .span12>
|
||||||
<h2 .changes-title>Changes
|
<h2 .changes-title>Changes
|
||||||
|
|||||||
@ -33,15 +33,23 @@
|
|||||||
$else
|
$else
|
||||||
<option value=@{StackageDiffR name1 name2'}>#{toPathPiece name2'}
|
<option value=@{StackageDiffR name1 name2'}>#{toPathPiece name2'}
|
||||||
<tbody>
|
<tbody>
|
||||||
$forall (PackageName name, VersionChange verChange) <- toDiffList snapDiff
|
$forall (pkgname, VersionChange verChange) <- toDiffList snapDiff
|
||||||
<tr>
|
<tr>
|
||||||
$case verChange
|
$case verChange
|
||||||
$of This (Version oldVersion)
|
$of This oldVersion
|
||||||
<td>#{name}-#{oldVersion}
|
|
||||||
<td>
|
<td>
|
||||||
$of That (Version newVersion)
|
<a href=@{packageUrl name1 pkgname oldVersion}#changes}>
|
||||||
|
#{pkgname}-#{oldVersion}
|
||||||
<td>
|
<td>
|
||||||
<td>#{name}-#{newVersion}
|
$of That newVersion
|
||||||
$of These (Version oldVersion) (Version newVersion)
|
<td>
|
||||||
<td>#{name}-#{oldVersion}
|
<td>
|
||||||
<td>#{name}-#{newVersion}
|
<a href=@{packageUrl name2 pkgname newVersion}#changes>
|
||||||
|
#{pkgname}-#{newVersion}
|
||||||
|
$of These oldVersion newVersion
|
||||||
|
<td>
|
||||||
|
<a href=@{packageUrl name1 pkgname oldVersion}#changes>
|
||||||
|
#{pkgname}-#{oldVersion}
|
||||||
|
<td>
|
||||||
|
<a href=@{packageUrl name2 pkgname newVersion}#changes>
|
||||||
|
#{pkgname}-#{newVersion}
|
||||||
|
|||||||
@ -53,8 +53,7 @@ $newline never
|
|||||||
$forall pli <- packages
|
$forall pli <- packages
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<a href=@{SnapshotR name $ StackageSdistR $ PNVNameVersion (PackageName $ toPathPiece $ pliName pli) $ Version (pliVersion pli)}>
|
<a href=@{packageUrl name (PackageName $ pliName pli) (Version $ pliVersion pli)}>
|
||||||
#{pliName pli}
|
#{pliName pli}-#{pliVersion pli}
|
||||||
-#{pliVersion pli}
|
|
||||||
<td>
|
<td>
|
||||||
#{strip $ pliSynopsis pli}
|
#{strip $ pliSynopsis pli}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user