Skip to content
Permalink
Browse files
[FIXED JENKINS-17041] fix "add some" link for default view
  • Loading branch information
yoichi committed Sep 23, 2013
1 parent 518a384 commit 2e5d1f5a4e52d331e9a6887099dc0ef52835d8be
Showing with 3 additions and 2 deletions.
  1. +2 −1 src/main/resources/hudson/plugins/nested_view/NestedView/main.jelly
  2. +1 −1 src/test/java/hudson/plugins/nested_view/NestedViewTest.java
@@ -37,7 +37,8 @@ THE SOFTWARE.
<p>
${%This view has no subviews associated with it.}
<j:if test="${it.hasPermission(it.CONFIGURE)}">
<j:out value="${%AddSome('newView')}"/>
<j:set var="newView" value="${rootURL}/${it.viewUrl}newView"/>
<j:out value="${%AddSome(newView)}"/>
</j:if>
</p>
</j:when>
@@ -91,7 +91,7 @@ public void test() throws Exception {
assertNotNull(page.getAnchorByHref("job/Efgh/"));
// Verify link to add a subview for empty nested view
page = wc.goTo("view/test-nest/view/subnest/");
assertNotNull(page.getAnchorByHref("newView"));
assertNotNull(page.getAnchorByHref("/view/test-nest/view/subnest/newView"));
}

public void testGetWorstResult() throws Exception {

0 comments on commit 2e5d1f5

Please sign in to comment.