summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorEd Morley <emorley@mozilla.com>2014-09-29 23:32:12 +0200
committerDylan William Hardison <dylan@hardison.net>2014-09-29 23:32:12 +0200
commit84b390d25f1427f7f10265f70e19157689c924c5 (patch)
tree469ef2f0faa6c375a67f44817576fca4a348f41f /extensions
parent3a970cb4c11ff46fcc6eb45d28ec4b62a4ed1bb4 (diff)
downloadbugzilla-84b390d25f1427f7f10265f70e19157689c924c5.tar.gz
bugzilla-84b390d25f1427f7f10265f70e19157689c924c5.tar.xz
Bug 1072981 - User activity labels & params conflate "sort" and "group"
Diffstat (limited to 'extensions')
-rw-r--r--extensions/BMO/lib/Reports/UserActivity.pm6
-rw-r--r--extensions/BMO/template/en/default/pages/user_activity.html.tmpl30
2 files changed, 18 insertions, 18 deletions
diff --git a/extensions/BMO/lib/Reports/UserActivity.pm b/extensions/BMO/lib/Reports/UserActivity.pm
index 77ba10b95..04810c2ec 100644
--- a/extensions/BMO/lib/Reports/UserActivity.pm
+++ b/extensions/BMO/lib/Reports/UserActivity.pm
@@ -100,7 +100,7 @@ sub report {
push @params, ($from_dt, $to_dt);
}
- my $order = ($input->{'sort'} && $input->{'sort'} eq 'bug')
+ my $order = ($input->{'group'} && $input->{'group'} eq 'bug')
? 'bug_id, bug_when' : 'bug_when';
my $comment_filter = '';
@@ -257,7 +257,7 @@ sub report {
$incomplete_data = 1;
}
- # Start a new changeset if required (depends on the sort order)
+ # Start a new changeset if required (depends on the grouping type)
my $is_new_changeset;
if ($order eq 'bug_when') {
$is_new_changeset =
@@ -321,7 +321,7 @@ sub report {
$vars->{'who_count'} = scalar @who;
$vars->{'from'} = $from;
$vars->{'to'} = $to;
- $vars->{'sort'} = $input->{'sort'};
+ $vars->{'group'} = $input->{'group'};
}
1;
diff --git a/extensions/BMO/template/en/default/pages/user_activity.html.tmpl b/extensions/BMO/template/en/default/pages/user_activity.html.tmpl
index ef2115bcb..c9b46b2eb 100644
--- a/extensions/BMO/template/en/default/pages/user_activity.html.tmpl
+++ b/extensions/BMO/template/en/default/pages/user_activity.html.tmpl
@@ -64,12 +64,12 @@
<div id="con_calendar_to"></div>
</td>
<th>
- Sort:
+ Group by:
</th>
<td>
- <select name="sort">
- <option value="when" [% 'selected' IF sort == 'when' %]>When</option>
- <option value="bug" [% 'selected' IF sort == 'bug' %]>[% terms.Bug %]</option>
+ <select name="group">
+ <option value="when" [% 'selected' IF group == 'when' %]>When</option>
+ <option value="bug" [% 'selected' IF group == 'bug' %]>[% terms.Bug %]</option>
</select>
</td>
<td>
@@ -111,12 +111,12 @@
[% IF who_count > 1 %]
<th>Who</th>
[% END %]
- [% IF sort == 'when' %]
- <th class="sorted">[% INCLUDE sort_when_link %]</th>
- <th>[% INCLUDE sort_bug_link %]</th>
+ [% IF group == 'when' %]
+ <th class="sorted">[% INCLUDE group_when_link %]</th>
+ <th>[% INCLUDE group_bug_link %]</th>
[% ELSE %]
- <th class="sorted">[% INCLUDE sort_bug_link %]</th>
- <th>[% INCLUDE sort_when_link %]</th>
+ <th class="sorted">[% INCLUDE group_bug_link %]</th>
+ <th>[% INCLUDE group_when_link %]</th>
[% END %]
<th>What</th>
<th>Removed</th>
@@ -131,7 +131,7 @@
[% IF who_count > 1 %]
<td>[% operation.who FILTER email FILTER html %]</td>
[% END %]
- [% IF sort == 'when' %]
+ [% IF group == 'when' %]
<td>[% change.when FILTER time FILTER no_break %]</td>
<td>[% operation.bug FILTER bug_link(operation.bug) FILTER none %]</td>
[% ELSE %]
@@ -143,7 +143,7 @@
<td>&nbsp;</td>
[% END %]
<td>&nbsp;</td>
- [% IF sort == 'when' %]
+ [% IF group == 'when' %]
<td>&nbsp;</td>
[% ELSE %]
<td>[% change.when FILTER time FILTER no_break %]</td>
@@ -213,18 +213,18 @@
[% INCLUDE global/footer.html.tmpl %]
-[% BLOCK sort_when_link %]
+[% BLOCK group_when_link %]
<a href="page.cgi?id=user_activity.html&amp;action=run&amp;
[%~%]who=[% who FILTER uri %]&amp;
[%~%]from=[% from FILTER uri %]&amp;
[%~%]to=[% to FILTER uri %]&amp;
- [%~%]sort=when">When</a>
+ [%~%]group=when">When</a>
[% END %]
-[% BLOCK sort_bug_link %]
+[% BLOCK group_bug_link %]
<a href="page.cgi?id=user_activity.html&amp;action=run&amp;
[%~%]who=[% who FILTER uri %]&amp;
[%~%]from=[% from FILTER uri %]&amp;
[%~%]to=[% to FILTER uri %]&amp;
- [%~%]sort=bug">[% terms.Bug %]</a>
+ [%~%]group=bug">[% terms.Bug %]</a>
[% END %]