diff default/blog/discover.html @ 136:4eda3d0ddb22

blog (discover): don't display alternative instructions if not disco entities are available (i.e. if the only choice is free jid)
author Goffi <goffi@goffi.org>
date Tue, 27 Mar 2018 08:30:07 +0200
parents f1d47c2942ae
children
line wrap: on
line diff
--- a/default/blog/discover.html	Mon Mar 26 21:30:04 2018 +0200
+++ b/default/blog/discover.html	Tue Mar 27 08:30:07 2018 +0200
@@ -25,7 +25,9 @@
     </ul>
 </div>
 
-<p class="instructions--alt">{% trans %}Or enter the jid of a blog writer{% endtrans %}</p>
+{% if disco_entities %}
+    <p class="instructions--alt">{% trans %}Or enter the jid of a blog writer{% endtrans %}</p>
+{% endif %}
 {% call form.form(class="form_single") %}
     {{ field.text("jid", _("blog writer jid"), required=true)}}
     {{ field.submit(_("Consult")) }}