[Rt-commit] r3223 - in rt/branches/3.4-RELEASE: .
html/Admin/Elements
kevinr at bestpractical.com
kevinr at bestpractical.com
Sat Jun 18 03:41:39 EDT 2005
Author: kevinr
Date: Sat Jun 18 03:41:38 2005
New Revision: 3223
Modified:
rt/branches/3.4-RELEASE/ (props changed)
rt/branches/3.4-RELEASE/html/Admin/Elements/EditScrips
rt/branches/3.4-RELEASE/html/Admin/Elements/ListGlobalScrips
Log:
r4484 at sad-girl-in-snow: kevinr | 2005-06-18 02:40:00 -0500
* Cleaned up the list-of-scrips element and made it provide more useful info.
Modified: rt/branches/3.4-RELEASE/html/Admin/Elements/EditScrips
==============================================================================
--- rt/branches/3.4-RELEASE/html/Admin/Elements/EditScrips (original)
+++ rt/branches/3.4-RELEASE/html/Admin/Elements/EditScrips Sat Jun 18 03:41:38 2005
@@ -48,7 +48,7 @@
<form action="Scrips.html" method="post">
<input type="hidden" name="id" value="<%$id%>">
-<P><&|/l&>Current Scrips</&>:</P>
+<h2><&|/l&>Current Scrips</&></h2>
% if ($Scrips->Count == 0 ) {
<P><i><&|/l&>(No scrips)</&></i></P>
% } else {
Modified: rt/branches/3.4-RELEASE/html/Admin/Elements/ListGlobalScrips
==============================================================================
--- rt/branches/3.4-RELEASE/html/Admin/Elements/ListGlobalScrips (original)
+++ rt/branches/3.4-RELEASE/html/Admin/Elements/ListGlobalScrips Sat Jun 18 03:41:38 2005
@@ -43,16 +43,26 @@
%# those contributions and any derivatives thereof.
%#
%# END BPS TAGGED BLOCK }}}
-% my $count = 0;
+
+% if ($Scrips->Count == 0) {
+
+<P><i><&|/l&>(No scrips)(</&></i></P>
+
+% } else {
+
+<UL>
+
% while (my $scrip = $Scrips->Next ) {
-% $count++;
-<font size="-1"><&|/l, loc($scrip->ConditionObj->Name), loc($scrip->ActionObj->Name), loc($scrip->TemplateObj->Name) &>[_1] [_2] with template [_3]</&></font>
-<BR>
-% }
-% if (!$count) {
-<font size="-1"><&|/l&>(No scrips)</&></font>
+<LI>
+<a href="../Global/Scrip.html?id=<%$scrip->Id%>&Queue=<%0%>"><% $scrip->Description || "<i>(".loc('Scrip').' #'.$scrip->Id.")</i>" |n %></a><br>
+<small><&|/l, loc($scrip->ConditionObj->Name), loc($scrip->ActionObj->Name), loc($scrip->TemplateObj->Name) &>[_1] [_2] with template [_3]</&></small>
+</LI>
% }
+</UL>
+
+% }
+
<%init>
my $Scrips = new RT::Scrips ($session{'CurrentUser'});
$Scrips->LimitToGlobal();
More information about the Rt-commit
mailing list