Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 48ec1dbe85112688a9c5ca5fb33dc9965c0a464e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<!-- **************************************************************************
#
# Copyright  (c) 2004-2011 Oracle Corporation.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
#
# Contributors: 
#
#    Kohsuke Kawaguchi, Erik Ramfelt, Tom Huybrechts, id:cactusman, Yahoo! Inc., Nikita Levyankov
#        
#
#************************************************************************** --> 


<!--
  Side panel for the job view.
-->
<?jelly escape-by-default='true'?>
<j:jelly xmlns:j="jelly:core" xmlns:x="jelly:xml" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form" xmlns:i="jelly:fmt">
  <l:header title="${it.name}">
    <st:include page="rssHeader.jelly" />
    <link rel="alternate" title="Hudson:${it.name} (changelog)" href="rssChangelog" type="application/rss+xml" />
    <link rel="alternate" title="Hudson:${it.name} (changelog) (RSS 2.0)" href="rssChangelog?flavor=rss20" type="application/rss+xml" />
  </l:header>
  <l:side-panel>
    <l:tasks>
      <j:set var="url" value="${h.getNearestAncestorUrl(request,it)}"/>
      <l:task icon="images/24x24/up.png" href="${rootURL}/" title="${%Back to Main Dashboard}" />
      <l:task icon="images/24x24/search.png"  href="${url}/" title="${%Status}" />
      <l:task icon="images/24x24/notepad.png" href="${url}/changes" title="${%Changes}" />
      <l:task icon="images/24x24/folder.png"  href="${url}/ws/" title="${%Workspace}" permission="${it.WORKSPACE}">
        <l:task icon="images/24x24/folder-delete.png"  href="${url}/wipeOutWorkspace" title="${%Wipe Out Workspace}" permission="${h.isWipeOutPermissionEnabled() ? it.WIPEOUT : it.BUILD}" />
      </l:task>
      <j:if test="${it.configurable}">
        <j:if test="${it.buildable}">
          <l:task icon="images/24x24/clock.png" href="${url}/build?delay=0sec" title="${%Build Now}"
                  onclick="${it.parameterized?null:'return build(this)'}" permission="${it.BUILD}" />
          <script>
            function build(a) {
              new Ajax.Request(a.href);
              
              hoverNotification('${%Build scheduled}',a.parentNode);
              return false;
            }
          </script>
        </j:if>
        <l:taskWithDialog icon="images/24x24/edit-delete.png" href="${url}/delete" dialogPanel="deleteConfirmationPanel.jelly" title="${%delete(it.pronoun)}" permission="${it.DELETE}" onclick="onDeleteClick();return false;"/>
        <j:choose>
            <j:when test="${h.hasPermission(it,it.CONFIGURE)}">
                <l:task icon="images/24x24/setting.png" href="${url}/configure" title="${%Configure}" />
            </j:when>
            <j:when test="${h.hasPermission(it,it.EXTENDED_READ)}">
                <l:task icon="images/24x24/setting.png" href="${url}/configure" title="${%View Configuration}" />
            </j:when>
        </j:choose>
      </j:if>
      <st:include page="actions.jelly" />
    </l:tasks>

    <st:include page="sidepanel2.jelly" optional="true" />

    <j:forEach var="w" items="${it.widgets}">
      <st:include it="${w}" page="index.jelly" />
    </j:forEach>
  </l:side-panel>
</j:jelly>

Back to the top