From c60612be34ae9cc6e4c207b2c6cb11b0a147f97a Mon Sep 17 00:00:00 2001 From: Michael Snoyman Date: Sun, 17 May 2015 11:19:38 +0300 Subject: [PATCH] Add to nightly link --- templates/package.hamlet | 6 ++++++ templates/package.lucius | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/templates/package.hamlet b/templates/package.hamlet index f7b8caf..4d45bf4 100644 --- a/templates/package.hamlet +++ b/templates/package.hamlet @@ -31,6 +31,12 @@ $newline never #{prettyName (liSnapName li) (liGhc li)} (#{liVersion li}) + $if null latests +

+ This package is not currently in any snapshots. If you're interested in using it, we recommend # + adding it to Stackage Nightly + . Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks. +

diff --git a/templates/package.lucius b/templates/package.lucius index d257dd7..0bd3a83 100644 --- a/templates/package.lucius +++ b/templates/package.lucius @@ -245,3 +245,9 @@ div.plain-text { } } } + +.add-to-nightly { + border: 1px solid black; + padding: 0.5em; + background: #eef; +}