Include base stylesheet via link instead of style

Instead of using <style> with import, set an explicit link like we do
for other stylesheets. This will make it possible to turn on a content
security policy for CSS.
This commit is contained in:
Magnus Hagander
2018-12-20 16:27:55 +01:00
parent d258d66481
commit 6b04237918
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@
{%endfor%} {%endfor%}
<link rel="alternate" type="application/rss+xml" title="PostgreSQL Events" href="/events.rss" /> <link rel="alternate" type="application/rss+xml" title="PostgreSQL Events" href="/events.rss" />
{%endif%} {%endif%}
<style type="text/css" media="screen" title="Normal Text">@import url("/dyncss/base.css?{{gitrev}}");</style> <link rel="stylesheet" type="text/css" href="/dyncss/base.css?{{gitrev}}">
{%block extrahead%}{%endblock%} {%block extrahead%}{%endblock%}
</head> </head>
<body> <body>

View File

@ -18,7 +18,7 @@
{%endfor%} {%endfor%}
<link rel="alternate" type="application/rss+xml" title="PostgreSQL Events" href="/events.rss" /> <link rel="alternate" type="application/rss+xml" title="PostgreSQL Events" href="/events.rss" />
{%endif%} {%endif%}
<style type="text/css" media="screen" title="Normal Text">@import url("/dyncss/base.css?{{gitrev}}");</style> <link rel="stylesheet" type="text/css" href="/dyncss/base.css?{{gitrev}}">
{%block extrahead%}{%endblock%} {%block extrahead%}{%endblock%}
</head> </head>
<body> <body>