From: Simon Cozens Date: Sat, 31 Jan 2004 14:09:18 +0000 (+0000) Subject: More fooling with links. X-Git-Tag: 2.10~338 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=7137ae307038838c154fec5240c629fdb9e8ac76;p=maypole.git More fooling with links. git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@24 48953598-375a-da11-a14b-00016c27c3ee --- diff --git a/templates/factory/macros b/templates/factory/macros index b9b8dee..2a23155 100644 --- a/templates/factory/macros +++ b/templates/factory/macros @@ -15,6 +15,8 @@ END; ""; IF col == "url"; # Possibly too much magic. " "; item.url; ""; + ELSIF col == "name"; + maybe_link_view(item); ELSE; maybe_link_view(item.$col); END; diff --git a/templates/factory/view b/templates/factory/view index 861e876..509208e 100644 --- a/templates/factory/view +++ b/templates/factory/view @@ -14,7 +14,13 @@ [% classmetadata.colnames.$col; %] - [% maybe_link_view(item.$col) %] + [% + + IF col == "url"; # Possibly too much magic. + " "; item.url; ""; + ELSE; + maybe_link_view(item.$col); END; + %] [% END; %]