incubator-lokahi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tob...@apache.org
Subject svn commit: r419600 - /incubator/lokahi/lokahi/trunk/src/www/Core/Project/details.vm
Date Thu, 06 Jul 2006 16:08:46 GMT
Author: toback
Date: Thu Jul  6 09:08:46 2006
New Revision: 419600

URL: http://svn.apache.org/viewvc?rev=419600&view=rev
Log:
Formatting...

Modified:
    incubator/lokahi/lokahi/trunk/src/www/Core/Project/details.vm

Modified: incubator/lokahi/lokahi/trunk/src/www/Core/Project/details.vm
URL: http://svn.apache.org/viewvc/incubator/lokahi/lokahi/trunk/src/www/Core/Project/details.vm?rev=419600&r1=419599&r2=419600&view=diff
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/www/Core/Project/details.vm (original)
+++ incubator/lokahi/lokahi/trunk/src/www/Core/Project/details.vm Thu Jul  6 09:08:46 2006
@@ -26,7 +26,7 @@
 #end
 #end
 <div align="center" class="contentbox">
-<br/><br/>
+<br /><br />
 <!--
 $project
 -->
@@ -34,274 +34,265 @@
 #set($vhosts = $project.getVirtualHosts())
 #set($projectContexts = $project.getTomcatContexts())
 
-<br/>
+<br />
 
 <div class="projectbox">
 <table width="100%" border="0" cellspacing="0" cellpadding="1">
-  <tr class="info" valign="top">
-    <td colspan=3>Project - <b>$!{project.getName()}</b> &nbsp;
-      #foreach ($env in $project.getEnvs())
-      <a class="info"
-         href="$appRoot/Core/Project/details.vm?projectId=$project.getPk()&e=$env.getPk()">$env.getName()</a>
&nbsp;
-      #end
-      <a class="info" href="$appRoot/Core/Project/details.vm?projectId=$project.getPk()">All</a>
&nbsp;
-    </td>
-    <td colspan="2" align="right">
-      #if ($User.isAllowed("AddVirtualHost", $projectId) || $User.isAllowed("AddVirtualHostToProject",
$projectId) ||
-      $User.isAllowed("AddUser", $projectId) || $User.isAllowed("AddUserToProject", $projectId)
||
-      $User.isAllowed("DeleteProject", $projectId))
-      <select name=methodToCall onchange='OnChange(this);'>
-        <option value="" selected>Select Action</option>
-        #if ($User.isAllowed("AddVirtualHost", $projectId) || $User.isAllowed("AddVirtualHostToProject",
$projectId))
-        <option value="$appRoot/Template/addVhost.vm?project=$projectId">Add a VirtualHost</option>
-        #end
-        #if ($User.isAllowed("AddUser", $projectId) || $User.isAllowed("AddUserToProject",
$projectId))
-        <option value="$appRoot/Core/User/addToProject.vm?project=$projectId">Add a
User</option>
-        #end
-        #if ($User.isAllowed("DeleteProject", $projectId))
-        <option value="$appRoot/Core/Project/delete.vm?project=$projectId">Delete this
Project</option>
-        #end
-      </select>
-      #end
-    </td>
-  </tr>
+<tr class="info" valign="top">
+	<td colspan=3>Project - <b>$!{project.getName()}</b> &nbsp;
+	 #foreach ($env in $project.getEnvs())
+		<a class="info" href="$appRoot/Core/Project/details.vm?projectId=$project.getPk()&e=$env.getPk()">$env.getName()</a>
&nbsp;
+		#end
+		<a class="info" href="$appRoot/Core/Project/details.vm?projectId=$project.getPk()">All</a>
&nbsp;
+  </td> 
+	<td colspan="2" align="right">
+#if ($User.isAllowed("AddVirtualHost", $projectId) || $User.isAllowed("AddVirtualHostToProject",
$projectId) || $User.isAllowed("AddUser", $projectId) || $User.isAllowed("AddUserToProject",
$projectId) || $User.isAllowed("DeleteProject", $projectId))
+	    <select name=methodToCall onchange='OnChange(this);'>
+       	      <option value="" selected>Select Action</option>
+#if ($User.isAllowed("AddVirtualHost", $projectId) || $User.isAllowed("AddVirtualHostToProject",
$projectId))
+              <option value="$appRoot/Template/addVhost.vm?project=$projectId">Add
a VirtualHost</option>
+#end
+#if ($User.isAllowed("AddUser", $projectId) || $User.isAllowed("AddUserToProject", $projectId))
+              <option value="$appRoot/Core/User/addToProject.vm?project=$projectId">Add
a User</option>
+#end
+#if ($User.isAllowed("DeleteProject", $projectId))
+              <option value="$appRoot/Core/Project/delete.vm?project=$projectId">Delete
this Project</option>
+#end
+            </select>
+#end
+             </td>
+</tr>
 </table>
 <br>
 #set($c = 1)
 #if( $vhosts && ! $vhosts.isEmpty())
 <table width="95%" border="0" cellspacing="0" cellpadding="1">
   <tr height="15" class="info">
-    <td align="left" valign="center" colspan=4>
-      Apache - Tomcat applications
-    </b>
-  </td>
-</tr>
-<tr class="info">
-  <td width=25%> Virtual Host </td>
-  <td width=10%> Context </td>
-  <td width=27%> Pool </td>
-  <td width=26%></td>
-</tr>
-#foreach ($vhost in $vhosts)
-#if (!$envId || $vhost.getEnvId().toString() == $envId)
-<tr class="headercolor$c">
-  <td><a href="$appRoot/Apache/Entity/view.vm?id=$!{vhost.getPk()}&p=$projectId">$!{vhost.getName()}</a></td>
-  #set($ap = $vhost.getApachePool())
-  <td> &nbsp; </td>
-  <td><a href="$appRoot/Apache/Pool/view.vm?id=$!{ap.getPk()}">$!{ap.getName()}</a></td>
-  <td align="right">
-    #if ($User.isAllowed("AddContext", $projectId) || $User.isAllowed("AddUser", $projectId)
||
-    $User.isAllowed("AddUserToProject", $projectId) || $User.isAllowed("DeleteVirtualHost",
$projectId, $vhost) ||
-    $User.isAllowed("ViewVirtualHost", $projectId, $vhost) || $User.isAllowed("UpdateVirtualHost",
$projectId, $vhost))
-    <select name=methodToCall onchange='OnChange(this);'>
-      <option value="" selected>Select Action</option>
-      #if ($User.isAllowed("AddContext", $projectId))
-      <option value="$appRoot/Tomcat/Entity/add.vm?id=$!{vhost.getPk()}&projectId=$projectId">Add
a context</option>
-      <option value="$appRoot/Tomcat/Entity/addExistingToVhost.vm?v=$!{vhost.getPk()}&p=$projectId">Add
an existing
-        context</option>
-      #end
-      #if ($User.isAllowed("AddUser", $projectId) || $User.isAllowed("AddUserToProject",
$projectId))
-      <option value="$appRoot/Core/User/addToProject.vm?project=$projectId">Add a User</option>
-      #end
-      <!-- $User.isAllowed("DeleteVirtualHost", $projectId, $vhost) -->
-      #if ($User.isAllowed("DeleteVirtualHost", $projectId, $vhost))
-      <option value="$appRoot/Apache/Entity/delete.vm?id=$!{vhost.getPk()}">Delete
this Vhost</option>
-      #end
-      #if ($User.isAllowed("UpdateVirtualHost", $projectId, $vhost))
-      <option value="$appRoot/Apache/Entity/modify.vm?id=$!{vhost.getPk()}&p=$projectId">Modify
this Vhost</option>
-      #end
-      #if ($User.isAllowed("ViewVirtualHost", $projectId, $vhost))
-      <option value="$appRoot/Apache/Entity/view.vm?id=$!{vhost.getPk()}">View this
Vhost</option>
+	<td align="left" valign="center" colspan=4 >
+	  Apache - Tomcat applications
+	</b>
+	</td>
+  </tr>
+        <tr class="info">
+      <td width=25%> Virtual Host </td>
+      <td width=10%> Context </td>
+      <td width=27%> Pool </td>
+      <td width=26%>  </td>
+      </tr>
+	#foreach ($vhost in $vhosts)
+  	#if (!$envId || $vhost.getEnvId().toString() == $envId)
+			<tr class="headercolor$c">
+			<td><a href="$appRoot/Apache/Entity/view.vm?id=$!{vhost.getPk()}&p=$projectId">$!{vhost.getName()}</a></td>
+			#set($ap = $vhost.getApachePool())
+			<td> &nbsp; </td>
+			<td><a href="$appRoot/Apache/Pool/view.vm?id=$!{ap.getPk()}">$!{ap.getName()}</a></td>
+			<td align="right">
+      #if ($User.isAllowed("AddContext", $projectId) || $User.isAllowed("AddUser", $projectId)
|| $User.isAllowed("AddUserToProject", $projectId) || $User.isAllowed("DeleteVirtualHost",
$projectId, $vhost) || $User.isAllowed("ViewVirtualHost", $projectId, $vhost) || $User.isAllowed("UpdateVirtualHost",
$projectId, $vhost))
+	      <select name=methodToCall onchange='OnChange(this);'>
+       	<option value="" selected>Select Action</option>
+        #if ($User.isAllowed("AddContext", $projectId))
+          <option value="$appRoot/Tomcat/Entity/add.vm?id=$!{vhost.getPk()}&projectId=$projectId">Add
a context</option>
+          <option value="$appRoot/Tomcat/Entity/addExistingToVhost.vm?v=$!{vhost.getPk()}&p=$projectId">Add
an existing context</option>
+        #end
+        #if ($User.isAllowed("AddUser", $projectId) || $User.isAllowed("AddUserToProject",
$projectId))
+          <option value="$appRoot/Core/User/addToProject.vm?project=$projectId">Add
a User</option>
+        #end
+        <!-- $User.isAllowed("DeleteVirtualHost", $projectId, $vhost) -->
+        #if ($User.isAllowed("DeleteVirtualHost", $projectId, $vhost))
+          <option value="$appRoot/Apache/Entity/delete.vm?id=$!{vhost.getPk()}">Delete
this Vhost</option>
+        #end
+        #if ($User.isAllowed("UpdateVirtualHost", $projectId, $vhost))
+          <option value="$appRoot/Apache/Entity/modify.vm?id=$!{vhost.getPk()}&p=$projectId">Modify
this Vhost</option>
+        #end
+        #if ($User.isAllowed("ViewVirtualHost", $projectId, $vhost))
+          <option value="$appRoot/Apache/Entity/view.vm?id=$!{vhost.getPk()}">View
this Vhost</option>
+        #end
+        </select>
       #end
-    </select>
+			</td>
+		  </tr>
+    	#set ($contexts = $vhost.getContexts())
+      #if( $contexts && ! $contexts.isEmpty())
+        #set($cc = 1)
+  	    #foreach ($context in $contexts)
+  	      <!-- $projectContexts.remove($context) -->
+  	      #if($User.isAllowed("ViewContext",$projectId, $context) || $User.isAllowed("ReloadContext",$projectId,
$context) || $User.isAllowed("StopContext",$projectId, $context) || $User.isAllowed("StartContext",$projectId,
$context) || $User.isAllowed("UpdateContext",$projectId, $context) || $User.isAllowed("DeleteContext",$projectId,
$context) || $User.isAllowed("UndeployContext",$projectId, $context) || $User.isAllowed("RedeployContext",$projectId,
$context) || $User.isAllowed("InstallContext",$projectId, $context) || $User.isAllowed("ListContext",$projectId,
$context) || $User.isAllowed("SessionsOfContext",$projectId, $context) || $User.isAllowed("StatusOfContext",$projectId,
$context))
+  			  #set ($tomcatPool = $context.getTomcatPool())
+  			  #if (!$context.hasTomcatPool())
+  			    <tr class="headercolor$c">
+  			    <td> &nbsp; </td>
+  			    <td><a href="$appRoot/Tomcat/Entity/view.vm?id=$!{context.getPk()}">
$!{context.getName()} </td>
+      			<td colspan=2> Not assigned to a Pool</td><td> </td></tr>
+  			  #else
+  			    <tr class="headercolor$c">
+  			    <td> &nbsp; </td>
+  			    <td class="bodycolor$c$cc"><a href="$appRoot/Tomcat/Entity/view.vm?id=$!{context.getPk()}&p=$projectId">
$!{context.getName()} </td>
+    	      <td class="bodycolor$c$cc">
+    	      <a href="$appRoot/Tomcat/Pool/view.vm?id=$!{tomcatPool.getPk()}">$!{tomcatPool.getName()}
</a><br>
+    	      </td>
+				    <td align="right" class="bodycolor$c$cc">
+				    <!-- before macro -->
+				    <!-- $context -->
+				    <!-- start macro -->
+  			    #contextDropBox($User $project $context $vhost)
+  				  </td>
+  			    #end
+  		 	  </tr>
+  		 	  #end
+  	#if ($cc == 1)
+      #set($cc=2)
+    #else
+      #set($cc=1)
+    #end
+  	    #end ##of all contexts
+  	  #end ##of env if
+    #end 	## of all vhosts
+    #if ($c == 1)
+      #set($c=2)
+    #else
+      #set($c=1)
     #end
