Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[FIXED JENKINS-17041] fix "add some" link for default view
  • Loading branch information
yoichi committed Sep 23, 2013
1 parent 518a384 commit 2e5d1f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Expand Up @@ -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>
Expand Down
Expand Up @@ -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 {
Expand Down

0 comments on commit 2e5d1f5

Please sign in to comment.