From a18e5870bb1a19128f7eb2764f8cda2380542d4f Mon Sep 17 00:00:00 2001 From: Dan Staples Date: Mon, 29 Apr 2019 11:55:47 -0400 Subject: [PATCH] Only show Links section on officer profile if there are >= 1 links --- OpenOversight/app/templates/partials/links_and_videos_row.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OpenOversight/app/templates/partials/links_and_videos_row.html b/OpenOversight/app/templates/partials/links_and_videos_row.html index 2cc2f5d90..11d84bcf0 100644 --- a/OpenOversight/app/templates/partials/links_and_videos_row.html +++ b/OpenOversight/app/templates/partials/links_and_videos_row.html @@ -1,3 +1,4 @@ +{% if obj.links|length > 0 %}

Links

@@ -123,3 +124,4 @@

Other videos

{% endif %} {% endfor %}
{# end row #} +{% endif %}