[index] Allow hiding of inactive bridges when shown
This commit is contained in:
parent
d98a7d6644
commit
75f7a32b99
1 changed files with 7 additions and 1 deletions
|
@ -187,7 +187,13 @@ $formats = Format::searchInformation();
|
||||||
<section>
|
<section>
|
||||||
<a href="https://github.com/sebsauvage/rss-bridge">RSS-Bridge alpha 0.2 ~ Public Domain</a><br />
|
<a href="https://github.com/sebsauvage/rss-bridge">RSS-Bridge alpha 0.2 ~ Public Domain</a><br />
|
||||||
<?= $activeFoundBridgeCount; ?>/<?= count($bridgeList) ?> active bridges. <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>
|
</section>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in a new issue