Update of /cvsroot/babeldoc/babeldoc/modules/web/build/console/pipeline
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv16757/modules/web/build/console/pipeline
Added Files:
all-stages.vm index.vm stage-details.vm
Log Message:
Minor update
--- NEW FILE: stage-details.vm ---
<html>
<head>
<title>Pipeline</title>
<link rel=stylesheet type="text/css" href="$babel.mapUrl('/site.css')">
</head>
<body>
#set($pipeline = $req.getParameter('pipeline'))
#set($stage = $req.getParameter('stage'))
<table width="700">
<tr bgcolor="#aaaaaa">
<td colspan=4>
<table width="700" cellpadding="0" cellspace="0">
<tr>
<td colspan="2">
<center><h2>pipeline: $pipeline / stage: $stage</h2></center>
</td>
</tr>
<tr>
<td colspan="2">
<center>
<strong>
[$babel.getPipelineListing().getPipelineStageType($pipeline, $stage)]
</strong>
</center>
</td>
</tr>
</table>
</td>
</tr>
<tr bgcolor="#dddddd">
<td><strong>#</strong></td>
<td><strong>config name</strong></td>
<td><strong>config value</strong></td>
<td></td>
</tr>
#set($config = $babel.getPipelineListing().getPipelineConfigForStage($pipeline, $stage))
#set($configKeys = $config.getChildrenNameSet())
#foreach($configKey in $configKeys)
#set($value=$config.getChild($configKey))
#if( $velocityCount % 2 == 0 )
<tr bgcolor="#eeeeee">
#else
<tr>
#end
<td>$velocityCount</td>
<td>$configKey</td>
<td>
#if( $value.Value )
#if( $configKey == "nextStage" )
<a href="stage-details.vm?pipeline=${pipeline}&stage=${value.Value}">
(if)$value.Value
</a>
#else
(else)$value.Value
#end
#end
</td>
#if($value.keys)
<td>
<table>
<tr bgcolor="#dddddd">
<td>#</td>
<td>name</td>
<td>value</td>
</tr>
#set($subcount=0)
#foreach($suboptionKey in $value.getChildrenNameSet())
#if( $velocityCount % 2 == 0 )
<tr bgcolor="#eeeeee">
#else
<tr>
#end
<td>$velocityCount</td>
<td>$suboptionKey</td>
<td>$value.getChild($suboptionKey).Value</td>
</tr>
#set($subcount = $subcount+1)
#end
</table>
</td>
#else
<td></td>
#end
</tr>
#end
</table>
</body>
</html>
--- NEW FILE: index.vm ---
<html>
<head>
<title>Pipeline</title>
<link rel=stylesheet type="text/css" href="$babel.mapUrl('/site.css')">
</head>
<body bgcolor="#ffffff">
<table width="700">
<tr bgcolor="#aaaaaa">
<td colspan="4"><center><h2>pipeline console options</h2></center></td>
</tr>
<tr bgcolor="#ddddd">
<td>
Pipeline
</td>
<td>
Entry Stage
</td>
<td>
Document
</td>
<td>
Do
</td>
</tr>
#set($pipelines = $babel.PipelineListing.AllPipelineNames)
#foreach($pipeline in $pipelines)
#set($entrystage = $babel.PipelineListing.getPipelineEntryStage($pipeline))
<tr>
<form name="${pipeline}" action="/babeldoc-httpfeed" method="post">
<input type="hidden" name="PIPELINE" value="${pipeline}>
<td>
<a href="all-stages.vm?pipeline=$pipeline">
$pipeline
</a>
</td>
<td>
<a href="stage-details.vm?pipeline=$pipeline&stage=$entrystage">
$entrystage
</a>
</td>
<td><input name="DOCUMENT" type="file" size="40"></td>
<td><input type="submit" src="../images/recycle.png" value="processa"></td>
</form>
</tr>
#end
</table>
</center>
</html>
--- NEW FILE: all-stages.vm ---
<html>
<head>
<title>Pipeline</title>
<link rel=stylesheet type="text/css" href="$babel.mapUrl('/site.css')">
</head>
<body>
#set($pipeline = $req.getParameter('pipeline'))
#set($stages = $babel.PipelineListing.getAllPipelineStageNames($pipeline))
<table width="700">
<tr bgcolor="#aaaaaa">
<td colspan=4>
<table width="700" cellpadding="0" cellspace="0">
<tr>
<td colspan="2">
<center><h2>$pipeline stages</h2></center>
</td>
</tr>
</table>
</td>
</tr>
<tr bgcolor="#dddddd">
<td><strong>#</strong></td>
<td><strong>name</strong></td>
<td><strong>next stage</strong></td>
<td><strong>tracked?</strong></td>
</tr>
#foreach( $stage in $stages )
#if( $velocityCount % 2 == 0 )
<tr bgcolor="#eeeeee">
#else
<tr>
#end
<td>$velocityCount</td>
<td>
<a href="stage-details.vm?pipeline=${pipeline}&stage=${stage}">
$stage
<a>
</td>
<td>$babel.PipelineListing.getNextStage($pipeline, $stage)</td>
<td>$babel.PipelineListing.isStageTracked($pipeline, $stage)</td>
</tr>
#end
</table>
</body>
</html>
|