@@ -25,7 +25,7 @@ module Distribution.Server.Pages.Package
25
25
26
26
import Distribution.Server.Features.PreferredVersions
27
27
28
- import Distribution.Server.Pages.Template (hackagePageWith )
28
+ import Distribution.Server.Pages.Template (hackagePageWithHead )
29
29
import qualified Distribution.Server.Pages.Package.HaddockParse as Haddock
30
30
import Distribution.Server.Pages.Package.HaddockHtml
31
31
import Distribution.Server.Packages.ModuleForest
@@ -37,7 +37,6 @@ import qualified Distribution.ModuleName as Module
37
37
import Distribution.ModuleName (ModuleName )
38
38
import Distribution.Package
39
39
import Distribution.PackageDescription as P
40
- import Distribution.Simple.Utils ( cabalVersion )
41
40
import Distribution.Version
42
41
import Distribution.Types.CondTree
43
42
import Distribution.Text (display )
@@ -72,7 +71,7 @@ packagePage :: PackageRender -> [Html] -> [Html] -> [(String, Html)]
72
71
packagePage render headLinks top sections
73
72
bottom mdocIndex mreadMe
74
73
docURL isCandidate =
75
- hackagePageWith [canonical] docTitle docSubtitle docBody [docFooter]
74
+ hackagePageWithHead [canonical] docTitle docBody
76
75
where
77
76
pkgid = rendPkgId render
78
77
pkgName = display $ packageName pkgid
@@ -85,7 +84,6 @@ packagePage render headLinks top sections
85
84
++ case synopsis (rendOther render) of
86
85
" " -> " "
87
86
short -> " : " ++ short
88
- docSubtitle = anchor ! [theclass " caption" ] << " Hackage :: [Package]"
89
87
90
88
docBody = bodyTitle
91
89
: concat [
@@ -123,14 +121,6 @@ packagePage render headLinks top sections
123
121
items -> [thediv ! [thestyle " font-size: small" ] <<
124
122
(map (\ item -> " [" +++ item +++ " ] " ) items)]
125
123
126
- docFooter = thediv ! [identifier " footer" ]
127
- << paragraph
128
- << [ toHtml " Produced by "
129
- , anchor ! [href " /" ] << " hackage"
130
- , toHtml " and "
131
- , anchor ! [href cabalHomeURL] << " Cabal"
132
- , toHtml (" " ++ display cabalVersion) ]
133
-
134
124
pair (title, content) =
135
125
toHtml [ h2 << title, content ]
136
126
@@ -676,7 +666,3 @@ packageURL pkgId = "/package" </> display pkgId
676
666
677
667
-- cabalLogoURL :: URL
678
668
-- cabalLogoURL = "/built-with-cabal.png"
679
-
680
- -- global URLs
681
- cabalHomeURL :: URL
682
- cabalHomeURL = " http://haskell.org/cabal/"
0 commit comments