From: Brian O'Connor Date: Tue, 6 Apr 2004 08:50:32 +0000 (+0000) Subject: An update of the Turnkey producer to output with better css support. May be slightly... X-Git-Tag: v0.06~92 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e204c7c79e0382ada0ef3511fd05eaa28ad0399b;p=dbsrgits%2FSQL-Translator.git An update of the Turnkey producer to output with better css support. May be slightly broken, there've been lots of changes to this file lately for both layout and the schema object. --- diff --git a/lib/SQL/Translator/Producer/Turnkey.pm b/lib/SQL/Translator/Producer/Turnkey.pm index 68bd0a1..c233687 100644 --- a/lib/SQL/Translator/Producer/Turnkey.pm +++ b/lib/SQL/Translator/Producer/Turnkey.pm @@ -1,7 +1,7 @@ package SQL::Translator::Producer::Turnkey; # ------------------------------------------------------------------- -# $Id: Turnkey.pm,v 1.35 2004-04-06 01:09:01 allenday Exp $ +# $Id: Turnkey.pm,v 1.36 2004-04-06 08:50:32 boconnor Exp $ # ------------------------------------------------------------------- # Copyright (C) 2002-4 SQLFairy Authors # @@ -22,7 +22,7 @@ package SQL::Translator::Producer::Turnkey; use strict; use vars qw[ $VERSION $DEBUG ]; -$VERSION = sprintf "%d.%02d", q$Revision: 1.35 $ =~ /(\d+)\.(\d+)/; +$VERSION = sprintf "%d.%02d", q$Revision: 1.36 $ =~ /(\d+)\.(\d+)/; $DEBUG = 1 unless defined $DEBUG; use SQL::Translator::Schema::Constants; @@ -548,37 +548,42 @@ EOF [% TAGS [- -] %] [% MACRO renderpanel(panel,dbobject) BLOCK %] - - [% FOREACH p = panel.containers %] [% IF p.can_render(panel) %] - [% IF panel.orientation == 'vertical' %] - [% END %] [% END %] [% END %] - -
[% IF p.type == 'Container' %] [% renderpanel(p,dbobject) %] [% ELSE %] - - [% IF p.name %] - - - - - [% END %] -
[% p.name %][% IF panel.type == 'major' %]: [% dbobject.name %][% END %]
+ [% IF panel.label == 'MainContainer' %] +
+ [% IF p.name %] +
[% p.name %][% IF panel.type == 'major' %]: [% dbobject.name %][% END %]
+ [% END %] [% renderatom(p,dbobject) %]
-
+ +
+ [% ELSE %] +
+
+ [% IF p.name %] +
[% p.name %][% IF panel.type == 'major' %]: [% dbobject.name %][% END %]
+ [% END %] + + + [% renderatom(p,dbobject) %] +
+
+ [% END %] [% END %] -
+ + [% END %] [% BLOCK make_linked_dbobject %] [% PERL %] @@ -620,14 +625,14 @@ EOF [% renderlist(atom.render(dbobject)) %] [% END %] [% MACRO renderlist(lstArr) BLOCK %] - [% END %] EOF @@ -637,6 +642,7 @@ EOF [-- IF !node.is_trivial_link --] [% rowcount = 0 %] [% IF atom.focus == "yes" %] + [- FOREACH field = node.data_fields -] [- IF field != "1" -] @@ -648,15 +654,16 @@ EOF [- END -] [% IF (rowcount > 1) %] [% END %] [% rowcount = rowcount + 1 %] +
[- field -][% obj2link(dbobject.[- field -]) %]

[% ELSE %] - [% END %] [- END -] EOF