From lokahi-commits-return-138-apmail-incubator-lokahi-commits-archive=incubator.apache.org@incubator.apache.org Thu Jul 06 16:09:08 2006 Return-Path: Delivered-To: apmail-incubator-lokahi-commits-archive@locus.apache.org Received: (qmail 41963 invoked from network); 6 Jul 2006 16:09:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Jul 2006 16:09:08 -0000 Received: (qmail 34676 invoked by uid 500); 6 Jul 2006 16:09:08 -0000 Delivered-To: apmail-incubator-lokahi-commits-archive@incubator.apache.org Received: (qmail 34660 invoked by uid 500); 6 Jul 2006 16:09:08 -0000 Mailing-List: contact lokahi-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: lokahi-dev@incubator.apache.org Delivered-To: mailing list lokahi-commits@incubator.apache.org Received: (qmail 34649 invoked by uid 99); 6 Jul 2006 16:09:08 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Jul 2006 09:09:08 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [140.211.166.113] (HELO eris.apache.org) (140.211.166.113) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Jul 2006 09:09:07 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id F10671A981A; Thu, 6 Jul 2006 09:08:46 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r419600 - /incubator/lokahi/lokahi/trunk/src/www/Core/Project/details.vm Date: Thu, 06 Jul 2006 16:08:46 -0000 To: lokahi-commits@incubator.apache.org From: toback@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20060706160846.F10671A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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
-

+

@@ -34,274 +34,265 @@ #set($vhosts = $project.getVirtualHosts()) #set($projectContexts = $project.getTomcatContexts()) -
+
- - - - + + + +
Project - $!{project.getName()}   - #foreach ($env in $project.getEnvs()) - $env.getName()   - #end - All   - - #if ($User.isAllowed("AddVirtualHost", $projectId) || $User.isAllowed("AddVirtualHostToProject", $projectId) || - $User.isAllowed("AddUser", $projectId) || $User.isAllowed("AddUserToProject", $projectId) || - $User.isAllowed("DeleteProject", $projectId)) - - #end -
Project - $!{project.getName()}   + #foreach ($env in $project.getEnvs()) + $env.getName()   + #end + All   + +#if ($User.isAllowed("AddVirtualHost", $projectId) || $User.isAllowed("AddVirtualHostToProject", $projectId) || $User.isAllowed("AddUser", $projectId) || $User.isAllowed("AddUserToProject", $projectId) || $User.isAllowed("DeleteProject", $projectId)) + +#end +

#set($c = 1) #if( $vhosts && ! $vhosts.isEmpty()) - - - - - - - - -#foreach ($vhost in $vhosts) -#if (!$envId || $vhost.getEnvId().toString() == $envId) - - - #set($ap = $vhost.getApachePool()) - - - + + + + + + + + #foreach ($vhost in $vhosts) + #if (!$envId || $vhost.getEnvId().toString() == $envId) + + + #set($ap = $vhost.getApachePool()) + + + + + #set ($contexts = $vhost.getContexts()) + #if( $contexts && ! $contexts.isEmpty()) + #set($cc = 1) + #foreach ($context in $contexts) + + #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()) + + + + + #else + + + + + + #end + + #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 - - -#set ($contexts = $vhost.getContexts()) -#if( $contexts && ! $contexts.isEmpty()) -#set($cc = 1) -#foreach ($context in $contexts) - -#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()) - - - - -#else - - - - - #end - -#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.
- Apache - Tomcat applications - -
Virtual Host Context Pool
$!{vhost.getName()}   $!{ap.getName()} - #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)) - + Apache - Tomcat applications + +
Virtual Host Context Pool
$!{vhost.getName()}   $!{ap.getName()} + #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)) + #end - +
  $!{context.getName()} Not assigned to a Pool
  $!{context.getName()} + $!{tomcatPool.getName()}
+
+ + + + #contextDropBox($User $project $context $vhost) +
  $!{context.getName()} Not assigned to a Pool
  - $!{context.getName()} - $!{tomcatPool.getName()}
-
- - - - #contextDropBox($User $project $context $vhost) -

#set ($temp = $projectContexts.clone()) #foreach ($context in $temp) -#if($envId && $context.getEnvId().toString() != $envId) - -#end + #if($envId && $context.getEnvId().toString() != $envId) + + #end #end #if( $projectContexts && ! $projectContexts.isEmpty()) - +
- - - + + + - - -#set($c = 1) -#foreach ($context in $projectContexts) -#set ($count = 1) -#set ($tomcatPool = $context.getTomcatPool()) -#if (!$context.hasTomcatPool()) - - - - -#else - - - - #end - - - -#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 + + + #set($c = 1) + #foreach ($context in $projectContexts) + #set ($count = 1) + #set ($tomcatPool = $context.getTomcatPool()) + #if (!$context.hasTomcatPool()) + + + + + #else + + + + #end + + + + #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
- Tomcat applications - -
+ Tomcat applications + +
Context Environment Worker
$!{context.getName()} $!{context.getEnv().getName()} Not assigned to a Pool
$!{context.getName()} $!{context.getEnv().getName()} - #foreach ($tomcatWorker in $tomcatPool.getTomcatWorkers()) - $!{tomcatWorker.getName()}
- #end -
- - - - #contextDropBoxWOvhost($User $project $context) -
$!{context.getName()} $!{context.getEnv().getName()} Not assigned to a Pool
$!{context.getName()} $!{context.getEnv().getName()} + #foreach ($tomcatWorker in $tomcatPool.getTomcatWorkers()) + $!{tomcatWorker.getName()}
+ #end +
+ + + + #contextDropBoxWOvhost($User $project $context) +

- - #set ($jobpool = $project.getJobPools()) - - - - - - - - - - #if(! $jobpool || $jobpool.isEmpty()) + +#set ($jobpool = $project.getJobPools()) + + + + + + + + + +#if(! $jobpool || $jobpool.isEmpty()) - + - #else - #set($c = 1) - #foreach($job in $jobpool) - - - - - - - #if ($c == 1) - #set($c=2) - #else - #set($c=1) - #end - #end - #end +#else +#set($c = 1) + #foreach($job in $jobpool) + + + + + + + #if ($c == 1) + #set($c=2) + #else + #set($c=1) + #end + #end +#end
- Recent Jobs -
User Action Time Status
+Recent Jobs +
User Action Time Status
No jobs for this project No jobs for this project
$!{job.getUser().getFullName()} $job.getFunction().getName() $job.getStartTime() Details -
$!{job.getUser().getFullName()} $job.getFunction().getName() $job.getStartTime() Details +

- - #set ($users = $project.getUsers()) + + #set ($users = $project.getUsers()) - + - - - + + + #if(! $users || $users.isEmpty()) - - - + + + #else #set($c = 1) #foreach($u in $users) - - - - - - -#if ($c == 1) -#set($c=2) -#else -#set($c=1) -#end -#end -#end + + + + + + + #if ($c == 1) + #set($c=2) + #else + #set($c=1) + #end + #end + #end
- Users - + Users +
User Name First Name Last Name User Name First Name Last Name
No users assigned to this project
No users assigned to this project
$!{u.getName()} $!{u.getFirstName()} $!{u.getLastName()}
$!{u.getName()} $!{u.getFirstName()} $!{u.getLastName()}
+ + + + -
+
-
+
#parse("/layout/footer.vm")