X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fhtml%2FElements%2FEditLinks;h=8fd1d623d31fe33ab4cc1f2c3a7f2eb0a52b4d6c;hp=b66291f303fb255a3a3f88413024b067e4c259ee;hb=fc6209f398899f0211cfcedeb81a3cd65e04a941;hpb=d39d52aac8f38ea9115628039f0df5aa3ac826de diff --git a/rt/html/Elements/EditLinks b/rt/html/Elements/EditLinks index b66291f30..8fd1d623d 100755 --- a/rt/html/Elements/EditLinks +++ b/rt/html/Elements/EditLinks @@ -1,8 +1,8 @@ -%# {{{ BEGIN BPS TAGGED BLOCK +%# BEGIN BPS TAGGED BLOCK {{{ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2004 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2009 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -22,7 +22,9 @@ %# %# You should have received a copy of the GNU General Public License %# along with this program; if not, write to the Free Software -%# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +%# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +%# 02110-1301 or visit their web page on the internet at +%# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. %# %# %# CONTRIBUTION SUBMISSION POLICY: @@ -42,10 +44,10 @@ %# works based on those contributions, and sublicense and distribute %# those contributions and any derivatives thereof. %# -%# }}} END BPS TAGGED BLOCK - - - + + + + + + + + + + + + + + + + + + + + + + + +
+%# END BPS TAGGED BLOCK }}} + + + - + - -

<&|/l&>Current Links

@@ -57,8 +59,8 @@ @@ -66,9 +68,8 @@ @@ -76,8 +77,8 @@ @@ -85,8 +86,8 @@ @@ -94,8 +95,8 @@ @@ -103,58 +104,63 @@
<&|/l&>Depends on: % while (my $link = $Object->DependsOn->Next) { - - <& ShowLink, URI => $link->TargetURI &>
+ + <& ShowLink, URI => $link->TargetURI &>
% }
<&|/l&>Depended on by: % while (my $link = $Object->DependedOnBy->Next) { -% my $member = $link->BaseObj; - - <& ShowLink, URI => $link->BaseURI &>
+ + <& ShowLink, URI => $link->BaseURI &>
% }
<&|/l&>Parents: % while (my $link = $Object->MemberOf->Next) { - - <& ShowLink, URI => $link->TargetURI &>
+ + <& ShowLink, URI => $link->TargetURI &>
% }
<&|/l&>Children: % while (my $link = $Object->Members->Next) { - - <& ShowLink, URI => $link->BaseURI &>
+ + <& ShowLink, URI => $link->BaseURI &>
% }
<&|/l&>Refers to: % while (my $link = $Object->RefersTo->Next) { - - <& ShowLink, URI => $link->TargetURI &>
+ + <& ShowLink, URI => $link->TargetURI &>
%}
<&|/l&>Referred to by: % while (my $link = $Object->ReferredToBy->Next) { - - <& ShowLink, URI => $link->BaseURI &>
+% # Skip reminders +% next if (UNIVERSAL::isa($link->BaseObj, 'RT::Ticket') && $link->BaseObj->Type eq 'reminder'); + + <& ShowLink, URI => $link->BaseURI &>
% }
-
+

<&|/l&>New Links

% if (ref($Object) eq 'RT::Ticket') { -<&|/l&>Enter tickets or URIs to link tickets to. Separate multiple entries with spaces.
+<&|/l&>Enter tickets or URIs to link tickets to. Separate multiple entries with spaces. +<& /Elements/Callback, _CallbackName => 'ExtraLinkInstructions' &> +
% } elsif (ref($Object) eq 'RT::Queue') { -<&|/l&>Enter queues or URIs to link queues to. Separate multiple entries with spaces.
+<&|/l&>Enter queues or URIs to link queues to. Separate multiple entries with spaces. +
% } else { -<&|/l&>Enter objects or URIs to link objects to. Separate multiple entries with spaces.
+<&|/l&>Enter objects or URIs to link objects to. Separate multiple entries with spaces.
% } - +
% if ($Merge) { - - - - + + + + % } - - - - - - - - - - - - - - - - - - - - - - - - -
<&|/l&>Merge into: <&|/l&>(only one ticket)
<&|/l&>Merge into: <&|/l&>(only one ticket)
<&|/l&>Depends on:
<&|/l&>Depended on by:
<&|/l&>Parents:
<&|/l&>Children:
<&|/l&>Refers to:
<&|/l&>Referred to by:
-
+
<&|/l&>Depends on:
<&|/l&>Depended on by:
<&|/l&>Parents:
<&|/l&>Children:
<&|/l&>Refers to:
<&|/l&>Referred to by:
+ + + <%INIT> my $id;