diff options
Diffstat (limited to 'ishtar_common/templates/index.html')
-rw-r--r-- | ishtar_common/templates/index.html | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/ishtar_common/templates/index.html b/ishtar_common/templates/index.html index eaaf7dd54..47c51223e 100644 --- a/ishtar_common/templates/index.html +++ b/ishtar_common/templates/index.html @@ -2,12 +2,6 @@ {% load i18n %} {% block content %}<div id="welcome" class="container"> <h2>{{welcome_title}}</h2> - {% if news_feed %} - <div id="news-feed" class="card p-3 mb-4"> - <h3><i class="fa fa-newspaper-o" aria-hidden="true"></i> {% trans "Latest news" %}</h3> - {{ news_feed|safe }} - </div> - {% endif %} <div class="row"> {% if display_random_image %} {{random_image}} @@ -19,6 +13,9 @@ </div> </div> </div> + {% if news_feed %} + <div id="news-feed" class="col col-12 mt-4"></div> + {% endif %} {% if display_statistics %} <div class="col col-lg-12 lead mt-4"> {% for label, number in statistics %} @@ -28,3 +25,8 @@ {% endif %} </div> </div>{% endblock %} +{% block end_js %} +$(document).ready(function() { + dynamic_load("/news-feed/", "#news-feed"); +}); +{% endblock %} |