forked from blallo/rss-bridge
[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 />
|
<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 />
|
||||||
<?php
|
<?php
|
||||||
// FIXME: This should be done in pure CSS
|
if($activeFoundBridgeCount !== count($bridgeList)){
|
||||||
if(!$showInactive)
|
// FIXME: This should be done in pure CSS
|
||||||
echo '<a href="?show_inactive=1"><button class="small">Show inactive bridges</button></a><br />';
|
if(!$showInactive)
|
||||||
else
|
echo '<a href="?show_inactive=1"><button class="small">Show inactive bridges</button></a><br />';
|
||||||
echo '<a href="?show_inactive=0"><button class="small">Hide 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>
|
||||||
|
|
Loading…
Reference in a new issue