From df987c11810f76040c4688dcb9660b355e79ebbb Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 15 Jan 2017 14:12:05 +0000 Subject: [PATCH] Fix project buttons layout --- theme/templates/projects.html | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/theme/templates/projects.html b/theme/templates/projects.html index 486b0c6..0d3407d 100644 --- a/theme/templates/projects.html +++ b/theme/templates/projects.html @@ -18,15 +18,19 @@ {{ article.content }} -
-
- {% if article.download_link %} - Download {{ article.title }} - {% endif %} + {% if article.download_link or aricle.repo %} +
+
+
+ {% if article.download_link %} + Download {{ article.title }} + {% endif %} - {% if article.repo %} - View on Github - {% endif %} -
-
+ {% if article.repo %} + View on Github + {% endif %} +
+
+ + {% endif %} {% endblock %}