Skip to content

Commit 4cc6547

Browse files
author
Soorya Narayan
committed
Cleaned up HTML Templates
1 parent a7494a1 commit 4cc6547

13 files changed

+491
-7041
lines changed

Distribution/Server/Features/Html.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ initHtmlFeature env@ServerEnv{serverTemplatesDir, serverTemplatesMode,
131131
, "distro-monitor.html"
132132
, "revisions.html"
133133
, "package-page.html"
134-
, "tag-interface.html"
134+
, "table-interface.html"
135135
, "tag-edit.html"
136136
, "graph.html"
137137
]
@@ -618,7 +618,7 @@ mkHtmlCore ServerEnv{serverBaseURI}
618618
pkgDetails <- liftIO $ makeItemList packageNames
619619
let rowList = map makeRow pkgDetails
620620
tabledata = "" +++ rowList +++ ""
621-
template <- getTemplate templates "tag-interface.html"
621+
template <- getTemplate templates "table-interface.html"
622622
return $ toResponse $ template
623623
[ "heading" $= "All packages"
624624
, "content" $= "A browsable index of all the packages"
@@ -1568,7 +1568,7 @@ mkHtmlTags HtmlUtilities{..}
15681568
(mtag, histogram) = Map.updateLookupWithKey (\_ _ -> Nothing) tg $ tagHistogram items
15691569
-- make a 'related tags' section, so exclude this tag from the histogram
15701570
count = fromMaybe 0 mtag
1571-
template <- getTemplate templates "tag-interface.html"
1571+
template <- getTemplate templates "table-interface.html"
15721572
return $ toResponse $ template
15731573
[ "heading" $= tagd
15741574
, "content" $= case items of
@@ -1693,7 +1693,7 @@ mkHtmlSearch HtmlUtilities{..}
16931693

16941694
let rowList = map makeRow pkgDetails
16951695
tabledata = "" +++ rowList
1696-
template <- getTemplate templates "tag-interface.html"
1696+
template <- getTemplate templates "table-interface.html"
16971697
return $ toResponse $ template
16981698
[ "heading" $= toHtml (searchForm termsStr False)
16991699
, "content" $= "A browsable index of all the packages"

datafiles/static/datatables/jquery.dataTables.min.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)