Skip to content

Commit

Permalink
[JENKINS-24093] Clean jelly code
Browse files Browse the repository at this point in the history
  • Loading branch information
mixalturek committed Aug 3, 2014
1 parent f73ff44 commit 36b2517
Show file tree
Hide file tree
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>

Expand Down
@@ -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/>
Expand Down
@@ -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}"/>
Expand Down
@@ -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>
Expand Down
@@ -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>
Expand Down
@@ -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>
Expand Down
@@ -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>
Expand Down
@@ -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}">
Expand Down
@@ -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; }
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/tabview/css.jelly
@@ -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 */
Expand Down
4 changes: 1 addition & 3 deletions src/main/resources/tabview/distribution-graph.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">

<table cellpadding="0" cellspacing="0" width="100%">
<tr style="height:10;padding:0">
Expand Down
10 changes: 4 additions & 6 deletions src/main/resources/tabview/main.jelly
@@ -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");
Expand Down

0 comments on commit 36b2517

Please sign in to comment.