]> git.decadent.org.uk Git - maypole.git/commitdiff
More fooling with links.
authorSimon Cozens <simon@simon-cozens.org>
Sat, 31 Jan 2004 14:09:18 +0000 (14:09 +0000)
committerSimon Cozens <simon@simon-cozens.org>
Sat, 31 Jan 2004 14:09:18 +0000 (14:09 +0000)
git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@24 48953598-375a-da11-a14b-00016c27c3ee

templates/factory/macros
templates/factory/view

index b9b8dee42b63333f474d880aac3ed77bd5bc204e..2a2315523300949de9c7b48f103f28367a4cf9b9 100644 (file)
@@ -15,6 +15,8 @@ END;
         "<td>";
         IF col == "url";  # Possibly too much magic.
             "<A HREF="; item.url; "> "; item.url; "</A>";
+        ELSIF col == "name";
+            maybe_link_view(item);
         ELSE;
             maybe_link_view(item.$col);
         END;
index 861e8761184e6dc33911aa2d1fe090cbeb81e24b..509208eddb0a2d22e6afe17886afa69efdee4c7a 100644 (file)
 
 <TR>
     <TD class="field"> [% classmetadata.colnames.$col; %] </TD>
-    <TD> [% maybe_link_view(item.$col) %] </TD>
+    <TD> [%
+
+    IF col == "url";  # Possibly too much magic.
+                "<A HREF="; item.url; "> "; item.url; "</A>";
+    ELSE;
+    maybe_link_view(item.$col); END;
+    %] </TD>
 </TR>
 [% END; %]
 </TABLE>