sidepanel.jelly 3.7 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, Daniel Dyer, id:cactusman

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 28 29
<!--
  Side panel for the build view.
-->
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:s="/lib/form">
  <l:header title="Hudson">
K
kohsuke 已提交
30 31 32 33
    <link rel="alternate" title="Hudson:${it.viewName} (all builds)" href="${it.url}rssAll" type="application/rss+xml" />
    <link rel="alternate" title="Hudson:${it.viewName} (all builds) (RSS 2.0)" href="${it.url}rssAll?flavor=rss20" type="application/rss+xml" />
    <link rel="alternate" title="Hudson:${it.viewName} (failed builds)" href="${it.url}rssFailed" type="application/rss+xml" />
    <link rel="alternate" title="Hudson:${it.viewName} (failed builds) (RSS 2.0)" href="${it.url}rssFailed?flavor=rss20" type="application/rss+xml" />
K
kohsuke 已提交
34 35 36
  </l:header>
  <l:side-panel>
    <l:tasks>
37
      <l:task icon="images/24x24/new-package.gif" href="${rootURL}/${it.url}newJob" title="${%New Job}" permission="${it.itemCreatePermission}" />
38 39
      <l:task icon="images/24x24/setting.gif" href="${rootURL}/manage" title="${%Manage Hudson}" permission="${app.ADMINISTER}" />
      <j:if test="${it.hasPeople()}">
40
        <l:task icon="images/24x24/user.gif" href="${rootURL}/people/" title="${%People}" />
41
      </j:if>
C
cactusman 已提交
42
      <l:task icon="images/24x24/notepad.gif" href="${rootURL}/${it.url}builds" title="${%Build History}"/>
K
kohsuke 已提交
43 44 45 46
      <j:if test="${it.isEditable()}">
        <!-- /configure URL on Hudson object is overloaded with Hudson's system config, so always use the explicit name. -->
        <l:task icon="images/24x24/gear.gif" href="${rootURL}/view/${it.viewName}/configure" title="${%Edit View}"  permission="${it.CONFIGURE}" />
      </j:if>
47 48
      <j:if test="${!it.isDefault()}">
        <!-- this is ugly, but Hudson delegates the rendering of its pages to its primary view -->
49
        <l:task icon="images/24x24/edit-delete.gif" href="delete" title="${%Delete View}"  permission="${it.CONFIGURE}" />
K
bug fix  
kohsuke 已提交
50 51 52 53
      </j:if>
      <j:if test="${app.fingerprintMap.ready}">
        <l:task icon="images/24x24/search.gif" href="${rootURL}/projectRelationship" title="${%Project Relationship}" />
        <l:task icon="images/24x24/fingerprint.gif" href="${rootURL}/fingerprintCheck" title="${%Check File Fingerprint}" />
54
      </j:if>
55

56 57 58
      <!-- subtypes can put more stuff here -->
      <st:include page="sidepanel2.jelly" optional="true"/>

K
kohsuke 已提交
59
      <t:actions />
K
kohsuke 已提交
60
    </l:tasks>
61
    <t:queue items="${app.queue.items}" />
K
kohsuke 已提交
62
    <t:executors />
K
kohsuke 已提交
63 64 65
    <j:forEach var="w" items="${it.widgets}">
      <st:include it="${w}" page="index.jelly" />
    </j:forEach>
K
kohsuke 已提交
66 67
  </l:side-panel>
</j:jelly>