[Rt-commit] rt branch, admin_ui, updated. dbddf1e7bf90f76c449f897c7149ec7f27063b02
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Tue Dec 22 21:07:51 EST 2009
The branch, admin_ui has been updated
via dbddf1e7bf90f76c449f897c7149ec7f27063b02 (commit)
from 17a5d5747aab986e95e2ede08f1555260f553f96 (commit)
Summary of changes:
lib/RT/View/Admin/Groups.pm | 32 ++++++++++++++++++++++++++++++++
1 files changed, 32 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit dbddf1e7bf90f76c449f897c7149ec7f27063b02
Author: sunnavy <sunnavy at bestpractical.com>
Date: Wed Dec 23 09:54:41 2009 +0800
/admin/groups/history view
diff --git a/lib/RT/View/Admin/Groups.pm b/lib/RT/View/Admin/Groups.pm
index b982bbf..803f56c 100644
--- a/lib/RT/View/Admin/Groups.pm
+++ b/lib/RT/View/Admin/Groups.pm
@@ -113,6 +113,38 @@ template 'members' => page { title => _('Group Members') } content {
template 'history' => page { title => _('Group History') } content {
my $self = shift;
+ my $group = RT::Model::Group->new;
+ $group->load(get('id'));
+ my $txns = $group->transactions;
+ $txns->order_by(
+ {
+ column => 'Created',
+ order => 'ASC',
+ },
+ {
+ column => 'id',
+ order => 'ASC',
+ },
+ );
+ my $row_num = 1;
+ div {
+ attr { id => 'ticket-history' };
+ while ( my $txn = $txns->next ) {
+ div {
+ attr { class => $row_num++ % 2 ? 'odd' : 'even' };
+ div {
+ attr { class => 'metadata' }
+ span { attr { class => 'date' }; $txn->created };
+ span {
+ attr { class => 'description' };
+ $txn->creator->name . ' - ' . $txn->brief_description;
+ };
+ };
+ };
+ }
+ };
+
+ # removed txn attachments and txn cfs that were here in mason pages
};
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list