[bugzilla-gnome-org-extensions] Allow people to change the "limit" on popular-traces.
- From: Krzesimir Nowak <krnowak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [bugzilla-gnome-org-extensions] Allow people to change the "limit" on popular-traces.
- Date: Thu, 20 Nov 2014 22:14:43 +0000 (UTC)
commit 1f16ee35a95185c5897d8511d24784fdcff59487
Author: Max Kanat-Alexander <mkanat everythingsolved com>
Date: Sat Aug 8 22:29:34 2009 -0500
Allow people to change the "limit" on popular-traces.
lib/TraceParser/Hooks.pm | 1 +
template/en/default/pages/popular-traces.html.tmpl | 10 ++++++++++
2 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/lib/TraceParser/Hooks.pm b/lib/TraceParser/Hooks.pm
index bdfec68..f9732ae 100644
--- a/lib/TraceParser/Hooks.pm
+++ b/lib/TraceParser/Hooks.pm
@@ -417,6 +417,7 @@ sub _page_popular_traces {
my $traces = TraceParser::Trace->new_from_list([keys %trace_count]);
@$traces = reverse sort { $trace_count{$a->id} <=> $trace_count{$b->id} }
@$traces;
+ $vars->{limit} = $limit;
$vars->{traces} = $traces;
$vars->{trace_count} = \%trace_count;
}
diff --git a/template/en/default/pages/popular-traces.html.tmpl
b/template/en/default/pages/popular-traces.html.tmpl
index 0665c05..427f6ce 100644
--- a/template/en/default/pages/popular-traces.html.tmpl
+++ b/template/en/default/pages/popular-traces.html.tmpl
@@ -23,6 +23,16 @@
title = "Most Popular Traces"
%]
+<form action="page.cgi" method="GET">
+<div>
+ <input type="hidden" name="id" value="popular-traces.html">
+ Show the top
+ <input type="text" size="3" name="limit" value="[% limit FILTER html %]">
+ traces.
+ <input type="submit" value="Go">
+</div>
+</form>
+
<p>Most popular traces (as determined by comparing their first few
functions):</p>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]