aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-11-12 23:21:13 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-11-12 23:21:13 +0100
commit5bd52cdcb64cdb53aded1dd0bcd6044ca7e98eb4 (patch)
treeed48f62449306162f0cebd925ef9baa1ce7f5acc /app
parenta5240e085596e969429cd0ac255a92747b686333 (diff)
Mise à jour de la vue globale
* Nombre de non lus mis à jour automatiquement * Mise à jour structure HTML * Mise à jour design Fusion manuelle depuis la 0.6-beta https://github.com/marienfressinaud/FreshRSS/commit/0c96d3489b3a74e10804206f1be0789fb63a6949
Diffstat (limited to 'app')
-rw-r--r--app/views/helpers/view/global_view.phtml20
1 files changed, 7 insertions, 13 deletions
diff --git a/app/views/helpers/view/global_view.phtml b/app/views/helpers/view/global_view.phtml
index 0eb29b11a..9a47100eb 100644
--- a/app/views/helpers/view/global_view.phtml
+++ b/app/views/helpers/view/global_view.phtml
@@ -1,30 +1,24 @@
<?php $this->partial ('nav_menu'); ?>
-<div id="stream" class="global">
+<div id="stream" class="global categories">
<?php
foreach ($this->cat_aside as $cat) {
$feeds = $cat->feeds ();
- $catNotRead = $cat->nbNotRead ();
if (!empty ($feeds)) {
?>
- <div class="category">
- <div class="cat_header">
- <a href="<?php echo _url ('index', 'index', 'get', 'c_' . $cat->id (), 'output', 'normal'); ?>">
- <?php echo $cat->name(); ?><?php echo $catNotRead > 0 ? ' (' . $catNotRead . ')' : ''; ?>
+ <div class="box-category">
+ <div class="category">
+ <a data-unread="<?php echo $cat->nbNotRead (); ?>" class="btn" href="<?php echo _url ('index', 'index', 'get', 'c_' . $cat->id (), 'output', 'normal'); ?>">
+ <?php echo $cat->name(); ?>
</a>
</div>
-
<ul class="feeds">
<?php foreach ($feeds as $feed) { ?>
<?php $not_read = $feed->nbNotRead (); ?>
- <li class="item">
+ <li id="f_<?php echo $feed->id (); ?>" class="item<?php echo $feed->inError () ? ' error' : ''; ?><?php echo $feed->nbEntries () == 0 ? ' empty' : ''; ?>">
<img class="favicon" src="<?php echo $feed->favicon (); ?>" alt="✇" />
-
- <a href="<?php echo _url ('index', 'index', 'get', 'f_' . $feed->id (), 'output', 'normal'); ?>">
- <?php echo $not_read > 0 ? '<b>' : ''; ?>
+ <a class="feed" data-unread="<?php echo $feed->nbNotRead (); ?>" data-priority="<?php echo $feed->priority (); ?>" href="<?php echo _url ('index', 'index', 'get', 'f_' . $feed->id (), 'output', 'normal'); ?>">
<?php echo $feed->name(); ?>
- <?php echo $not_read > 0 ? ' (' . $not_read . ')' : ''; ?>
- <?php echo $not_read > 0 ? '</b>' : ''; ?>
</a>
</li>
<?php } ?>