]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
templates: Move download buttons outside h1 tag
authorAndrew Donnellan <ajd@linux.ibm.com>
Thu, 31 Oct 2019 06:27:20 +0000 (17:27 +1100)
committerDaniel Axtens <dja@axtens.net>
Mon, 4 Nov 2019 21:47:31 +0000 (08:47 +1100)
It's not valid to put a <div> inside an <h1>. Move the download buttons in
the submission template outside the <h1> tag.

Signed-off-by: Andrew Donnellan <ajd@linux.ibm.com>
Signed-off-by: Daniel Axtens <dja@axtens.net>
patchwork/templates/patchwork/submission.html

index b5b55dbd9241a2fb78ba14a239b8939f2fb1fbd1..b3849789b1fde99e286f9663c673d8c20043380a 100644 (file)
@@ -27,9 +27,10 @@ function toggle_div(link_id, headers_id)
 }
 </script>
 
-<h1>{{ submission.name }}
-{% include "patchwork/partials/download-buttons.html" %}
-</h1>
+<div>
+  {% include "patchwork/partials/download-buttons.html" %}
+  <h1>{{ submission.name }}</h1>
+</div>
 
 <table class="patchmeta">
  <tr>
@@ -273,11 +274,10 @@ function toggle_div(link_id, headers_id)
 {% endfor %}
 
 {% if submission.diff %}
-<h2>
- Patch
- {% include "patchwork/partials/download-buttons.html" %}
-</h2>
-
+<div>
+  {% include "patchwork/partials/download-buttons.html" %}
+  <h2>Patch</h2>
+</div>
 <div id="patch" class="patch">
 <pre class="content">
 {{ submission|patchsyntax }}