-  </td>
-</tr>
-#set ($contexts = $vhost.getContexts())
-#if( $contexts && ! $contexts.isEmpty())
-#set($cc = 1)
-#foreach ($context in $contexts)
-<!-- $projectContexts.remove($context) -->
-#if($User.isAllowed("ViewContext",$projectId, $context) || $User.isAllowed("ReloadContext",$projectId,
$context) ||
-$User.isAllowed("StopContext",$projectId, $context) || $User.isAllowed("StartContext",$projectId,
$context) ||
-$User.isAllowed("UpdateContext",$projectId, $context) || $User.isAllowed("DeleteContext",$projectId,
$context) ||
-$User.isAllowed("UndeployContext",$projectId, $context) || $User.isAllowed("RedeployContext",$projectId,
$context) ||
-$User.isAllowed("InstallContext",$projectId, $context) || $User.isAllowed("ListContext",$projectId,
$context) ||
-$User.isAllowed("SessionsOfContext",$projectId, $context) || $User.isAllowed("StatusOfContext",$projectId,
$context))
-#set ($tomcatPool = $context.getTomcatPool())
-#if (!$context.hasTomcatPool())
-<tr class="headercolor$c">
-  <td> &nbsp; </td>
-  <td><a href="$appRoot/Tomcat/Entity/view.vm?id=$!{context.getPk()}"> $!{context.getName()}</td>
-  <td colspan=2> Not assigned to a Pool</td><td></td></tr>
-#else
-<tr class="headercolor$c">
-  <td> &nbsp; </td>
-  <td class="bodycolor$c$cc"><a href="$appRoot/Tomcat/Entity/view.vm?id=$!{context.getPk()}&p=$projectId">
-    $!{context.getName()}</td>
-  <td class="bodycolor$c$cc">
-    <a href="$appRoot/Tomcat/Pool/view.vm?id=$!{tomcatPool.getPk()}">$!{tomcatPool.getName()}
</a><br>
-  </td>
-  <td align="right" class="bodycolor$c$cc">
-    <!-- before macro -->
-    <!-- $context -->
-    <!-- start macro -->
-    #contextDropBox($User $project $context $vhost)
-  </td>
   #end
-</tr>
-#end
-#if ($cc == 1)
-#set($cc=2)
-#else
-#set($cc=1)
-#end
-#end ##of all contexts
-#end ##of env if
-#end ## of all vhosts
-#if ($c == 1)
-#set($c=2)
-#else
-#set($c=1)
-#end
-#end
-#end ## end of IF VHOST.
+#end 	## end of IF VHOST.
 </TABLE>
 <br>
 #set ($temp = $projectContexts.clone())
 #foreach ($context in $temp)
-#if($envId && $context.getEnvId().toString() != $envId)
-<!-- $projectContexts.remove($context) -->
-#end
+  #if($envId && $context.getEnvId().toString() != $envId)
+    <!-- $projectContexts.remove($context) -->
+  #end
 #end
 #if( $projectContexts && ! $projectContexts.isEmpty())
