diff options
author | James Moger <james.moger@gitblit.com> | 2014-02-21 09:24:54 -0500 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-02-21 09:24:54 -0500 |
commit | 6d29e03364472f8881c120a290546a516f0a8b56 (patch) | |
tree | 003281f3b65efc7b598a21241399246d702ed5e3 /src | |
parent | 9fcd4fa469c4154a6f5f82d08877336a5114e538 (diff) | |
download | gitblit-6d29e03364472f8881c120a290546a516f0a8b56.tar.gz gitblit-6d29e03364472f8881c120a290546a516f0a8b56.zip |
Strip file extension from document index
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/gitblit/wicket/pages/DocsPage.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/gitblit/wicket/pages/DocsPage.java b/src/main/java/com/gitblit/wicket/pages/DocsPage.java index 3f9ccdb5..85c19e22 100644 --- a/src/main/java/com/gitblit/wicket/pages/DocsPage.java +++ b/src/main/java/com/gitblit/wicket/pages/DocsPage.java @@ -138,8 +138,8 @@ public class DocsPage extends RepositoryPage { PathModel entry = item.getModelObject();
item.add(WicketUtils.newImage("docIcon", "file_world_16x16.png"));
item.add(new Label("docSize", byteFormat.format(entry.size)));
- item.add(new LinkPanel("docName", "list", entry.name, DocPage.class, WicketUtils
- .newPathParameter(repositoryName, id, entry.path)));
+ item.add(new LinkPanel("docName", "list", StringUtils.stripFileExtension(entry.name),
+ DocPage.class, WicketUtils.newPathParameter(repositoryName, id, entry.path)));
// links
item.add(new BookmarkablePageLink<Void>("view", DocPage.class, WicketUtils
|