Commit fb5112c7 authored by Leigh Stoller's avatar Leigh Stoller

Show the list of templates on the project and group pages.

parent 5657fa88
<?php
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2003, 2005 University of Utah and the Flux Group.
# Copyright (c) 2000-2003, 2005, 2006 University of Utah and the Flux Group.
# All rights reserved.
#
include("defs.php3");
......@@ -103,6 +103,11 @@ if (TBProjAccessCheck($uid, $pid, $gid, $TB_PROJECT_EDITGROUP) ||
SUBPAGEEND();
}
# Project wide Templates.
if ($EXPOSETEMPLATES) {
SHOWTEMPLATELIST("GROUP", 0, $uid, $pid, $gid);
}
#
# A list of Group experiments.
#
......
......@@ -6,6 +6,7 @@
#
include("defs.php3");
include("showstuff.php3");
include_once("template_defs.php");
#
# Standard Testbed Header
......@@ -112,6 +113,11 @@ echo "</table>\n";
echo "</td></table>\n";
echo "</center>\n";
# Project wide Templates.
if ($EXPOSETEMPLATES) {
SHOWTEMPLATELIST("PROJ", 0, $uid, $pid);
}
#
# A list of project experiments.
#
......
......@@ -1434,7 +1434,7 @@ function SHOWTEMPLATELIST($which, $all, $myuid, $id, $gid = "")
if (mysql_num_rows($query_result)) {
echo "<center>
<h3>Experiment Templates</h3>
<h3>$title Templates</h3>
</center>
<table align=center border=1 cellpadding=5 cellspacing=2>\n";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment