Changeset 2986


Ignore:
Timestamp:
04/12/05 16:42:48 (8 years ago)
Author:
hauma
Message:
  • Fancification of the redirect macro: Display the redirection backlink within the Trac mini-navigation bar.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trac/trunk/templates/wiki.cs

    r2985 r2986  
    66 <h2>Wiki Navigation</h2> 
    77 <ul> 
     8  <?cs if args.redirectedfrom ?> 
     9   <li class="redirect"> 
     10    Redirected from: 
     11    <a href="<?cs var:$trac.href.wiki ?>/<?cs var:args.redirectedfrom ?>?redirect=no"> 
     12     <?cs var:args.redirectedfrom ?></a> 
     13    (<a href="<?cs var:args.page ?>">hide</a>) 
     14   </li> 
     15  <?cs /if ?> 
     16 
    817  <li><a href="<?cs var:$trac.href.wiki ?>">Start Page</a></li> 
    918  <li><a href="<?cs var:$trac.href.wiki ?>/TitleIndex">Title Index</a></li> 
     
    205214  <?cs /if ?> 
    206215  <?cs if wiki.action == "view" ?> 
    207    <?cs if args.redirectedfrom ?> 
    208      <div class="redirect"> 
    209        Redirected from:  
    210        <a href="<?cs var:$trac.href.wiki ?>/<?cs var:args.redirectedfrom ?>?redirect=no"> 
    211          <?cs var:args.redirectedfrom ?></a> 
    212        (<a href="<?cs var:args.page ?>">hide</a>). 
    213      </div> 
    214    <?cs /if ?> 
    215216   <div class="wikipage"> 
    216217    <div id="searchable"><?cs var:wiki.page_html ?></div> 
Note: See TracChangeset for help on using the changeset viewer.