Bug tracker improvements + added maildir.pl + ncdc FAQ update

This commit is contained in:
Yorhel 2012-10-12 12:45:42 +02:00
parent 8341fb9341
commit bf6e6be5f4
6 changed files with 42 additions and 5 deletions

2
Bug.pm
View file

@ -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 {

View file

@ -76,3 +76,7 @@ dbusev.c, in my case the "global.h" does that.
Download: L<dbusev.c|http://g.blicky.net/neoglobster.git/tree/src/dbusev.c> and
L<dbusev.h|http://g.blicky.net/neoglobster.git/tree/src/dbusev.h>.
=head2 maildir.pl
October 2012. A tiny weechat plugin to display the number of unread emails in a
local Maildir. L<source|http://p.blicky.net/wzbzs>

View file

@ -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<St>, where the C<S> stands for Status and C<t> for whether TLS
encryption is used or not. The status flags can be either B<C>onnecting,
B<H>andshake, B<I>dle, B<D>ownloading, B<U>ploading or B<-> for disconnected.
=head2 ...And what about those in the user list?
The user list has three boolean flags: B<O>perator, B<P>assive, and whether the client has B<T>LS enabled.
=head1 Troubleshooting

View file

@ -93,8 +93,6 @@ which provides packages for a variaty of Linux distributions.
=item L<Philesight|http://zevv.nl/play/code/philesight/> - Web-based clone of Filelight.
=item L<JDiskReport|http://www.jgoodies.com/freeware/jdiskreport/> - Java, using pie-charts and a treeview.
=back

View file

@ -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;
}

View file

@ -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: ":" }