\r
import org.apache.wicket.Component;\r
import org.apache.wicket.Localizer;\r
+import org.apache.wicket.Page;\r
import org.apache.wicket.PageParameters;\r
import org.apache.wicket.markup.html.basic.Label;\r
import org.apache.wicket.markup.html.link.BookmarkablePageLink;\r
public void onClick() {\r
if (GitBlit.self().deleteRepositoryModel(entry)) {\r
info(MessageFormat.format(getString("gb.repositoryDeleted"), entry));\r
- // TODO dp.remove(entry);\r
+ // redirect to the owning page\r
+ if (entry.isPersonalRepository()) {\r
+ setResponsePage(getPage().getClass(), WicketUtils.newUsernameParameter(entry.projectPath.substring(1)));\r
+ } else {\r
+ setResponsePage(getPage().getClass(), WicketUtils.newProjectParameter(entry.projectPath));\r
+ }\r
} else {\r
error(MessageFormat.format(getString("gb.repositoryDeleteFailed"), entry));\r
}\r