mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-10 00:42:06 +00:00
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:
@ -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>
|
||||||
|
@ -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>
|
||||||
|
Reference in New Issue
Block a user