Skip to content
Snippets Groups Projects
Unverified Commit dabb01fa authored by Jaime Pérez Crespo's avatar Jaime Pérez Crespo
Browse files

Use external CSS in the post template.

This allows us to get rid of inline styles.
parent c50a29fc
No related branches found
No related tags found
No related merge requests found
...@@ -3,9 +3,10 @@ ...@@ -3,9 +3,10 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; style-src 'unsafe-inline'"> <meta http-equiv="Content-Security-Policy" content="default-src 'self'">
<link rel="icon" href="/{{ baseurlpath }}resources/icons/favicon.ico"> <link rel="icon" href="/{{ baseurlpath }}resources/icons/favicon.ico">
<title>{% trans %}Sending message{% endtrans %}</title> <title>{% trans %}Sending message{% endtrans %}</title>
<link rel="stylesheet" href="/{{ baseurlpath }}resources/post.css">
<script src="/{{ baseurlpath }}resources/post.js"></script> <script src="/{{ baseurlpath }}resources/post.js"></script>
</head> </head>
<body> <body>
...@@ -15,7 +16,7 @@ ...@@ -15,7 +16,7 @@
https://developer.mozilla.org/en/DOM/form.submit#Specification https://developer.mozilla.org/en/DOM/form.submit#Specification
#} #}
<input type="submit" id="postLoginSubmitButton" style="display: none"> <input type="submit" id="postLoginSubmitButton">
{%- for name, value in post %} {%- for name, value in post %}
{%- if value is iterable %} {%- if value is iterable %}
{%- for index, item in value %} {%- for index, item in value %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment