From 15e5605a902a9292b3d9008375347d076514711b Mon Sep 17 00:00:00 2001 From: James Moger Date: Fri, 28 Feb 2014 10:54:43 -0500 Subject: [PATCH] Fix regression in blame page due to issue-2, pr-125 --- src/main/java/com/gitblit/wicket/pages/BlamePage.html | 2 +- src/main/java/com/gitblit/wicket/pages/BlamePage.java | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gitblit/wicket/pages/BlamePage.html b/src/main/java/com/gitblit/wicket/pages/BlamePage.html index ffd2a03b..1da9671b 100644 --- a/src/main/java/com/gitblit/wicket/pages/BlamePage.html +++ b/src/main/java/com/gitblit/wicket/pages/BlamePage.html @@ -30,7 +30,7 @@ - + diff --git a/src/main/java/com/gitblit/wicket/pages/BlamePage.java b/src/main/java/com/gitblit/wicket/pages/BlamePage.java index ef023b75..ae85c433 100644 --- a/src/main/java/com/gitblit/wicket/pages/BlamePage.java +++ b/src/main/java/com/gitblit/wicket/pages/BlamePage.java @@ -147,6 +147,9 @@ public class BlamePage extends RepositoryPage { } if (pathModel == null) { + final String notFound = MessageFormat.format("Blame page failed to find {0} in {1} @ {2}", + blobPath, repositoryName, objectId); + logger.error(notFound); add(new Label("annotation").setVisible(false)); add(new Label("missingBlob", missingBlob(blobPath, commit)).setEscapeModelStrings(false)); return; @@ -157,7 +160,7 @@ public class BlamePage extends RepositoryPage { List lines = DiffUtils.blame(getRepository(), blobPath, objectId); final Map colorMap = initializeColors(activeBlameType, lines); ListDataProvider blameDp = new ListDataProvider(lines); - DataView blameView = new DataView("blameView", blameDp) { + DataView blameView = new DataView("annotation", blameDp) { private static final long serialVersionUID = 1L; private String lastCommitId = ""; private boolean showInitials = true; -- 2.39.5