Changes between Initial Version and Version 2 of Ticket #6850


Ignore:
Timestamp:
Dec 24, 2015, 6:25:27 AM (8 years ago)
Author:
Ryan J Ollos
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6850

    • Property Owner changed from Trap to Ryan J Ollos
    • Property Status changed from new to accepted
    • Property Component changed from BackLinksMenuMacro to BackLinksMacro
  • Ticket #6850 – Description

    initial v2  
    22
    33This snippet permit to have the right URL link.
    4 I wrote black_listed_pattern so that i can submit this ticket.
    54
    6 {{{
     5{{{#!diff
    7616a17
    87> from trac.resource import get_relative_url
    9873c74,79
    10 <                 buf.write('black_listed_pattern' % self.env.href.wiki(row[0]))
     9<                 buf.write('<li><a href="%s">' % self.env.href.wiki(row[0]))
    1110---
    1211>                 if row[0].find(":") >= 0 or row[0].startswith("/"):
     
    1514>                     # Support relative paths; based on trac/wiki/formatter.py
    1615>                     link = get_relative_url(self.env, formatter.resource(id=row[0]), formatter.href)
    17 >                 buf.write('black_listed_pattern' % link )
     16>                 buf.write('<li><a href="%s">' % link )
    1817}}}