From bf6e6be5f428859212a2cf0fb534cc1eeaad15ee Mon Sep 17 00:00:00 2001 From: Yorhel Date: Fri, 12 Oct 2012 12:45:42 +0200 Subject: [PATCH] Bug tracker improvements + added maildir.pl + ncdc FAQ update --- Bug.pm | 2 ++ dat/dump | 4 ++++ dat/ncdc-faq | 13 +++++++++++++ dat/ncdu | 2 -- index.cgi | 20 ++++++++++++++++++-- style.css | 6 +++++- 6 files changed, 42 insertions(+), 5 deletions(-) diff --git a/Bug.pm b/Bug.pm index 5271203..908742c 100644 --- a/Bug.pm +++ b/Bug.pm @@ -52,12 +52,14 @@ sub dbListing { my %o = ( results => 100, page => 1, + closed => 2, @_ ); $o{reverse} = 1 if !$o{sort}; my %where = ( $o{id} ? ('i.issue = ?' => $o{id}) : (), + $o{closed} != 2 ? ('!s m.closed' => !$o{closed} ? 'NOT' : '') : (), ); my $order = sprintf { diff --git a/dat/dump b/dat/dump index 5e0d0b5..8eefece 100644 --- a/dat/dump +++ b/dat/dump @@ -76,3 +76,7 @@ dbusev.c, in my case the "global.h" does that. Download: L and L. +=head2 maildir.pl + +October 2012. A tiny weechat plugin to display the number of unread emails in a +local Maildir. L diff --git a/dat/ncdc-faq b/dat/ncdc-faq index 790e5fa..014bcac 100644 --- a/dat/ncdc-faq +++ b/dat/ncdc-faq @@ -54,6 +54,19 @@ $GetZBlock, $CHUNK, $Cancel or non-XML file lists. I am not aware of an other up-to-date client that still uses any of these features. +=head2 What are those flags / character indications in the connection list? + +Since the manual page doesn't cover those yet, I'll document it here for now: + +The header has C, where the C stands for Status and C for whether TLS +encryption is used or not. The status flags can be either Bonnecting, +Bandshake, Bdle, Bownloading, Bploading or B<-> for disconnected. + + +=head2 ...And what about those in the user list? + +The user list has three boolean flags: Bperator, B

assive, and whether the client has BLS enabled. + =head1 Troubleshooting diff --git a/dat/ncdu b/dat/ncdu index f9cc5ab..65156e8 100644 --- a/dat/ncdu +++ b/dat/ncdu @@ -93,8 +93,6 @@ which provides packages for a variaty of Linux distributions. =item L - Web-based clone of Filelight. -=item L - Java, using pie-charts and a treeview. - =back diff --git a/index.cgi b/index.cgi index 6a02ca5..99b30d3 100755 --- a/index.cgi +++ b/index.cgi @@ -12,6 +12,7 @@ BEGIN { ($ROOT = abs_path $0) =~ s{index\.cgi$}{}; } my @changes = ( + [ '2012-10-07', '/dump#maildir.pl','Added maildir.pl to the code dump' ], [ '2012-09-27', '/ncdu', 'ncdu 1.9 released.' ], [ '2012-09-25', '/dump#dbusev.c', 'Added dbusev.c to the code dump' ], [ '2012-08-16', '/ncdc', 'ncdc 1.13 released.' ], @@ -227,8 +228,23 @@ sub bug_list { my($s, $p) = @_; my $is = _bug_init(@_); $s->htmlHeader(title => "\u$p Bug tracker", page => $p, sec => 'bug'); - br; a href => "/$p/bug/new", 'Report new bug'; br; br; - $is->htmlListing((scalar $is->dbListing()), sub { "/$p/bug/".shift }); + br; a href => "/$p/bug/new", 'Report new bug'; + + p class => 'bug_filter'; + txt 'filter{'; + my $cl = $s->reqParam('cl')||0; + a href => "/$p/bug", 'open' if $cl; + txt 'open' if !$cl; + txt '/'; + a href => "/$p/bug?cl=1", 'closed' if $cl != 1; + txt 'closed' if $cl == 1; + txt '/'; + a href => "/$p/bug?cl=2", 'all' if $cl != 2; + txt 'all' if $cl == 2; + txt '}'; + end; + + $is->htmlListing((scalar $is->dbListing(closed => $cl)), sub { "/$p/bug/".shift }); br; a href => "/$p/bug/new", 'Report new bug'; br; br; $s->htmlFooter; } diff --git a/style.css b/style.css index bc2d8f2..04c0508 100644 --- a/style.css +++ b/style.css @@ -67,7 +67,10 @@ table thead td { font-weight: bold } .bug_listing tbody tr:nth-child(odd) { background-color: #f4f4f4 } .bug_listing { width: 95% } .bug_col_id, .bug_col_type, .bug_col_status, .bug_col_date { white-space: nowrap } -.bug_closed td { text-decoration: line-through } +.bug_closed .bug_col_id { text-decoration: line-through } +.bug_closed .bug_col_summary a { color: #777 } +.bug_col_summary a { text-decoration: none } +.bug_col_summary a:hover { text-decoration: underline } .bug_status { display: block; height: 20px } .bug_status dt { float: left; font-weight: bold } .bug_status dd { float: left; } @@ -83,5 +86,6 @@ table thead td { font-weight: bold } .bug_frm input, .bug_frm select { float: left } .bug_frm textarea { width: 100%; height: 200px } .bug_frm_submit input { float: right; width: 200px } +.bug_filter { display: block; width: 100%; text-align: right; margin: 0; } .bug_status dt::after, .bug_item dt::after, .bug_frm label::after { content: ":" }