diff options
author | James Moger <james.moger@gitblit.com> | 2011-06-01 08:09:46 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2011-06-01 08:09:46 -0400 |
commit | f1720ca884bc3fa9da1288ad955e46f165aa4168 (patch) | |
tree | 3330905810c9df6eb10fb805984e8ccd9730c75d /src/com/gitblit/wicket/pages/CommitDiffPage.java | |
parent | db653ae29c54163c7ca2dd6d2b5063d4623c3a8c (diff) | |
download | gitblit-f1720ca884bc3fa9da1288ad955e46f165aa4168.tar.gz gitblit-f1720ca884bc3fa9da1288ad955e46f165aa4168.zip |
Unit testing. Disable links on first commit. Initial stats page.
Diffstat (limited to 'src/com/gitblit/wicket/pages/CommitDiffPage.java')
-rw-r--r-- | src/com/gitblit/wicket/pages/CommitDiffPage.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/gitblit/wicket/pages/CommitDiffPage.java b/src/com/gitblit/wicket/pages/CommitDiffPage.java index 1f492aca..e7af833d 100644 --- a/src/com/gitblit/wicket/pages/CommitDiffPage.java +++ b/src/com/gitblit/wicket/pages/CommitDiffPage.java @@ -24,6 +24,7 @@ import org.apache.wicket.markup.html.link.BookmarkablePageLink; import org.apache.wicket.markup.repeater.Item;
import org.apache.wicket.markup.repeater.data.DataView;
import org.apache.wicket.markup.repeater.data.ListDataProvider;
+import org.eclipse.jgit.diff.DiffEntry.ChangeType;
import org.eclipse.jgit.lib.Repository;
import org.eclipse.jgit.revwalk.RevCommit;
@@ -99,7 +100,7 @@ public class CommitDiffPage extends RepositoryPage { newPathParameter(entry.path)));
item.add(new BookmarkablePageLink<Void>("blame", BlobPage.class).setEnabled(false));
item.add(new BookmarkablePageLink<Void>("history", HistoryPage.class,
- newPathParameter(entry.path)));
+ newPathParameter(entry.path)).setEnabled(!entry.changeType.equals(ChangeType.ADD) && !entry.changeType.equals(ChangeType.DELETE)));
WicketUtils.setAlternatingBackground(item, counter);
counter++;
|