From 859deba551b5e6850fb6331084493a402cecce45 Mon Sep 17 00:00:00 2001 From: James Moger Date: Tue, 22 Apr 2014 16:08:52 -0400 Subject: Integrate admin menu into user menu and add user menu extension --- .../java/com/gitblit/wicket/pages/TeamsPage.java | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/main/java/com/gitblit/wicket/pages/TeamsPage.java (limited to 'src/main/java/com/gitblit/wicket/pages/TeamsPage.java') diff --git a/src/main/java/com/gitblit/wicket/pages/TeamsPage.java b/src/main/java/com/gitblit/wicket/pages/TeamsPage.java new file mode 100644 index 00000000..e0e7bf47 --- /dev/null +++ b/src/main/java/com/gitblit/wicket/pages/TeamsPage.java @@ -0,0 +1,30 @@ +/* + * Copyright 2011 gitblit.com. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.gitblit.wicket.pages; + +import com.gitblit.wicket.RequiresAdminRole; +import com.gitblit.wicket.panels.TeamsPanel; + +@RequiresAdminRole +public class TeamsPage extends RootPage { + + public TeamsPage() { + super(); + setupPage("", ""); + + add(new TeamsPanel("teamsPanel", showAdmin).setVisible(showAdmin)); + } +} -- cgit v1.2.3