diff options
author | Ed Morley <emorley@mozilla.com> | 2014-09-29 23:26:32 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2014-09-29 23:26:32 +0200 |
commit | 180e229a39ac402223146034d129018a552e3f9b (patch) | |
tree | 4746368ac0ecaddbcc8aee9ec8e184e72c1ca5d0 /extensions | |
parent | 2e8ebd18fc8bb91e5ea7c7765b5574ab60375434 (diff) | |
download | bugzilla-180e229a39ac402223146034d129018a552e3f9b.tar.gz bugzilla-180e229a39ac402223146034d129018a552e3f9b.tar.xz |
Bug 1072944 - User activity should default to a range smaller than the last 8 weeks
r=dylan
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/BMO/lib/Reports/UserActivity.pm | 2 | ||||
-rw-r--r-- | extensions/UserProfile/template/en/default/pages/user_profile.html.tmpl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/extensions/BMO/lib/Reports/UserActivity.pm b/extensions/BMO/lib/Reports/UserActivity.pm index a961096a6..3a485a1f2 100644 --- a/extensions/BMO/lib/Reports/UserActivity.pm +++ b/extensions/BMO/lib/Reports/UserActivity.pm @@ -30,7 +30,7 @@ sub report { $to =~ s/\N{U+2011}/-/g; if ($from eq '') { - my $dt = DateTime->now()->subtract('weeks' => 8); + my $dt = DateTime->now()->subtract('weeks' => 1); $from = $dt->ymd('-'); } if ($to eq '') { diff --git a/extensions/UserProfile/template/en/default/pages/user_profile.html.tmpl b/extensions/UserProfile/template/en/default/pages/user_profile.html.tmpl index cc10d1706..810a974ec 100644 --- a/extensions/UserProfile/template/en/default/pages/user_profile.html.tmpl +++ b/extensions/UserProfile/template/en/default/pages/user_profile.html.tmpl @@ -93,7 +93,7 @@ <th>Last activity</th> <td colspan="2"> [% IF user.id %] - <a href="page.cgi?id=user_activity.html&action=run&who=[% target.login FILTER uri %]&from=-4w"> + <a href="page.cgi?id=user_activity.html&action=run&who=[% target.login FILTER uri %]"> [% END %] [% target.last_activity_ts FILTER time %] [% "</a>" IF user.id %] |