From 47d2ee0dabc1cbd566eefcf779a8a91e7de8ae7c Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 22 Feb 2013 13:36:15 +0100 Subject: [PATCH] Generalize lazy tabs --- src/root/build.tt | 22 ++-------------------- src/root/common.tt | 23 ++++++++++++++++++++++- 2 files changed, 24 insertions(+), 21 deletions(-) diff --git a/src/root/build.tt b/src/root/build.tt index c40cb510..551b5bc2 100644 --- a/src/root/build.tt +++ b/src/root/build.tt @@ -513,32 +513,14 @@ [% END %] [% IF drvAvailable %] -
-
Loading...
-
+ [% INCLUDE makeLazyTab tabName="tabs-build-deps" uri=c.uri_for('/build' build.id 'build-deps') %] [% END %] [% IF available %] -
-
Loading...
-
+ [% INCLUDE makeLazyTab tabName="tabs-runtime-deps" uri=c.uri_for('/build' build.id 'runtime-deps') %] [% END %] - - [% END %] diff --git a/src/root/common.tt b/src/root/common.tt index 9079cb2f..ad935285 100644 --- a/src/root/common.tt +++ b/src/root/common.tt @@ -448,4 +448,25 @@ BLOCK renderEvals %] BLOCK renderLogLinks %] (log, raw, tail) -[% END %] +[% END; + + +BLOCK makeLazyTab %] +
+
Loading...
+
+ +[% END; + + +%]