From b19cfa6d4833e4982234b92690d60a88c2d019f1 Mon Sep 17 00:00:00 2001 From: Leon Noe Jovan Date: Mon, 14 Feb 2022 17:37:41 +0100 Subject: [PATCH] added check if empty --- templates/solar-pogodbe.html | 3 ++- templates/solar-zgodovina.html | 8 +++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/templates/solar-pogodbe.html b/templates/solar-pogodbe.html index 977a93b..2534ac4 100644 --- a/templates/solar-pogodbe.html +++ b/templates/solar-pogodbe.html @@ -55,7 +55,7 @@

Sodelujoči

--> -
+

Število oddaj na uporabnika

@@ -112,6 +112,7 @@ // Parse the Data d3.json("/topuploads-institution/{{institution_id}}").then(function(jsondata) { if(Object.keys(jsondata).length < 1) { + document.getElementById("my_dataviz_title").remove(); return; } data = []; diff --git a/templates/solar-zgodovina.html b/templates/solar-zgodovina.html index ce7b343..b7fdb24 100644 --- a/templates/solar-zgodovina.html +++ b/templates/solar-zgodovina.html @@ -98,7 +98,13 @@ }%} - + {% if upload_history|length == 0 %} +
+
+

Zgodovina sodelovanja je trenutno še prazna.

+
+
+ {% endif %} {% for item in upload_history %} {% set item_values = [] %} {% if institution_names[loop.index - 1] %}