[Rt-commit] rt branch, 4.2/limit-link-display, created. rt-4.2.6-69-g191f789
Kevin Falcone
falcone at bestpractical.com
Thu Aug 28 16:28:31 EDT 2014
The branch, 4.2/limit-link-display has been created
at 191f789cc5ec12156f2cb074e67a20cb3523184a (commit)
- Log -----------------------------------------------------------------
commit 191f789cc5ec12156f2cb074e67a20cb3523184a
Author: Kevin Falcone <falcone at bestpractical.com>
Date: Thu Aug 28 15:05:06 2014 -0500
Allow modification of which types of links are shown
There's a callback to add data at the end of the Links portlet, but
nothing to allow you to change what's display. This provides a callback
that would let you remove (for example) the Parents from the listing, so
that you can list them in a separate portlet later, with a custom
display.
diff --git a/share/html/Elements/ShowLinks b/share/html/Elements/ShowLinks
index bcf58d6..7b421b2 100644
--- a/share/html/Elements/ShowLinks
+++ b/share/html/Elements/ShowLinks
@@ -65,6 +65,7 @@
</table>
<%INIT>
my @display = qw(DependsOn DependedOnBy MemberOf Members RefersTo ReferredToBy);
+$m->callback( %ARGS, CallbackName => 'ChangeDisplay', display => \@display );
my %labels = (
DependsOn => loc('Depends on'),
DependedOnBy => loc('Depended on by'),
-----------------------------------------------------------------------
More information about the rt-commit
mailing list