]> git.wh0rd.org Git - tt-rss.git/commitdiff
optionally show last update time in feedlist (EXTENDED_FEEDLIST) (closes #55)
authorAndrew Dolgov <fox@madoka.spb.ru>
Tue, 6 Jun 2006 06:51:00 +0000 (07:51 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Tue, 6 Jun 2006 06:51:00 +0000 (07:51 +0100)
functions.js
functions.php
schema/ttrss_schema_mysql.sql
schema/ttrss_schema_pgsql.sql
schema/upgrade-1.1.5-1.1.7-mysql.sql
schema/upgrade-1.1.5-1.1.7-pgsql.sql
tt-rss.css

index d25670c414171ed10f4ef3f20d3a4bbcacda619b..8401a0ff37cd009d34417c0a8c74867a3fe2e3c5 100644 (file)
@@ -510,6 +510,7 @@ function parse_counters(reply, scheduled_call) {
                        var feedr = f_document.getElementById("FEEDR-" + id);
                        var feed_img = f_document.getElementById("FIMG-" + id);
                        var feedlink = f_document.getElementById("FEEDL-" + id);
+                       var feedupd = f_document.getElementById("FLUPD-" + id);
 
                        if (updated && feedlink) {
                                if (error) {
@@ -519,6 +520,14 @@ function parse_counters(reply, scheduled_call) {
                                }
                        }
 
+                       if (updated && feedupd) {
+                               if (error) {
+                                       feedupd.innerHTML = updated + " (Error)";
+                               } else {
+                                       feedupd.innerHTML = updated;
+                               }
+                       }
+
                        if (feedctr && feedu && feedr) {
 
                                if (feedu.innerHTML != ctr && id == getActiveFeedId() && scheduled_call) {
index 6bcebe598dcb3c113a299b428b671898c8fe11a7..6de5c9edac31064343dab28c88651f5be40f98fc 100644 (file)
                        $rtl_tag = "dir=\"ltr\"";
                }
 
+               $error_notify_msg = "";
+               
                if ($last_error) {
                        $link_title = "Error: $last_error ($last_updated)";
+                       $error_notify_msg = "(Error)";
                } else if ($last_updated) {
                        $link_title = "Updated: $last_updated";
                }
 
                print " <span $rtl_tag $fctr_class id=\"FEEDCTR-$feed_id\">
                         (<span id=\"FEEDU-$feed_id\">$unread</span>)</span>";
-               
+
+               if (get_pref($link, "EXTENDED_FEEDLIST")) {                      
+                       print "<div class=\"feedExtInfo\">
+                               <span id=\"FLUPD-$feed_id\">$last_updated $error_notify_msg</span></div>";
+               }
+                        
                print "</li>";
 
        }
index 1e51df31c16380a4593ac9f17381c1eaa79d1aa0..69a96d0b7758e61c5bfc77f2296073c2d66d0d4a 100644 (file)
@@ -249,6 +249,8 @@ insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id,help_
 
 insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('FEEDS_SORT_BY_UNREAD', 1, 'false', 'Sort feeds by unread articles count',2);
 
+insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('EXTENDED_FEEDLIST', 1, 'false', 'Show additional information in feedlist',2);
+
 create table ttrss_user_prefs (
    owner_uid integer not null,
    pref_name varchar(250),
index 042e650fd5e9e3c28ed01795a1b1b6b46801aacf..99120f7d5a8739e9f0b37bec67ff89d2cf5e3c5d 100644 (file)
@@ -229,6 +229,8 @@ insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id,help_
 
 insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('FEEDS_SORT_BY_UNREAD', 1, 'false', 'Sort feeds by unread articles count',2);
 
+insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('EXTENDED_FEEDLIST', 1, 'false', 'Show additional information in feedlist',2);
+
 create table ttrss_user_prefs (
        owner_uid integer not null references ttrss_users(id) ON DELETE CASCADE,
        pref_name varchar(250) not null references ttrss_prefs(pref_name) ON DELETE CASCADE,
index a7fb99024bcfc89caba1c1050956a3b1f1d4d404..39100450be850e2503b07bca9a2cda113c28a852 100644 (file)
@@ -5,6 +5,8 @@ insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id,help_
 
 insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('FEEDS_SORT_BY_UNREAD', 1, 'false', 'Sort feeds by unread articles count',2);
 
+insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('EXTENDED_FEEDLIST', 1, 'false', 'Show additional information in feedlist',2);
+
 insert into ttrss_filter_actions (id,name,description) values (3, 'mark', 
        'Set starred');
 
index 4c7c78f9d78765c09abee0de14808a9b1169e642..ab7a7df338ec4a8c4f787e5eb3eaba65dd454ded 100644 (file)
@@ -7,6 +7,8 @@ insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id,help_
 
 insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('FEEDS_SORT_BY_UNREAD', 1, 'false', 'Sort feeds by unread articles count',2);
 
+insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('EXTENDED_FEEDLIST', 1, 'false', 'Show additional information in feedlist',2);
+
 insert into ttrss_filter_actions (id,name,description) values (3, 'mark', 
        'Set starred');
 
index 5cdab4f0c77a176bc0d4526ab715758027e90509..2a8d70972f6a52d5583da98f808dff84e7c7bc1b 100644 (file)
@@ -1112,3 +1112,10 @@ form {
 #main_toolbar_form {
        display : inline;
 }
+
+div.feedExtInfo {
+       margin-left : 2em;
+       font-size : 7pt;
+       color : gray;
+       font-weight : normal;
+}