-<TABLE WIDTH="95%" BORDER="0" CELLSPACING="0" CELLPADDING="1">
+  <TABLE WIDTH="95%" BORDER="0" CELLSPACING="0" CELLPADDING="1">
   <tr height="15" class="info">
-    <td align="left" valign="center" colspan=4>
-      Tomcat applications
-    </b>
-  </td>
-</tr>
-<tr class="info">
+	<td align="left" valign="center" colspan=4 >
+	  Tomcat applications
+	</b>
+	</td>
+  </tr>
+  <tr class="info">
   <th width=25%> Context </th>
   <th width=15%> Environment </th>
   <th width=30%> Worker </th>
-  <th width=30%></th>
-</tr>
-#set($c = 1)
-#foreach ($context in $projectContexts)
-#set ($count = 1)
-#set ($tomcatPool = $context.getTomcatPool())
-#if (!$context.hasTomcatPool())
-<tr class="headercolor$c">
-  <td><a href="$appRoot/Tomcat/Entity/view.vm?id=$!{context.getPk()}&p=$projectId">
$!{context.getName()}</td>
-  <td> $!{context.getEnv().getName()} </td>
-  <td> Not assigned to a Pool</td><td></td></tr>
-#else
-<tr class="headercolor$c">
-  <td><a href="$appRoot/Tomcat/Entity/view.vm?id=$!{context.getPk()}&p=$projectId">
$!{context.getName()}</td>
-  <td> $!{context.getEnv().getName()} </td>
-  #end
-  <td>
-    #foreach ($tomcatWorker in $tomcatPool.getTomcatWorkers())
-    <a href="$appRoot/Tomcat/Worker/view.vm?id=$!{tomcatWorker.getPk()}">$!{tomcatWorker.getName()}
</a><br>
-    #end
-  </td>
-  <td align="right">
-    <!-- before macro -->
-    <!-- $context -->
-    <!-- start macro -->
-    #contextDropBoxWOvhost($User $project $context)
-  </td>
-</tr>
-#set ($count = $math.add($count, 1))
-#if ($c == 1)
-#set($c=2)
-#else
-#set($c=1)
-#end
-#end ##of all servers for this context
-#end ## of all contexts
+  <th width=30%>  </th>
+  </tr>
+  #set($c = 1)
+	#foreach ($context in $projectContexts)
+		#set ($count = 1)
+		#set ($tomcatPool = $context.getTomcatPool())
+		#if (!$context.hasTomcatPool())
+			<tr class="headercolor$c">
+			<td><a href="$appRoot/Tomcat/Entity/view.vm?id=$!{context.getPk()}&p=$projectId">
$!{context.getName()} </td>
+    	<td> $!{context.getEnv().getName()} </td>
+			<td> Not assigned to a Pool</td><td> </td></tr>
+		#else
+    	<tr class="headercolor$c">
+		  <td><a href="$appRoot/Tomcat/Entity/view.vm?id=$!{context.getPk()}&p=$projectId">
$!{context.getName()} </td>
+    	<td> $!{context.getEnv().getName()} </td>
+		#end
+		<td>
+		#foreach ($tomcatWorker in $tomcatPool.getTomcatWorkers())
+		  <a href="$appRoot/Tomcat/Worker/view.vm?id=$!{tomcatWorker.getPk()}">$!{tomcatWorker.getName()}
</a><br>
+		#end
+		</td>
+		<td align="right">
+		<!-- before macro -->
+		<!-- $context -->
+		<!-- start macro -->
+		#contextDropBoxWOvhost($User $project $context)
+		</td>
+ 	  </tr>
+		#set ($count = $math.add($count, 1))
+        #if ($c == 1)
+          #set($c=2)
+        #else
+          #set($c=1)
+        #end
+	#end ##of all servers for this context
+#end 	## of all contexts
 </table>
 <br>
 <table width="95%" border="0" cellspacing="0" cellpadding="1">
