[index] Don't render 'Show inactive bridges' if non inactive
This commit is contained in:
parent
75f7a32b99
commit
3f83763ff9
1 changed files with 7 additions and 5 deletions
12
index.php
12
index.php
|
@ -188,11 +188,13 @@ $formats = Format::searchInformation();
|
|||
<a href="https://github.com/sebsauvage/rss-bridge">RSS-Bridge alpha 0.2 ~ Public Domain</a><br />
|
||||
<?= $activeFoundBridgeCount; ?>/<?= count($bridgeList) ?> active bridges. <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 />';
|
||||
if($activeFoundBridgeCount !== count($bridgeList)){
|
||||
// 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>
|
||||
|
|
Loading…
Reference in a new issue