Links for inclusive/exclusive Wiki page #3

Pinging @chrisdone
This commit is contained in:
Michael Snoyman 2014-08-25 10:10:22 +03:00
parent 31cb060ea9
commit 2b731f15fc
3 changed files with 8 additions and 0 deletions

View File

@ -11,6 +11,9 @@ getStackageHomeR ident = do
return (stackage, user) return (stackage, user)
hasBundle <- storeExists $ SnapshotBundle ident hasBundle <- storeExists $ SnapshotBundle ident
let isInclusiveOrExclusive =
"inclusive" `isSuffixOf` stackageTitle stackage ||
"exclusive" `isSuffixOf` stackageTitle stackage
defaultLayout $ do defaultLayout $ do
setTitle $ toHtml $ stackageTitle stackage setTitle $ toHtml $ stackageTitle stackage
$(widgetFile "stackage-home") $(widgetFile "stackage-home")

View File

@ -8,6 +8,8 @@
<li> <li>
<a href=@{StackageHomeR ident}> <a href=@{StackageHomeR ident}>
#{title} #{title}
<p>
<a href="https://github.com/fpco/stackage/wiki/Stackage-Server-FAQ#whats-the-difference-between-inclusive-and-exclusive-snapshots">What's the difference between inclusive and exclusive snapshots?</a>
<h2 .getting-started> <h2 .getting-started>
Getting Started Getting Started
<p>For prerequisites and compiler installation instructions, please see the wiki page <a href="https://github.com/fpco/stackage/wiki/Preparing-your-system-to-use-Stackage">Preparing your system to use Stackage</a>. <p>For prerequisites and compiler installation instructions, please see the wiki page <a href="https://github.com/fpco/stackage/wiki/Preparing-your-system-to-use-Stackage">Preparing your system to use Stackage</a>.

View File

@ -16,6 +16,9 @@ $newline never
<p> <p>
<pre> <pre>
remote-repo: stackage:@{StackageHomeR ident} remote-repo: stackage:@{StackageHomeR ident}
$if isInclusiveOrExclusive
<p>
<a href="https://github.com/fpco/stackage/wiki/Stackage-Server-FAQ#whats-the-difference-between-inclusive-and-exclusive-snapshots">What's the difference between inclusive and exclusive snapshots?</a>
<h3> <h3>
Setup guide # Setup guide #
<small> <small>