commit 36a47881e94108d2cec2b7da63013eb2e1552f43 Author: Mauro Talevi <mauro.tal...@aquilonia.org> AuthorDate: Sat, 14 Dec 2013 18:53:27 +0000 Commit: Mauro Talevi <mauro.tal...@aquilonia.org> CommitDate: Sat, 14 Dec 2013 18:53:27 +0000
JBEHAVE-968: Added link to edit wiki page. diff --git a/web-runner/src/main/java/org/jbehave/web/runner/wicket/WebRunnerApplication.java b/web-runner/src/main/java/org/jbehave/web/runner/wicket/WebRunnerApplication.java index d1f3b03..fe9e26a 100644 --- a/web-runner/src/main/java/org/jbehave/web/runner/wicket/WebRunnerApplication.java +++ b/web-runner/src/main/java/org/jbehave/web/runner/wicket/WebRunnerApplication.java @@ -76,7 +76,7 @@ public class WebRunnerApplication extends WebApplication { protected WikiConfiguration wikiConfiguration() { - return new WikiConfiguration("http://demo.redmine.org/projects/jbehave-rest/wiki/"); + return new WikiConfiguration("http://demo.redmine.org/projects/jbehave-rest/wiki"); } protected ResourceIndexer resourceIndexer() { diff --git a/web-runner/src/main/java/org/jbehave/web/runner/wicket/pages/IndexWiki.html b/web-runner/src/main/java/org/jbehave/web/runner/wicket/pages/IndexWiki.html index 818dff6..8374586 100644 --- a/web-runner/src/main/java/org/jbehave/web/runner/wicket/pages/IndexWiki.html +++ b/web-runner/src/main/java/org/jbehave/web/runner/wicket/pages/IndexWiki.html @@ -19,7 +19,7 @@ <legend>Resources</legend> <span wicket:id="resourcesList"> <p> - <a wicket:id="run_resource">Run</a> <a wicket:id="view_resource">View</a> <span wicket:id="name">Name</span> + <a wicket:id="run_resource">Run</a> <a wicket:id="view_resource">View</a> <a wicket:id="edit_resource">Edit</a> <span wicket:id="name">Name</span> </p> </span> </fieldset> diff --git a/web-runner/src/main/java/org/jbehave/web/runner/wicket/pages/IndexWiki.java b/web-runner/src/main/java/org/jbehave/web/runner/wicket/pages/IndexWiki.java index 151f173..f3f963a 100644 --- a/web-runner/src/main/java/org/jbehave/web/runner/wicket/pages/IndexWiki.java +++ b/web-runner/src/main/java/org/jbehave/web/runner/wicket/pages/IndexWiki.java @@ -6,6 +6,7 @@ import java.util.Map; import org.apache.wicket.markup.html.basic.Label; import org.apache.wicket.markup.html.form.Button; import org.apache.wicket.markup.html.form.Form; +import org.apache.wicket.markup.html.link.ExternalLink; import org.apache.wicket.markup.html.link.Link; import org.apache.wicket.markup.html.list.ListItem; import org.apache.wicket.markup.html.list.PropertyListView; @@ -47,6 +48,7 @@ public class IndexWiki extends Template { @Override public void populateItem(final ListItem<SerializableResource> item) { final SerializableResource resource = (SerializableResource) item.getModelObject(); + item.add(new ExternalLink("edit_resource", resource.getUri())); item.add(new Link<SerializableResource>("view_resource") { @Override public void onClick() {