]> git.ipfire.org Git - ipfire.org.git/commitdiff
wiki: Show empty indicator for watchlist
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 30 May 2019 15:19:56 +0000 (16:19 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 30 May 2019 15:19:56 +0000 (16:19 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/wiki/watchlist.html

index a8f0ada4971d83bf9c01e56a04f95130776dae39..2234fecb9ae378e0391187b763231bb952b8c0b5 100644 (file)
                <div class="card-body">
                        <h5>{{ _("Your Watchlist") }}</h5>
 
-                       {% module WikiList(pages) %}
+                       {% if pages %}
+                               {% module WikiList(pages) %}
+                       {% else %}
+                               <div class="alert alert-light mb-0">
+                                       {{ _("You do not have any pages on your watchlist") }}
+                               </div>
+                       {% end %}
                </div>
        </div>
 {% end block %}