提交 906d164a 编写于 作者: O OHTAKE Tomohiro

[FIXED JENKINS-11383] Do not insert A element if there is no href attrib

上级 c2057762
...@@ -55,7 +55,9 @@ Upcoming changes</a> ...@@ -55,7 +55,9 @@ Upcoming changes</a>
<!-- Record your changes in the trunk here. --> <!-- Record your changes in the trunk here. -->
<div id="trunk" style="display:none"><!--=TRUNK-BEGIN=--> <div id="trunk" style="display:none"><!--=TRUNK-BEGIN=-->
<ul class=image> <ul class=image>
<li class=> <li class=bug>
"Changes" in Build Summary broken in IE standard mode since 1.434
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-11383">issue 11383</a>)
</ul> </ul>
</div><!--=TRUNK-END=--> </div><!--=TRUNK-END=-->
......
...@@ -45,15 +45,30 @@ THE SOFTWARE. ...@@ -45,15 +45,30 @@ THE SOFTWARE.
<j:if test="${attrs.icon!=null}"> <j:if test="${attrs.icon!=null}">
<tr> <tr>
<td> <td>
<a href="${attrs.href}"> <j:choose>
<img src="${icon.startsWith('/') ? rootURL+icon : imagesURL+'/48x48/'+icon}" <j:when test="${attrs.href!=null}">
alt="" width="48" height="48" style="margin-right:1em" /> <a href="${attrs.href}">
</a> <img src="${icon.startsWith('/') ? rootURL+icon : imagesURL+'/48x48/'+icon}"
alt="" width="48" height="48" style="margin-right:1em" />
</a>
</j:when>
<j:otherwise>
<img src="${icon.startsWith('/') ? rootURL+icon : imagesURL+'/48x48/'+icon}"
alt="" width="48" height="48" style="margin-right:1em" />
</j:otherwise>
</j:choose>
</td> </td>
<td style="vertical-align:middle"> <td style="vertical-align:middle">
<a href="${attrs.iconOnly==null ? attrs.href : null}"> <j:choose>
<d:invokeBody /> <j:when test="${attrs.href!=null &amp;&amp; !attrs.iconOnly}">
</a> <a href="${attrs.href}">
<d:invokeBody />
</a>
</j:when>
<j:otherwise>
<d:invokeBody />
</j:otherwise>
</j:choose>
</td> </td>
</tr> </tr>
</j:if> </j:if>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册