import com.gitblit.models.Metric;\r
import com.gitblit.models.RepositoryModel;\r
import com.gitblit.utils.ActivityUtils;\r
+import com.gitblit.utils.StringUtils;\r
import com.gitblit.wicket.PageRegistration;\r
import com.gitblit.wicket.PageRegistration.DropDownMenuItem;\r
import com.gitblit.wicket.PageRegistration.DropDownMenuRegistration;\r
\r
// aggregate repository metrics\r
for (Map.Entry<String, Metric> entry : activity.getRepositoryMetrics().entrySet()) {\r
- String repository = entry.getKey();\r
+ String repository = StringUtils.stripDotGit(entry.getKey());\r
if (!repositoryMetrics.containsKey(repository)) {\r
repositoryMetrics.put(repository, new Metric(repository));\r
}\r
LinkPanel repositoryLink = new LinkPanel("repository", null,\r
repoName, SummaryPage.class,\r
WicketUtils.newRepositoryParameter(commit.repository), true);\r
- WicketUtils.setCssBackground(repositoryLink, commit.repository);\r
+ WicketUtils.setCssBackground(repositoryLink, repoName);\r
fragment.add(repositoryLink);\r
\r
// repository branch\r
if (!StringUtils.isEmpty(currGroupName) && (repoName.indexOf('/') > -1)) {\r
repoName = repoName.substring(currGroupName.length() + 1);\r
}\r
-\r
+ \r
// repository swatch\r
Component swatch = new Label("repositorySwatch", " ").setEscapeModelStrings(false);\r
- WicketUtils.setCssBackground(swatch, entry.name);\r
+ WicketUtils.setCssBackground(swatch, entry.toString());\r
row.add(swatch);\r
swatch.setVisible(showSwatch);\r
\r