Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/survey_server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2016-08-17 11:39:27 +0300
committerBjoern Schiessle <bjoern@schiessle.org>2016-08-17 11:39:27 +0300
commitafa58f346bdc5f1666b5229238d56ac7b5d2c378 (patch)
tree65d2e860c7f9644e21d719b0f0d8fe2f2cb6e935
parent5be7226ff59e2cda735201c2abcc6bc807b24e2a (diff)
show a message if no statistics are available instead of empty tables
-rw-r--r--templates/part.content.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/part.content.php b/templates/part.content.php
index a50b93c..9ddcae0 100644
--- a/templates/part.content.php
+++ b/templates/part.content.php
@@ -21,6 +21,10 @@
?>
<div id="surveyResults">
+ <?php if(empty($_['statistics'])) { ?>
+ No statistics available, please try later
+ <?php } else { ?>
+
<div class="section" id="generalStatistics">
<h1>General Statistics</h1>
@@ -84,5 +88,5 @@
</div>
<?php } ?>
<?php } ?>
-
+ <?php } ?>
</div>