diff options
| author | 2013-03-17 21:34:14 +0100 | |
|---|---|---|
| committer | 2013-03-17 21:34:14 +0100 | |
| commit | caf8d18c1d887f0c918ba181d1c48d9e08af6ea0 (patch) | |
| tree | b6d778c7c852432ca060470c41c44d7db7b1cab2 /app/views/index/index.phtml | |
| parent | dbb0de4e368b814f8cab9e7e1a1462a2839471dc (diff) | |
Début fix bug #22 : possibilité d'ajouter des notes à des articles et les mettre ou non en public
Diffstat (limited to 'app/views/index/index.phtml')
| -rw-r--r-- | app/views/index/index.phtml | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/app/views/index/index.phtml b/app/views/index/index.phtml index 0db9dac5b..a7ed174c2 100644 --- a/app/views/index/index.phtml +++ b/app/views/index/index.phtml @@ -26,21 +26,29 @@ if (isset ($this->entryPaginator)) { <div class="flux<?php echo !$item->isRead () ? ' not_read' : ''; ?><?php echo $item->isFavorite () ? ' favorite' : ''; ?>" id="flux_<?php echo $item->id (); ?>"> <ul class="flux_header"> + <?php if (!login_is_conf ($this->conf) || is_logged ()) { ?> <li class="item manage"> - <?php if (!login_is_conf ($this->conf) || is_logged ()) { ?> <?php if (!$item->isRead ()) { ?> - <a class="read" href="<?php echo Url::display (array ('c' => 'entry', 'a' => 'read', 'params' => array ('id' => $item->id (), 'is_read' => 1))); ?>"> </a><!-- + <a class="read" href="<?php echo _url ('entry', 'read', 'id', $item->id (), 'is_read', 1); ?>"> </a> <?php } else { ?> - <a class="read" href="<?php echo Url::display (array ('c' => 'entry', 'a' => 'read', 'params' => array ('id' => $item->id (), 'is_read' => 0))); ?>"> </a><!-- + <a class="read" href="<?php echo _url ('entry', 'read', 'id', $item->id (), 'is_read', 0); ?>"> </a> <?php } ?> <?php if (!$item->isFavorite ()) { ?> - --><a class="bookmark" href="<?php echo Url::display (array ('c' => 'entry', 'a' => 'bookmark', 'params' => array ('id' => $item->id (), 'is_favorite' => 1))); ?>"> </a> + <a class="bookmark" href="<?php echo _url ('entry', 'bookmark', 'id', $item->id (), 'is_favorite', 1); ?>"> </a> <?php } else { ?> - --><a class="bookmark" href="<?php echo Url::display (array ('c' => 'entry', 'a' => 'bookmark', 'params' => array ('id' => $item->id (), 'is_favorite' => 0))); ?>"> </a> - <?php } ?> + <a class="bookmark" href="<?php echo _url ('entry', 'bookmark', 'id', $item->id (), 'is_favorite', 0); ?>"> </a> <?php } ?> + + <a class="note" href="<?php echo _url ('entry', 'note', 'id', $item->id ()); ?>"> + <?php if ($item->notes () != '') { ?> + <i class="icon i_note"></i> + <?php } else { ?> + <i class="icon i_note_empty"></i> + <?php } ?> + </a> </li> + <?php } ?> <?php $feed = $item->feed (true); ?> <li class="item website"><a target="_blank" href="<?php echo $feed->website (); ?>"><img src="http://www.google.com/s2/favicons?domain=<?php echo get_domain ($feed->website ()); ?>" alt="" /><span> <?php echo $feed->name (); ?></span></a></li> <li class="item title"><h1><?php echo $item->title (); ?></h1></li> @@ -62,7 +70,7 @@ if (isset ($this->entryPaginator)) { <div class="alert"> <span class="alert-head">Il n'y a aucun flux à afficher.</span> <?php if (Session::param ('mode', 'all') == 'not_read') { ?> - <a class="print_all" href="<?php echo Url::display (array ('a' => 'changeMode', 'params' => array ('mode' => 'all'))); ?>">Afficher tous les articles ?</a> + <a class="print_all" href="<?php echo _url ('index', 'changeMode', 'mode', 'all'); ?>">Afficher tous les articles ?</a> <?php } ?> </div> <?php } ?> |
