Skip to content

Commit

Permalink
Merge pull request #339 from LogMANOriginal/ImproveNavigation
Browse files Browse the repository at this point in the history
Improve navigation
  • Loading branch information
mitsukarenai authored Aug 7, 2016
2 parents 73dc0ef + c0b607c commit bb49aef
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
5 changes: 5 additions & 0 deletions css/HtmlFormat.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ h1.pagetitle {
color: #2196F3;

}

h1.pagetitle > a {
color: #2196F3;
}

a.backlink, a.backlink:link, a.backlink:visited, a.itemtitle, a.itemtitle:link, a.itemtitle:visited {

color: #2196F3;
Expand Down
4 changes: 2 additions & 2 deletions formats/HtmlFormat.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ public function stringify(){
<meta name="robots" content="noindex, follow">
</head>
<body>
<h1 class="pagetitle">{$title}</h1>
<div class="buttons"><a href="./"><button class="backbutton">← back to rss-bridge</button></a><a href="./?{$atomquery}"><button class="rss-feed">RSS feed</button></a></div>
<h1 class="pagetitle"><a href="{$uri}" target="_blank">{$title}</a></h1>
<div class="buttons"><a href="./#bridge-{$_GET['bridge']}"><button class="backbutton">← back to rss-bridge</button></a><a href="./?{$atomquery}"><button class="rss-feed">RSS feed</button></a></div>
{$entries}
</body>
</html>
Expand Down
14 changes: 10 additions & 4 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@
"PinterestBridge",
"ScmbBridge",
"TwitterBridge",
"WikipediaENBridge",
"WikipediaEOBridge",
"WikipediaFRBridge",
"WikipediaBridge",
"YoutubeBridge");

if (!file_exists($whitelist_file)) {
Expand Down Expand Up @@ -187,7 +185,15 @@
<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
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>
</html>

0 comments on commit bb49aef

Please sign in to comment.