Skip to content

Commit

Permalink
Merge #176: Use a proper class and fix version rendering
Browse files Browse the repository at this point in the history
Approved-by: rudymatela
Auto-deploy: false
  • Loading branch information
OpsBotPrime committed Aug 24, 2022
2 parents 95a4ac9 + 76f76a9 commit 8caf09a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/WebInterface.hs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import Text.Blaze (toValue, (!))
import Text.Blaze.Html.Renderer.Utf8
import Text.Blaze.Html5 (Html, a, body, div, docTypeHtml, h1, h2, h3, head, link, meta, p, span,
title, toHtml)
import Text.Blaze.Html5.Attributes (charset, class_, content, href, id, name, rel, style)
import Text.Blaze.Html5.Attributes (charset, class_, content, href, id, name, rel)
import Text.Blaze.Internal (Attribute, AttributeValue, attribute)

import qualified Data.ByteString.Lazy as LazyByteString
Expand Down Expand Up @@ -84,7 +84,7 @@ renderPage pageTitle bodyHtml = renderHtml $ docTypeHtml $ do
body $
div ! id "content" $ do
bodyHtml
p ! style "text-align:right;font-size:smaller;margin-top:2em" $ "Hoff v" <> toHtml (showVersion version)
p ! class_ "version" $ "Hoff v" <> toHtml (showVersion version)

-- Integrity attribute for subresource integrity. Blaze doesn't have
-- this yet, but this is what their implementation would look like.
Expand Down
7 changes: 7 additions & 0 deletions static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,10 @@ span.review a
{
color: #8c8e81;
}

p.version
{
text-align: right;
font-size: smaller;
margin-top: 2em;
}

0 comments on commit 8caf09a

Please sign in to comment.