add(WicketUtils.syndicationDiscoveryLink(SyndicationServlet.getTitle(project.getDisplayName(),\r
null), feedLink));\r
\r
- String groupName = projectName;\r
+ final String projectPath;\r
if (project.isRoot) {\r
- groupName = "";\r
+ projectPath = "";\r
} else {\r
- groupName += "/";\r
+ projectPath = projectName + "/";\r
}\r
\r
// project markdown message\r
- File pmkd = new File(GitBlit.getRepositoriesFolder(), groupName + "project.mkd");\r
+ File pmkd = new File(GitBlit.getRepositoriesFolder(), projectPath + "project.mkd");\r
String pmessage = readMarkdown(projectName, pmkd);\r
Component projectMessage = new Label("projectMessage", pmessage)\r
.setEscapeModelStrings(false).setVisible(pmessage.length() > 0);\r
add(projectMessage);\r
\r
// markdown message above repositories list\r
- File rmkd = new File(GitBlit.getRepositoriesFolder(), groupName + "repositories.mkd");\r
+ File rmkd = new File(GitBlit.getRepositoriesFolder(), projectPath + "repositories.mkd");\r
String rmessage = readMarkdown(projectName, rmkd);\r
Component repositoriesMessage = new Label("repositoriesMessage", rmessage)\r
.setEscapeModelStrings(false).setVisible(rmessage.length() > 0);\r
swatch.setVisible(showSwatch);\r
\r
PageParameters pp = WicketUtils.newRepositoryParameter(entry.name);\r
- item.add(new LinkPanel("repositoryName", "list", entry.name, SummaryPage.class, pp));\r
+ item.add(new LinkPanel("repositoryName", "list", StringUtils.getRelativePath(projectPath, StringUtils.stripDotGit(entry.name)), SummaryPage.class, pp));\r
item.add(new Label("repositoryDescription", entry.description).setVisible(!StringUtils.isEmpty(entry.description)));\r
\r
item.add(new BookmarkablePageLink<Void>("tickets", TicketsPage.class, pp).setVisible(entry.useTickets));\r