]> git.ipfire.org Git - people/ric9/ipfire.org.git/commitdiff
nopaste: Correctly wrap the content into the section
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 22 Feb 2024 19:14:39 +0000 (19:14 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 22 Feb 2024 19:14:39 +0000 (19:14 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/nopaste/view.html

index b0a88117b1c21e2cad662ef3d6f97c83af4682c2..eaa8bde248f5f2c5aa055c16463d644d68c1fea6 100644 (file)
                </div>
        </section>
 
-       <div class="container">
-               {% if content %}
-                       <div class="block">
-                               {% module Code(content) %}
-                       </div>
-               {% elif entry.mimetype.startswith("image/") %}
-                       <div class="block">
-                               <figure class="image">
-                                       <img src="/raw/{{ entry.uuid }}">
-                               </figure>
-                       </div>
-               {% end %}
+       <section class="section">
+               <div class="container">
+                       {% if content %}
+                               <div class="block">
+                                       {% module Code(content) %}
+                               </div>
+                       {% elif entry.mimetype.startswith("image/") %}
+                               <div class="block">
+                                       <figure class="image">
+                                               <img src="/raw/{{ entry.uuid }}">
+                                       </figure>
+                               </div>
+                       {% end %}
 
-               <div class="buttons">
-                       <a class="button is-primary is-fullwidth" href="/raw/{{ entry.uuid }}">
-                               <span class="icon-text">
-                                       <span class="icon">
-                                               <i class="fas fa-file-download"></i>
+                       <div class="buttons">
+                               <a class="button is-primary is-fullwidth" href="/raw/{{ entry.uuid }}">
+                                       <span class="icon-text">
+                                               <span class="icon">
+                                                       <i class="fas fa-file-download"></i>
+                                               </span>
+                                               <span>{{ _("Download") }} ({{ format_size(entry.size) }})</span>
                                        </span>
-                                       <span>{{ _("Download") }} ({{ format_size(entry.size) }})</span>
-                               </span>
-                       </a>
+                               </a>
+                       </div>
                </div>
-       </div>
+       </section>
 {% end block %}