James Moger
2011-07-18 7e5ee5a454ec396b5dc2f00e89adeca84d6ef683
src/com/gitblit/wicket/pages/CommitPage.java
@@ -38,7 +38,6 @@
import com.gitblit.models.PathModel.PathChangeModel;
import com.gitblit.utils.JGitUtils;
import com.gitblit.utils.JGitUtils.SearchType;
import com.gitblit.utils.StringUtils;
import com.gitblit.wicket.WicketUtils;
import com.gitblit.wicket.panels.CommitHeaderPanel;
import com.gitblit.wicket.panels.CommitLegendPanel;
@@ -65,8 +64,8 @@
         add(new Label("parentLink", "none"));
         add(new Label("commitdiffLink", getString("gb.commitdiff")));
      } else {
         add(new LinkPanel("parentLink", null, parents.get(0).substring(0, 8), CommitPage.class,
               newCommitParameter(parents.get(0))));
         add(new LinkPanel("parentLink", null, getShortObjectId(parents.get(0)),
               CommitPage.class, newCommitParameter(parents.get(0))));
         add(new LinkPanel("commitdiffLink", null, new StringResourceModel("gb.commitdiff",
               this, null), CommitDiffPage.class, WicketUtils.newObjectParameter(
               repositoryName, objectId)));
@@ -129,8 +128,8 @@
                  SearchType.AUTHOR));
            item.add(WicketUtils.createTimestampLabel("authorDate", entry.notesRef
                  .getAuthorIdent().getWhen(), getTimeZone()));
            item.add(new Label("noteContent", StringUtils.breakLinesForHtml(entry.content))
                  .setEscapeModelStrings(false));
            item.add(new Label("noteContent", GitBlit.self().processCommitMessage(
                  repositoryName, entry.content)).setEscapeModelStrings(false));
         }
      };
      add(notesView.setVisible(notes.size() > 0));