[Bps-public-commit] RT-Extension-rt_cpan_org branch, master, updated. d21ecb3690fe8744c8d60e166bdbb767b93f61f9

Jason May jasonmay at bestpractical.com
Fri Aug 12 12:54:02 EDT 2011


The branch, master has been updated
       via  d21ecb3690fe8744c8d60e166bdbb767b93f61f9 (commit)
      from  dd1507e97ca89018b9c3863e84af4d4e808a8176 (commit)

Summary of changes:
 .../rt_cpan_org/Elements/MakeClicky/Default        |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
 create mode 100644 html/Callbacks/rt_cpan_org/Elements/MakeClicky/Default

- Log -----------------------------------------------------------------
commit d21ecb3690fe8744c8d60e166bdbb767b93f61f9
Author: Jason May <jasonmay at bestpractical.com>
Date:   Fri Aug 12 12:35:21 2011 -0400

    Make overwritten URLs in the messages rel="nofollow"

diff --git a/html/Callbacks/rt_cpan_org/Elements/MakeClicky/Default b/html/Callbacks/rt_cpan_org/Elements/MakeClicky/Default
new file mode 100644
index 0000000..eca4aea
--- /dev/null
+++ b/html/Callbacks/rt_cpan_org/Elements/MakeClicky/Default
@@ -0,0 +1,14 @@
+<%ARGS>
+$types => []
+$actions => {}
+$handle => undef
+</%ARGS>
+<%INIT>
+$actions->{url_overwrite} = sub {
+    my %args = @_;
+    my $result = qq{<a target="new" rel="nofollow" href="$args{'value'}">};
+    $args{'value'} =~ s/(\S{30})/$1 /g;
+    $result .= qq{$args{'value'}</a>};
+    return qq{<span class="clickylink">$result</span>};
+};
+</%INIT>

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list