-  <!-- Jobs -->
-  #set ($jobpool = $project.getJobPools())
-  <tr height="15" class="info">
-    <td align="left" valign="center" colspan=5>
-      Recent Jobs
-    </td>
-  </tr>
-  <tr class="info">
-    <td> User </td>
-    <td> Action </td>
-    <td> Time </td>
-    <td> Status </td>
-  </tr>
-  #if(! $jobpool || $jobpool.isEmpty())
+<!-- Jobs -->
+#set ($jobpool = $project.getJobPools())
+<tr height="15" class="info">
+<td align="left" valign="center" colspan=5 >
+Recent Jobs
+</td>
+</tr>
+<tr class="info">
+<td> User </td>
+<td> Action </td>
+<td> Time </td>
+<td> Status </td>
+</tr>
+#if(! $jobpool || $jobpool.isEmpty())
   <tr class="headercolor1">
-    <td colspan=4> No jobs for this project</td>
+  <td colspan=4> No jobs for this project</td>
   </tr>
-  #else
-  #set($c = 1)
-  #foreach($job in $jobpool)
-  <tr class="headercolor$c">
-    <td> $!{job.getUser().getFullName()} </td>
-    <td> $job.getFunction().getName() </td>
-    <td> $job.getStartTime() </td>
-    <td><a href="$appRoot/Core/JobPool/details.vm?Id=$job.getPk()" color="$job.getState().getColor()"
-           style="text-decoration:underline">Details <!--$job.getState().getName()--></a>
-    </td>
-  </tr>
-  #if ($c == 1)
-  #set($c=2)
-  #else
-  #set($c=1)
-  #end
-  #end
-  #end
+#else
+#set($c = 1)
+	#foreach($job in $jobpool)
+		<tr class="headercolor$c">
+		<td > $!{job.getUser().getFullName()} </td>
+		<td > $job.getFunction().getName() </td>
+		<td > $job.getStartTime() </td>
+		<td > <a href="$appRoot/Core/JobPool/details.vm?Id=$job.getPk()" color="$job.getState().getColor()"
style="text-decoration:underline">Details <!--$job.getState().getName()--></a>
+		</td>
+		</tr>
+        #if ($c == 1)
+          #set($c=2)
+        #else
+          #set($c=1)
+        #end
+	#end
+#end
 </table>
 <br>
 <table width="95%" border="0" cellspacing="0" cellpadding="1">
-  <!-- Jobs -->
-  #set ($users = $project.getUsers())
+<!-- Jobs -->
+	#set ($users = $project.getUsers())
   <tr height="15" class="info">
-    <td align="left" valign="center" colspan=5>
-      Users
-    </td>
+  	<td align="left" valign="center" colspan=5 >
+  	Users
+  	</td>
   </tr>
   <tr class="info">
-    <td> User Name </td>
-    <td> First Name </td>
-    <td> Last Name </td>
+          <td> User Name </td>
+          <td> First Name </td>
+          <td> Last Name </td>
   </tr>
   #if(! $users || $users.isEmpty())
-  <tr class="headercolor1">
-    <td colspan=3> No users assigned to this project</td>
-  </tr>
+  	<tr class="headercolor1">
+  		<td colspan=3> No users assigned to this project</td>
+  	</tr>
   #else
   #set($c = 1)
   #foreach($u in $users)
-  <tr class="headercolor$c">
-    <td> $!{u.getName()} </td>
-    <td> $!{u.getFirstName()} </td>
-    <td> $!{u.getLastName()} </td>
-  </td>
-</tr>
-#if ($c == 1)
-#set($c=2)
-#else
-#set($c=1)
-#end
-#end
-#end
+		<tr class="headercolor$c">
+		<td > $!{u.getName()} </td>
+		<td > $!{u.getFirstName()} </td>
+		<td > $!{u.getLastName()} </td>
+		</td>
+		</tr>
+        #if ($c == 1)
+          #set($c=2)
+        #else
+          #set($c=1)
+        #end
+  #end
+  #end
 </table>
 
 
+
+
+
+
 </form>
-<br/>
+<br />
 </div>
-<br/>
+<br />
 </div>
 #parse("/layout/footer.vm")
 



Mime
View raw message