Changeset 180


Ignore:
Timestamp:
Jun 25, 2003, 4:39:16 PM (19 years ago)
Author:
kake
Message:

Optional titles on index links

Location:
trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Changes

    r179 r180  
    22        Extra checks that script_url ends in a '/'
    33        Fixed small bug with edit conflict form - map link field was missing.
     4        @INDEX_LINK macros now have optional title text like so:
     5          @INDEX_LINK [[Category Pubs|Pubs]]
    46
    570.18    16 June 2003
  • trunk/MANIFEST

    r179 r180  
    4646t/01_add_test_data.t
    4747t/11_utils.t
     48t/12_macros.t
    4849t/13_cookies.t
    4950t/15_template.t
  • trunk/lib/OpenGuides/Utils.pm

    r179 r180  
    8787               <input type="text" size="20" name="search">
    8888               <input type="submit" name="Go" value="Search"></form>),
    89         qr/\@INDEX_LINK\s+\[\[(Category|Locale)\s+([^\]]+)\]\]/ =>
    90             sub { return qq(<a href="$script_name?action=index;index_type=) . uri_escape(lc($_[0])) . qq(;index_value=) . uri_escape($_[1]) . qq(">View all pages in $_[0] $_[1]</a>)
     89        qr/\@INDEX_LINK\s+\[\[(Category|Locale)\s+([^\]|]+)\|?([^\]]+)?\]\]/ =>
     90            sub { my $link_title = $_[2] || "View all pages in $_[0] $_[1]"; return qq(<a href="$script_name?action=index;index_type=) . uri_escape(lc($_[0])) . qq(;index_value=) . uri_escape($_[1]) . qq(">$link_title</a>)
    9191                }
    9292    );
Note: See TracChangeset for help on using the changeset viewer.