From 6c6fbf522e35d32924850ff1110680844c0382f4 Mon Sep 17 00:00:00 2001 From: James Moger Date: Fri, 6 Jan 2012 17:24:55 -0500 Subject: [PATCH] Strip trailing .git from displayed repository links, saves room, looks cleaner --- src/com/gitblit/models/RepositoryModel.java | 7 ++++++- src/com/gitblit/utils/StringUtils.java | 7 +++++++ src/com/gitblit/wicket/pages/RepositoryPage.java | 4 ++-- src/com/gitblit/wicket/panels/ActivityPanel.java | 3 ++- src/com/gitblit/wicket/panels/RepositoriesPanel.java | 2 +- 5 files changed, 18 insertions(+), 5 deletions(-) diff --git a/src/com/gitblit/models/RepositoryModel.java b/src/com/gitblit/models/RepositoryModel.java index 7e33ab06..ad0adaa6 100644 --- a/src/com/gitblit/models/RepositoryModel.java +++ b/src/com/gitblit/models/RepositoryModel.java @@ -59,6 +59,8 @@ public class RepositoryModel implements Serializable, Comparable postReceiveScripts; public List mailingLists; + private String displayName; + public RepositoryModel() { this("", "", "", new Date(0)); } @@ -75,7 +77,10 @@ public class RepositoryModel implements Serializable, Comparable -1)) { repoName = repoName.substring(currGroupName.length() + 1); } -- 2.39.5