diff options
| author | 2015-10-24 21:30:18 +0200 | |
|---|---|---|
| committer | 2015-10-24 21:30:18 +0200 | |
| commit | ab11b333b4c37f6765316ab6214cd356e2574be6 (patch) | |
| tree | c443f0297e8096605db88d036b24ba1d3639dcd6 | |
| parent | ea47e2b1d49f706792e864201f5731ba1e70d20f (diff) | |
| parent | 84824f8599ef8b7613c7c6829221aa8b88aa3846 (diff) | |
Merge branch 'add-category-warning' of https://github.com/aledeg/FreshRSS into aledeg-add-category-warning
| -rw-r--r-- | CHANGELOG.md | 3 | ||||
| -rw-r--r-- | app/Models/Category.php | 7 | ||||
| -rw-r--r-- | app/layout/aside_feed.phtml | 2 | ||||
| -rw-r--r-- | constants.php | 2 | ||||
| -rw-r--r-- | p/themes/base-theme/template.css | 3 |
5 files changed, 15 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index be2813d30..273372192 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## 2015-xx-xx FreshRSS 1.1.4-beta + + ## 2015-09-12 FreshRSS 1.1.3-beta * UI diff --git a/app/Models/Category.php b/app/Models/Category.php index 37cb44dc3..9a44a2d09 100644 --- a/app/Models/Category.php +++ b/app/Models/Category.php @@ -6,6 +6,7 @@ class FreshRSS_Category extends Minz_Model { private $nbFeed = -1; private $nbNotRead = -1; private $feeds = null; + private $hasFeedsWithError = false; public function __construct($name = '', $feeds = null) { $this->_name($name); @@ -16,6 +17,7 @@ class FreshRSS_Category extends Minz_Model { foreach ($feeds as $feed) { $this->nbFeed++; $this->nbNotRead += $feed->nbNotRead(); + $this->hasFeedsWithError |= $feed->inError(); } } } @@ -51,12 +53,17 @@ class FreshRSS_Category extends Minz_Model { foreach ($this->feeds as $feed) { $this->nbFeed++; $this->nbNotRead += $feed->nbNotRead(); + $this->hasFeedsWithError |= $feed->inError(); } } return $this->feeds; } + public function hasFeedsWithError() { + return $this->hasFeedsWithError; + } + public function _id($value) { $this->id = $value; } diff --git a/app/layout/aside_feed.phtml b/app/layout/aside_feed.phtml index a6d22f878..307db6af8 100644 --- a/app/layout/aside_feed.phtml +++ b/app/layout/aside_feed.phtml @@ -45,7 +45,7 @@ <li class="tree-folder category<?php echo $c_active ? ' active' : ''; ?>" data-unread="<?php echo $cat->nbNotRead(); ?>"> <div class="tree-folder-title"> <a class="dropdown-toggle" href="#"><?php echo _i($c_show ? 'up' : 'down'); ?></a> - <a class="title" data-unread="<?php echo format_number($cat->nbNotRead()); ?>" href="<?php echo _url('index', 'index', 'get', 'c_' . $cat->id()); ?>"><?php echo $cat->name(); ?></a> + <a class="title<?php echo $cat->hasFeedsWithError() ? ' error' : ''; ?>" data-unread="<?php echo format_number($cat->nbNotRead()); ?>" href="<?php echo _url('index', 'index', 'get', 'c_' . $cat->id()); ?>"><?php echo $cat->name(); ?></a> </div> <ul class="tree-folder-items<?php echo $c_show ? ' active' : ''; ?>"> diff --git a/constants.php b/constants.php index dbc594fc3..0035c259b 100644 --- a/constants.php +++ b/constants.php @@ -1,5 +1,5 @@ <?php -define('FRESHRSS_VERSION', '1.1.3-dev'); +define('FRESHRSS_VERSION', '1.1.4-dev'); define('FRESHRSS_WEBSITE', 'http://freshrss.org'); define('FRESHRSS_UPDATE_WEBSITE', 'https://update.freshrss.org?v=' . FRESHRSS_VERSION); define('FRESHRSS_WIKI', 'http://doc.freshrss.org'); diff --git a/p/themes/base-theme/template.css b/p/themes/base-theme/template.css index a299a5ddf..918d05942 100644 --- a/p/themes/base-theme/template.css +++ b/p/themes/base-theme/template.css @@ -776,6 +776,9 @@ input:checked + .slide-container .properties { .category .title:not([data-unread="0"]):after { content: attr(data-unread); } +.category .title.error::before { + content: "⚠"; +} .feed .item-title:not([data-unread="0"]):before { content: "(" attr(data-unread) ") "; } |
