From 78dbc49f1a8d02f55a56eb8758a5b97578f9c7c4 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 24 Dec 2016 19:57:44 +0000 Subject: [PATCH] Fix url and conditionally show section --- templates/projects/project_page.html | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/templates/projects/project_page.html b/templates/projects/project_page.html index 400800e..fbb1a31 100644 --- a/templates/projects/project_page.html +++ b/templates/projects/project_page.html @@ -11,15 +11,17 @@ {% include_block page.body %} -
-
- {% if page.get_download_link %} - Download {{ page.title }} - {% endif %} + {% if page.get_download_link or page.project_url %} +
+
+ {% if page.get_download_link %} + Download {{ page.title }} + {% endif %} - {% if page.url %} - View Project - {% endif %} -
-
+ {% if page.project_url %} + View Project + {% endif %} +
+
+ {% endif %} {% endblock %}