James Moger
2011-04-11 50984c55466228ccff0630e49acb4c5e271d446b
src/com/gitblit/wicket/pages/BlobPage.java
@@ -25,16 +25,16 @@
      final String blobPath = params.getString("f", null);
      Repository r = getRepository();
      RevCommit commit = JGitUtils.getCommit(r, commitId);
      RevCommit commit = JGitUtils.getCommit(r, objectId);
      // blob page links
      add(new Label("historyLink", "history"));
      add(new Label("rawLink", "raw"));
      add(new Label("historyLink", getString("gb.history")));
      add(new Label("rawLink", getString("gb.raw")));
      add(new Label("headLink", "HEAD"));
      add(new LinkPanel("shortlog", "title", commit.getShortMessage(), CommitPage.class, newCommitParameter()));
      add(new PathBreadcrumbsPanel("breadcrumbs", repositoryName, blobPath, commitId));
      add(new PathBreadcrumbsPanel("breadcrumbs", repositoryName, blobPath, objectId));
      String extension = null;
      if (blobPath.lastIndexOf('.') > -1) {
         extension = blobPath.substring(blobPath.lastIndexOf('.') + 1);
@@ -84,13 +84,10 @@
         WicketUtils.setCssClass(blobLabel, "plainprint");
         add(blobLabel);
      }
      // footer
      addFooter();
   }
   
   @Override
   protected String getPageName() {
      return "view";
      return getString("gb.view");
   }
}