[index] Allow hiding of inactive bridges when shown

This commit is contained in:
logmanoriginal 2016-08-07 15:06:48 +02:00
parent d98a7d6644
commit 75f7a32b99

View file

@ -187,7 +187,13 @@ $formats = Format::searchInformation();
<section>
<a href="https://github.com/sebsauvage/rss-bridge">RSS-Bridge alpha 0.2 ~ Public Domain</a><br />
<?= $activeFoundBridgeCount; ?>/<?= count($bridgeList) ?> active bridges. <br />
<a href="?show_inactive=1"><button class="small">Show inactive bridges</button></a><br />
<?php
// FIXME: This should be done in pure CSS
if(!$showInactive)
echo '<a href="?show_inactive=1"><button class="small">Show inactive bridges</button></a><br />';
else
echo '<a href="?show_inactive=0"><button class="small">Hide inactive bridges</button></a><br />';
?>
</section>
</body>
</html>