[Rt-commit] rt branch, admin_ui, updated. 203337b9eb8a314bf5ba4eb5bcbe081d4c77de11
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Fri Nov 27 01:40:28 EST 2009
The branch, admin_ui has been updated
via 203337b9eb8a314bf5ba4eb5bcbe081d4c77de11 (commit)
from eb31deb6f6d3b4c309b5f7354914a4f857efbf67 (commit)
Summary of changes:
lib/RT/View/Admin/Queues.pm | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit 203337b9eb8a314bf5ba4eb5bcbe081d4c77de11
Author: sunnavy <sunnavy at bestpractical.com>
Date: Fri Nov 27 14:40:15 2009 +0800
show inline edit link, no idea why we disabled it in RT::View::CRUD
diff --git a/lib/RT/View/Admin/Queues.pm b/lib/RT/View/Admin/Queues.pm
index cc9202c..dc7616c 100644
--- a/lib/RT/View/Admin/Queues.pm
+++ b/lib/RT/View/Admin/Queues.pm
@@ -66,6 +66,22 @@ sub view_field_status_schema {
return $action->record->status_schema->name;
}
+private template view_item_controls => sub {
+ my $self = shift;
+ my $record = shift;
+
+ if ( $record->current_user_can('update') ) {
+ hyperlink(
+ label => _("Edit"),
+ class => "editlink",
+ onclick => {
+ popout => $self->fragment_for('update'),
+ args => { id => $record->id },
+ },
+ );
+ }
+};
+
template 'index.html' => page {
title => shift->page_title,
} content {
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list