From 7137ae307038838c154fec5240c629fdb9e8ac76 Mon Sep 17 00:00:00 2001 From: Simon Cozens Date: Sat, 31 Jan 2004 14:09:18 +0000 Subject: [PATCH] More fooling with links. git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@24 48953598-375a-da11-a14b-00016c27c3ee --- templates/factory/macros | 2 ++ templates/factory/view | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) 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; %] -- 2.39.5