A free, self-hostable news aggregator…
Meilleur affichage page d'erreur + on n'affiche plus une catégorie si aucun flux n'en fait partie
Marien Fressinaud6fc16ed8a307
diff --git a/app/controllers/configureController.php b/app/controllers/configureController.phpindex ebf59e2cd..9a42599a8 100755--- a/app/controllers/configureController.php+++ b/app/controllers/configureController.php@@ -10,8 +10,6 @@ class configureController extends ActionController {}}- public function indexAction () { }-public function categorizeAction () {$catDAO = new CategoryDAO ();diff --git a/app/layout/aside_feed.phtml b/app/layout/aside_feed.phtmlindex aca000cd6..7e37b2ac4 100644--- a/app/layout/aside_feed.phtml+++ b/app/layout/aside_feed.phtml@@ -4,7 +4,7 @@<?php if (!empty ($this->feeds)) { ?><?php foreach ($this->feeds as $feed) { ?><li class="item<?php echo ($this->flux && $this->flux->id () == $feed->id ()) ? ' active' : ''; ?>">- <a href="<?php echo Url::display (array ('c' => 'configure', 'a' => 'feed', 'params' => array ('id' => $feed->id ()))); ?>"><?php echo $feed->name (); ?></a>+ <a href="<?php echo _url ('configure', 'feed', 'id', $feed->id ()); ?>"><?php echo $feed->name (); ?></a></li><?php } ?><?php } else { ?>diff --git a/app/layout/aside_flux.phtml b/app/layout/aside_flux.phtmlindex 9403a0445..f6d8b3887 100644--- a/app/layout/aside_flux.phtml+++ b/app/layout/aside_flux.phtml@@ -21,6 +21,7 @@<?php foreach ($this->cat_aside as $cat) { ?><?php $feeds = $cat->feeds (); $catNotRead = $cat->nbNotRead (); ?>+ <?php if (!empty ($feeds)) { ?><li><a class="btn category<?php echo $this->get == $cat->id () ? ' active' : ''; ?>" href="<?php echo _url ('index', 'index', 'get', 'c_' . $cat->id ()); ?>"><?php echo $cat->name (); ?>@@ -31,7 +32,7 @@<ul class="feeds"><?php foreach ($feeds as $feed) { ?><li>- <a class="website" href="<?php echo $feed->website(); ?>"><i class="icon link"></i></a>+ <a class="website" href="<?php echo _url ('configure', 'feed', 'id', $feed->id ()); ?>"><i class="icon configure"></i></a><img src="http://www.google.com/s2/favicons?domain=<?php echo get_domain ($feed->website ()); ?>" alt="" /><a class="feed" href="<?php echo _url ('index', 'index', 'get', 'f_' . $feed->id ()); ?>"><?php echo $feed->name(); ?>@@ -41,6 +42,6 @@</ul><?php } ?></li>- <?php } ?>+ <?php } } ?></ul></div>diff --git a/app/views/error/index.phtml b/app/views/error/index.phtmlindex 626102109..21d298eb4 100644--- a/app/views/error/index.phtml+++ b/app/views/error/index.phtml@@ -1,6 +1,6 @@-<div class="table">- <div class="nothing">- <h2><?php echo $this->code; ?></h2>+<div class="post">+ <div class="alert">+ <h1 class="alert-head"><?php echo $this->code; ?></h1><p><a href="<?php echo Url::display (); ?>">Revenir à l'accueil</a></p></div>diff --git a/public/theme/base.css b/public/theme/base.cssindex 1a709af83..856878b18 100644--- a/public/theme/base.css+++ b/public/theme/base.css@@ -240,8 +240,9 @@ input {box-shadow: 1px 1px 3px #aaa inset;}.alert .alert-head {+ margin: 0;font-weight: bold;- font-size: 105%;+ font-size: 110%;}/* ICONES */@@ -301,6 +302,7 @@ input {}.header .item.title h1 {margin: 0;+ text-shadow: 1px -1px 0 #ccc;}.header .item.title a:hover {text-decoration: none;