James Moger
2011-04-18 9bc17d16ea48a7978b198126d346828b1d24fe4e
src/com/gitblit/wicket/pages/BlobPage.java
@@ -11,8 +11,8 @@
import org.eclipse.jgit.lib.Repository;
import org.eclipse.jgit.revwalk.RevCommit;
import com.gitblit.GitBlit;
import com.gitblit.Keys;
import com.gitblit.StoredSettings;
import com.gitblit.utils.JGitUtils;
import com.gitblit.wicket.LinkPanel;
import com.gitblit.wicket.RepositoryPage;
@@ -31,7 +31,7 @@
      // blob page links
      add(new Label("blameLink", getString("gb.blame")));
      add(new Label("historyLink", getString("gb.history")));
      add(new BookmarkablePageLink<Void>("historyLink", HistoryPage.class, WicketUtils.newPathParameter(repositoryName, objectId, blobPath)));
      add(new BookmarkablePageLink<Void>("rawLink", RawPage.class, WicketUtils.newPathParameter(repositoryName, objectId, blobPath)));
      add(new BookmarkablePageLink<Void>("headLink", BlobPage.class, WicketUtils.newPathParameter(repositoryName, Constants.HEAD, blobPath)));
@@ -45,13 +45,13 @@
      // Map the extensions to types
      Map<String, Integer> map = new HashMap<String, Integer>();
      for (String ext : StoredSettings.getStrings(Keys.web_prettyPrintExtensions)) {
      for (String ext : GitBlit.self().settings().getStrings(Keys.web.prettyPrintExtensions)) {
         map.put(ext.toLowerCase(), 1);
      }
      for (String ext : StoredSettings.getStrings(Keys.web_imageExtensions)) {
      for (String ext : GitBlit.self().settings().getStrings(Keys.web.imageExtensions)) {
         map.put(ext.toLowerCase(), 2);
      }
      for (String ext : StoredSettings.getStrings(Keys.web_binaryExtensions)) {
      for (String ext : GitBlit.self().settings().getStrings(Keys.web.binaryExtensions)) {
         map.put(ext.toLowerCase(), 3);
      }