public void populateItem(final Item<RefModel> item) {\r
final RefModel entry = item.getModelObject();\r
\r
+ PageParameters shortUniqRef = WicketUtils.newObjectParameter(model.name,\r
+ Repository.shortenRefName(entry.getName()));\r
+\r
item.add(WicketUtils.createDateLabel("branchDate", entry.getDate(), getTimeZone(), getTimeUtils()));\r
\r
item.add(new LinkPanel("branchName", "list name", StringUtils.trimString(\r
- entry.displayName, 28), LogPage.class, WicketUtils.newObjectParameter(\r
- model.name, entry.getName())));\r
+ entry.displayName, 28), LogPage.class, shortUniqRef));\r
\r
String author = entry.getAuthorIdent().getName();\r
LinkPanel authorLink = new LinkPanel("branchAuthor", "list", author,\r
String shortMessage = entry.getShortMessage();\r
String trimmedMessage = StringUtils.trimString(shortMessage, Constants.LEN_SHORTLOG);\r
LinkPanel shortlog = new LinkPanel("branchLog", "list subject", trimmedMessage,\r
- CommitPage.class, WicketUtils.newObjectParameter(model.name,\r
- entry.getName()));\r
+ CommitPage.class, shortUniqRef);\r
if (!shortMessage.equals(trimmedMessage)) {\r
shortlog.setTooltip(shortMessage);\r
}\r
\r
if (maxCount <= 0) {\r
Fragment fragment = new Fragment("branchLinks", showDelete? "branchPageAdminLinks" : "branchPageLinks", this);\r
- fragment.add(new BookmarkablePageLink<Void>("log", LogPage.class, WicketUtils\r
- .newObjectParameter(model.name, entry.getName())));\r
- fragment.add(new BookmarkablePageLink<Void>("tree", TreePage.class, WicketUtils\r
- .newObjectParameter(model.name, entry.getName())));\r
+ fragment.add(new BookmarkablePageLink<Void>("log", LogPage.class, shortUniqRef));\r
+ fragment.add(new BookmarkablePageLink<Void>("tree", TreePage.class, shortUniqRef));\r
String rawUrl = RawServlet.asLink(getContextUrl(), model.name, Repository.shortenRefName(entry.getName()), null);\r
- fragment.add(new ExternalLink("raw", rawUrl));\r
- fragment.add(new BookmarkablePageLink<Void>("metrics", MetricsPage.class,\r
- WicketUtils.newObjectParameter(model.name, entry.getName())));\r
+ fragment.add(new ExternalLink("raw", rawUrl));\r
+ fragment.add(new BookmarkablePageLink<Void>("metrics", MetricsPage.class, shortUniqRef));\r
fragment.add(new ExternalLink("syndication", SyndicationServlet.asLink(\r
getRequest().getRelativePathPrefixToContextRoot(), model.name,\r
- entry.getName(), 0)));\r
+ Repository.shortenRefName(entry.getName()), 0)));\r
if (showDelete) {\r
fragment.add(createDeleteBranchLink(model, entry));\r
}\r
item.add(fragment);\r
} else {\r
Fragment fragment = new Fragment("branchLinks", "branchPanelLinks", this);\r
- fragment.add(new BookmarkablePageLink<Void>("log", LogPage.class, WicketUtils\r
- .newObjectParameter(model.name, entry.getName())));\r
- fragment.add(new BookmarkablePageLink<Void>("tree", TreePage.class, WicketUtils\r
- .newObjectParameter(model.name, entry.getName())));\r
+ fragment.add(new BookmarkablePageLink<Void>("log", LogPage.class, shortUniqRef));\r
+ fragment.add(new BookmarkablePageLink<Void>("tree", TreePage.class, shortUniqRef));\r
String rawUrl = RawServlet.asLink(getContextUrl(), model.name, Repository.shortenRefName(entry.getName()), null);\r
fragment.add(new ExternalLink("raw", rawUrl));\r
item.add(fragment);\r