<!-- future spot for other repo buttons -->\r
<a class="btn" wicket:id="starLink"></a>\r
<a class="btn" wicket:id="unstarLink"></a>\r
- \r
<a class="btn" wicket:id="myForkLink"><img style="border:0px;vertical-align:middle;" src="fork-black_16x16.png"></img> <wicket:message key="gb.myFork"></wicket:message></a>\r
<a class="btn" wicket:id="forkLink"><img style="border:0px;vertical-align:middle;" src="fork-black_16x16.png"></img> <wicket:message key="gb.fork"></wicket:message></a>\r
+ <a class="btn" wicket:id="editLink"><i class="icon-cog"></i> <wicket:message key="gb.edit"></wicket:message></a>\r
</div>\r
\r
<div wicket:id="repositoryNavPanel"></div>\r
isOwner = GitBlitWebSession.get().isLoggedIn()\r
&& (model.isOwner(GitBlitWebSession.get()\r
.getUsername()));\r
- if (showAdmin || isOwner) {\r
- pages.put("edit", new PageRegistration("gb.edit", EditRepositoryPage.class, params));\r
- }\r
return pages;\r
}\r
\r
}\r
}\r
\r
+ if (showAdmin || isOwner) {\r
+ String url = getRequestCycle().urlFor(EditRepositoryPage.class, WicketUtils.newRepositoryParameter(model.name)).toString();\r
+ add(new ExternalLink("editLink", url)); \r
+ } else {\r
+ add(new Label("editLink").setVisible(false));\r
+ }\r
+ \r
super.setupPage(repositoryName, pageName);\r
}\r
\r