From 2eea5bbdeb24636aafa2808273eefa362c452b57 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 25 Aug 2013 00:14:01 +0200 Subject: Big area mark as read Added a big area to mark all as read below the list of articles --- app/views/helpers/pagination.phtml | 6 +++++- app/views/javascript/main.phtml | 9 +++++++++ public/themes/default/freshrss.css | 15 +++++++++++++++ 3 files changed, 29 insertions(+), 1 deletion(-) diff --git a/app/views/helpers/pagination.phtml b/app/views/helpers/pagination.phtml index 80c0976ad..0018a951e 100755 --- a/app/views/helpers/pagination.phtml +++ b/app/views/helpers/pagination.phtml @@ -10,7 +10,11 @@ next; ?> - +
+

+

+

+
diff --git a/app/views/javascript/main.phtml b/app/views/javascript/main.phtml index 24d66c1dc..3ac8b675b 100644 --- a/app/views/javascript/main.phtml +++ b/app/views/javascript/main.phtml @@ -380,6 +380,14 @@ function init_nav_entries() { }); } +function init_bigMarkAsRead() { + $('.bigMarkAsRead').click(function() { + url = $(".nav_menu a.read_all").attr ("href"); + redirect (url, false); + return false; + }); +} + $(document).ready (function () { if(is_reader_mode()) { hide_posts = false; @@ -388,4 +396,5 @@ $(document).ready (function () { init_column_categories (); init_shortcuts (); init_nav_entries(); + init_bigMarkAsRead(); }); diff --git a/public/themes/default/freshrss.css b/public/themes/default/freshrss.css index 3f0b3c23c..92eaafaf0 100644 --- a/public/themes/default/freshrss.css +++ b/public/themes/default/freshrss.css @@ -491,6 +491,21 @@ font-size: 0; } +.bigMarkAsRead { + background:#CCC; + color:#FFF; + cursor:pointer; + height:32em; + text-shadow: 0 -1px 0 #AAA; +} +.bigMarkAsRead:hover { + background:#06C; +} +.bigTick { + font-size:72pt; + margin:32px 0 8px 0; +} + /*** NOTIFICATION ***/ .notification { position: fixed; -- cgit v1.2.3