diff options
| author | 2013-03-16 19:56:48 +0100 | |
|---|---|---|
| committer | 2013-03-16 19:56:48 +0100 | |
| commit | c164e0b456a0642a7ef8e2c044b0f591b25c9d64 (patch) | |
| tree | c803b55208ce5acd14de03dcd53cad929a71932a /app/views | |
| parent | cfcf0f26aca7287cf8635094e58a33c4963c8d39 (diff) | |
Ajout système liste déroulante pour les flux sous les catégories + amélioration design des boutons stick + modif système d'icones + petites corrections divers -> Fix bug #23
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/index/index.phtml | 12 | ||||
| -rw-r--r-- | app/views/javascript/main.phtml | 16 |
2 files changed, 23 insertions, 5 deletions
diff --git a/app/views/index/index.phtml b/app/views/index/index.phtml index 7733c6313..df222b5d0 100644 --- a/app/views/index/index.phtml +++ b/app/views/index/index.phtml @@ -1,14 +1,16 @@ <?php $this->partial ('aside_flux'); ?> -<div class="nav_menu"> - <a class="btn" href="<?php echo Url::display (array ('c' => 'feed', 'a' => 'actualize')); ?>"><i class="icon refresh"></i></a> +<div class="nav_menu stick"> + <a class="btn" href="<?php echo Url::display (array ('c' => 'feed', 'a' => 'actualize')); ?>"><i class="icon i_refresh"></i></a> <?php if (!login_is_conf ($this->conf) || is_logged ()) { ?> - <a class="read_all btn" href="<?php echo Url::display (array ('c' => 'entry', 'a' => 'read', 'params' => array ('is_read' => 1))); ?>">Tout marquer comme lu</a><?php } ?><!-- + <a class="read_all btn" href="<?php echo Url::display (array ('c' => 'entry', 'a' => 'read', 'params' => array ('is_read' => 1))); ?>">Tout marquer comme lu</a> + <?php } ?> + <?php if ($this->mode == 'not_read') { ?> - --><a class="print_all btn" href="<?php echo Url::display (array ('a' => 'changeMode', 'params' => array ('mode' => 'all'))); ?>">Tout afficher</a> + <a class="print_all btn" href="<?php echo Url::display (array ('a' => 'changeMode', 'params' => array ('mode' => 'all'))); ?>">Tout afficher</a> <?php } else { ?> - --><a class="print_non_read btn" href="<?php echo Url::display (array ('a' => 'changeMode', 'params' => array ('mode' => 'not_read'))); ?>">Afficher les non lus</a> + <a class="print_non_read btn" href="<?php echo Url::display (array ('a' => 'changeMode', 'params' => array ('mode' => 'not_read'))); ?>">Afficher les non lus</a> <?php } ?> </div> diff --git a/app/views/javascript/main.phtml b/app/views/javascript/main.phtml index 0f2c51888..d503cac0f 100644 --- a/app/views/javascript/main.phtml +++ b/app/views/javascript/main.phtml @@ -129,8 +129,24 @@ function init_posts () { }); } +function init_column_categories () { + $(".category").addClass ("stick"); + $(".categories .category .btn:first-child").width ("160px"); + $(".category").append ("<a class=\"btn dropdown-toggle\" href=\"#\"><i class=\"icon i_down\"></i></a>"); + + $(".category + .feeds").not(".active").hide(); + $(".category.active a.dropdown-toggle i").toggleClass ("i_up"); + + $(".category a.dropdown-toggle").click (function () { + $(this).children ().toggleClass ("i_up"); + $(this).parent ().next (".feeds").slideToggle(); + return false; + }); +} + $(document).ready (function () { init_posts (); + init_column_categories (); // Touches de manipulation shortcut.add("<?php echo $s['mark_read']; ?>", function () { |
