]> git.ipfire.org Git - ipfire.org.git/commitdiff
blog: Simplify markup for buttons below posts
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 1 Sep 2018 12:21:27 +0000 (13:21 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 1 Sep 2018 12:21:27 +0000 (13:21 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/blog/modules/post.html

index 7ca26cf19415a96907a8913b8900c4db908d27c7..bc82b24052d68f4aa4954a6f69bd1438dee357d7 100644 (file)
                {% raw post.html %}
        </div>
 
-       {% if "lightningwirelabs.com" in post.tags and post.link %}
-               <div class="row">
-                       <div class="col text-center">
-                               <a class="btn btn-lwl" href="{{ post.link }}">
-                                       Go to Lightning Wire Labs <!-- XXX icon -->
-                               </a>
-                       </div>
-               </div>
-       {% end %}
-
-       {% if post.release %}
-               <div class="btn-toolbar justify-content-center">
+       <div class="btn-toolbar justify-content-center">
+               {% if "lightningwirelabs.com" in post.tags and post.link %}
+                       <a class="btn btn-lwl" href="{{ post.link }}">
+                               Go to Lightning Wire Labs <!-- XXX icon -->
+                       </a>
+               {% end %}
+
+               {% if post.release %}
                        <a class="btn btn-primary" href="https://www.ipfire.org/download/{{ post.release.slug }}">
                                {{ _("Download %s now") % post.release }} <!-- XXX icon -->
                        </a>
@@ -44,6 +40,6 @@
                        <a class="btn btn-outline-primary ml-2" href="https://www.ipfire.org/donate">
                                <svg class="icon i_heart"><use xlink:href="#heart"/></svg> {{ _("Donate") }}
                        </a>
-               </div>
-       {% end %}
+               {% end %}
+       </div>
 </div>