James Moger
2011-04-18 ff369d23bd12f501b59726cbec77512e2f39fd13
src/com/gitblit/wicket/pages/CommitPage.java
@@ -14,6 +14,7 @@
import org.eclipse.jgit.revwalk.RevCommit;
import com.gitblit.utils.JGitUtils;
import com.gitblit.utils.JGitUtils.SearchType;
import com.gitblit.wicket.LinkPanel;
import com.gitblit.wicket.RepositoryPage;
import com.gitblit.wicket.WicketUtils;
@@ -48,10 +49,12 @@
      addRefs(r, c);
      add(new Label("commitAuthor", JGitUtils.getDisplayName(c.getAuthorIdent())));
      // author
      add(createPersonPanel("commitAuthor", c.getAuthorIdent(), SearchType.AUTHOR));
      add(WicketUtils.createTimestampLabel("commitAuthorDate", c.getAuthorIdent().getWhen(), getTimeZone()));
      add(new Label("commitCommitter", JGitUtils.getDisplayName(c.getCommitterIdent())));
      // committer
      add(createPersonPanel("commitCommitter", c.getCommitterIdent(), SearchType.COMMITTER));
      add(WicketUtils.createTimestampLabel("commitCommitterDate", c.getCommitterIdent().getWhen(), getTimeZone()));
      add(new Label("commitId", c.getName()));
@@ -92,7 +95,7 @@
            item.add(new BookmarkablePageLink<Void>("diff", BlobDiffPage.class, newPathParameter(entry.path)));
            item.add(new BookmarkablePageLink<Void>("view", BlobPage.class, newPathParameter(entry.path)));
            item.add(new BookmarkablePageLink<Void>("blame", BlobPage.class).setEnabled(false));
            item.add(new BookmarkablePageLink<Void>("history", BlobPage.class).setEnabled(false));
            item.add(new BookmarkablePageLink<Void>("history", HistoryPage.class, newPathParameter(entry.path)));
            WicketUtils.setAlternatingBackground(item, counter);
            counter++;
@@ -100,7 +103,7 @@
      };
      add(pathsView);
   }
   @Override
   protected String getPageName() {
      return getString("gb.commit");