Fix bug with homepage showing up instead of empty result

This commit is contained in:
Mint 2022-11-30 23:20:39 +03:00
parent 7f0db59e64
commit d13b67d8c2

View file

@ -102,12 +102,12 @@
{% endfor %} {% endfor %}
</table> </table>
</div> </div>
{% elif reason or blocks or reverse %} {% elif reason or domain or reverse %}
{% if reason %} {% if reason %}
<h1>Instances that use "{{reason}}" in their reason</h1> <h1>Instances that use "{{reason}}" in their reason</h1>
{% elif reverse %} {% elif reverse %}
<h1>Instances that are blocked by {{reverse}}</h1> <h1>Instances that are blocked by {{reverse}}</h1>
{% elif blocks %} {% elif domain %}
<h1>Instances that block {{domain}}</h1> <h1>Instances that block {{domain}}</h1>
{% endif %} {% endif %}
{% for block_level in blocks %} {% for block_level in blocks %}
@ -160,7 +160,7 @@
known instances: {{info.known_instances}}<br/> known instances: {{info.known_instances}}<br/>
indexed instances: {{info.indexed_instances}}<br/> indexed instances: {{info.indexed_instances}}<br/>
blocks recorded: {{info.blocks_recorded}}<br/> blocks recorded: {{info.blocks_recorded}}<br/>
source code: <a href="https://git.kiwifarms.net/mint/fedi-block-api">git.kiwifarms.net/mint/fedi-block-api</a> (<a href="https://gitgud.io/mintplg/fedi-block-api">mirror</a>)<br/> source code: <a href="https://git.kiwifarms.net/mint/fedi-block-api">git.kiwifarms.net/mint/fedi-block-api</a> (<a href="https://gitgud.io/mintplg/fedi-block-api">mirror</a>)<br/><br/>
fuck jannies<br/> fuck jannies<br/>
#FreeMyNigga #FreeMyNigga
</div> </div>