提交 bb97d31c 编写于 作者: K kohsuke

added more prominent indentation

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@14057 71c3de6d-444a-0410-be80-ed276b4c234a
上级 c36b2250
......@@ -13,4 +13,10 @@ public abstract class Indenter<J extends Job> {
public final String getCss(J job) {
return "padding-left: "+getNestLevel(job)*2+"em";
}
public final String getRelativeShift(J job) {
int i = getNestLevel(job);
if(i==0) return null;
return "position:relative; left: "+ i *2+"em";
}
}
......@@ -5,6 +5,7 @@
-->
<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">
<td data="${it.ordinal()}">
<img src="${imagesURL}/${iconSize}/${it.image}" alt="${it.description}" tooltip="${it.description}" />
<img src="${imagesURL}/${iconSize}/${it.image}" alt="${it.description}"
tooltip="${it.description}" style="${attrs.style}"/>
</td>
</j:jelly>
\ No newline at end of file
......@@ -13,7 +13,7 @@
<x:attribute name="onmouseover">this.className='healthReport hover';return true;
</x:attribute>
<x:attribute name="onmouseout">this.className='healthReport';return true;</x:attribute>
<a href="${h.ifThenElse(empty(link),'#',link)}">
<a href="${h.ifThenElse(empty(link),'#',link)}" style="${attrs.style}">
<img src="${rootURL}${buildHealth.getIconUrl(iconSize)}"
alt="${buildHealth.score}%"/>
</a>
......
......@@ -4,13 +4,15 @@
<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">
<tr>
<td colspan="2" style="text-align: center">
<a href="#">
<img src="${imagesURL}/tree/plus.png" state="plus" width="14" height="14" alt="" class="fold-control treeview-fold-control"
url="${rootURL}/${v.url}/ajaxRows?depth=${h.ifThenElse(depth!=null,depth+1,1)}"/>
<st:adjunct includes="lib.hudson.projectViewNested" />
</a>
<img src="${imagesURL}/${iconSize}/folder.gif" style="margin-left:4px" alt="" />
<td colspan="2">
<div style="${indenter.getRelativeShift(job)}">
<a href="#">
<img src="${imagesURL}/tree/plus.png" state="plus" width="14" height="14" alt="" class="fold-control treeview-fold-control"
url="${rootURL}/${v.url}/ajaxRows?depth=${h.ifThenElse(depth!=null,depth+1,1)}"/>
<st:adjunct includes="lib.hudson.projectViewNested" />
</a>
<img src="${imagesURL}/${iconSize}/folder.gif" style="margin-left:4px" alt="" />
</div>
</td>
<td colspan="5" style="${indenter.getCss(job)}">
<a href="${rootURL}/${v.url}">
......
......@@ -9,8 +9,9 @@
<j:set var="lsBuild" value="${job.lastSuccessfulBuild}"/>
<j:set var="lfBuild" value="${job.lastFailedBuild}"/>
<tr class="${h.ifThenElse(job.disabled,'disabledJob',null)}">
<t:ballColorTd it="${job.iconColor}"/>
<t:buildHealth td="true" link="${jobBaseUrl}${job.shortUrl}lastBuild"/>
<t:ballColorTd it="${job.iconColor}" style="${indenter.getRelativeShift(job)}"/>
<t:buildHealth td="true" style="${indenter.getRelativeShift(job)}"
link="${jobBaseUrl}${job.shortUrl}lastBuild"/>
<td style="${indenter.getCss(job)}">
<a href="${jobBaseUrl}${job.shortUrl}">
${job.displayName}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册