summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/wicket/pages/EditRepositoryPage.java
diff options
context:
space:
mode:
authorBret K. Ikehara <bret.k.ikehara@gmail.com>2013-08-04 13:43:25 -1000
committerJames Moger <james.moger@gitblit.com>2013-09-18 11:29:45 -0400
commitcd9461c0c05958444d1313b794be57df39d98956 (patch)
treeaf4226aeb4ea724d5380e0432935fa826cc3eadc /src/main/java/com/gitblit/wicket/pages/EditRepositoryPage.java
parenta04808340abb7056fefb45645d9f5653813338fc (diff)
downloadgitblit-cd9461c0c05958444d1313b794be57df39d98956.tar.gz
gitblit-cd9461c0c05958444d1313b794be57df39d98956.zip
Add support for rendering Markdown commit messages (issue-203)
Diffstat (limited to 'src/main/java/com/gitblit/wicket/pages/EditRepositoryPage.java')
-rw-r--r--src/main/java/com/gitblit/wicket/pages/EditRepositoryPage.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/com/gitblit/wicket/pages/EditRepositoryPage.java b/src/main/java/com/gitblit/wicket/pages/EditRepositoryPage.java
index 4c471a1e..a25797ff 100644
--- a/src/main/java/com/gitblit/wicket/pages/EditRepositoryPage.java
+++ b/src/main/java/com/gitblit/wicket/pages/EditRepositoryPage.java
@@ -52,6 +52,7 @@ import org.apache.wicket.model.util.ListModel;
import com.gitblit.Constants;
import com.gitblit.Constants.AccessRestrictionType;
import com.gitblit.Constants.AuthorizationControl;
+import com.gitblit.Constants.CommitMessageRenderer;
import com.gitblit.Constants.FederationStrategy;
import com.gitblit.Constants.RegistrantType;
import com.gitblit.GitBlit;
@@ -552,6 +553,10 @@ public class EditRepositoryPage extends RootSubPage {
}
});
+ List<CommitMessageRenderer> renderers = Arrays.asList(CommitMessageRenderer.values());
+ DropDownChoice<CommitMessageRenderer> messageRendererChoice = new DropDownChoice<CommitMessageRenderer>("commitMessageRenderer", renderers);
+ form.add(messageRendererChoice);
+
form.add(new Button("save"));
Button cancel = new Button("cancel") {
private static final long serialVersionUID = 1L;
@@ -721,5 +726,4 @@ public class EditRepositoryPage extends RootSubPage {
return Integer.toString(index);
}
}
-
}