Skip to content
Permalink
Browse files
[JENKINS-24093] Clean jelly code
  • Loading branch information
mixalturek committed Aug 3, 2014
1 parent f73ff44 commit 36b251776c2bb886c3531bc25a1a7e48f9aaa3d0
Showing 13 changed files with 16 additions and 43 deletions.
@@ -1,5 +1,4 @@
<j:jelly xmlns:j="jelly:core" xmlns:t="/lib/hudson" xmlns:st="jelly:stapler">

<t:summary icon="/plugin/sloccount/icons/sloccount-48.png">
<div><a href="${it.urlName}">${it.displayName}</a></div>

@@ -1,4 +1,4 @@
<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" xmlns:i="jelly:fmt" xmlns:local="local">
<j:jelly xmlns:j="jelly:core">
<j:if test="${from.hasValidResults()}">
<div align="right">
<p/>
@@ -1,5 +1,4 @@
<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" xmlns:u="/util">
<j:jelly xmlns:j="jelly:core" xmlns:f="/lib/form">
<f:entry title="${%SLOCCount reports}"
description="${%description.pattern('http://ant.apache.org/manual/Types/fileset.html')}">
<f:textbox name="pattern" value="${instance.pattern}"/>
@@ -1,6 +1,4 @@
<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"
xmlns:i="jelly:fmt" xmlns:local="local">
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler">
<st:header name="Content-Type" value="text/html;charset=UTF-8" />
<table class="pane sortable" id="files">
<thead>
@@ -1,6 +1,4 @@
<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"
xmlns:i="jelly:fmt" xmlns:local="local">
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler">
<st:header name="Content-Type" value="text/html;charset=UTF-8" />
<table class="pane sortable" id="files">
<thead>
@@ -1,14 +1,9 @@
<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" xmlns:i="jelly:fmt">
<l:layout norefresh="true">
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:l="/lib/layout">
<l:layout norefresh="true" title="${%SLOCCount Results}">
<st:include it="${it.owner}" page="sidepanel.jelly" />
<l:main-panel>

<h1>${%SLOCCount Results}</h1>

<st:include page="/tabview/main.jelly" />

</l:main-panel>
</l:layout>
</j:jelly>
@@ -1,6 +1,4 @@
<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"
xmlns:i="jelly:fmt" xmlns:local="local">
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler">
<st:header name="Content-Type" value="text/html;charset=UTF-8" />
<table class="pane sortable" id="files">
<thead>
@@ -1,6 +1,4 @@
<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"
xmlns:i="jelly:fmt" xmlns:local="local">
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler">
<st:header name="Content-Type" value="text/html;charset=UTF-8" />
<table class="pane sortable" id="modules">
<thead>
@@ -1,10 +1,6 @@
<j:jelly xmlns:j="jelly:core"
xmlns:st="jelly:stapler"
xmlns:d="jelly:define"
xmlns:dp="/hudson/plugins/view/dashboard"
xmlns:l="/lib/layout"
xmlns:t="/lib/hudson"
xmlns:f="/lib/form">
xmlns:dp="/hudson/plugins/view/dashboard">

<!-- According to https://wiki.jenkins-ci.org/display/JENKINS/Dashboard+View -->
<dp:decorate portlet="${it}">
@@ -1,8 +1,4 @@
<j:jelly xmlns:j="jelly:core"
xmlns:st="jelly:stapler"
xmlns:l="/lib/layout"
xmlns:t="/lib/hudson"
xmlns:dp="/hudson/plugins/view/dashboard">
<j:jelly xmlns:j="jelly:core" xmlns:dp="/hudson/plugins/view/dashboard">

<style type="text/css">
.sloccountTablePortlet .number { text-align: right; }
@@ -1,4 +1,4 @@
<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" xmlns:i="jelly:fmt" xmlns:local="local">
<j:jelly xmlns:j="jelly:core">
<style type="text/css">

/* .yui-navset defaults to .yui-navset-top */
@@ -1,6 +1,4 @@
<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"
xmlns:i="jelly:fmt" xmlns:local="local">
<j:jelly xmlns:j="jelly:core">

<table cellpadding="0" cellspacing="0" width="100%">
<tr style="height:10;padding:0">
@@ -1,10 +1,8 @@
<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"
xmlns:i="jelly:fmt" xmlns:local="local">
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler">
<st:header name="Content-Type" value="text/html;charset=UTF-8" />
<script type="text/javascript" src="${rootURL}/plugin/sloccount/yui/utilities.js"></script>
<script type="text/javascript" src="${rootURL}/plugin/sloccount/yui/tabview-min.js"></script>
<script type="text/javascript" src="${rootURL}/plugin/sloccount/yui/dispatcher-min.js"></script>
<script type="text/javascript" src="${rootURL}/plugin/sloccount/yui/utilities.js"/>
<script type="text/javascript" src="${rootURL}/plugin/sloccount/yui/tabview-min.js"/>
<script type="text/javascript" src="${rootURL}/plugin/sloccount/yui/dispatcher-min.js"/>

<script type="text/javascript">
var myTabs = new YAHOO.widget.TabView("statistics");

0 comments on commit 36b2517

Please sign in to comment.