buildCaption.jelly 2.1 KB
Newer Older
K
kohsuke 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
<!--
The MIT License

Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-->

K
kohsuke 已提交
25 26 27
<!--
    displays a caption for build/externalRun.
-->
28
<?jelly escape-by-default='true'?>
K
kohsuke 已提交
29
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form">
30
	<h1 class="build-caption page-headline">
K
kohsuke 已提交
31
	  <j:if test="${it.building}">
32
	    <div class="build-caption-progress-container" style="float:right">
K
kohsuke 已提交
33 34
	      <table class="middle-align"><tr>
	        <td>
K
kohsuke 已提交
35
	          ${%Progress}:
36
	        </td><td class="build-caption-progress-bar">
K
kohsuke 已提交
37
	          <t:buildProgressBar build="${it}"/>
K
kohsuke 已提交
38
	        </td><td>
39
            <j:if test="${it.parent.hasAbortPermission()}">
J
Jesse Glick 已提交
40
              <l:stopButton href="stop" alt="[${%cancel}]"/>
K
kohsuke 已提交
41
            </j:if>
K
kohsuke 已提交
42 43 44 45 46
	        </td>
	      </tr></table>
	    </div>
	  </j:if>
	  
47
	  <img class="build-caption-status-icon" src="${imagesURL}/48x48/${it.buildStatusUrl}" width="48" height="48" alt="${it.iconColor.description}" tooltip="${it.iconColor.description}" />
K
kohsuke 已提交
48 49
	  <d:invokeBody />
	</h1>
50
</j:jelly>