diff options
author | James Moger <james.moger@gitblit.com> | 2014-04-22 16:08:52 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-05-05 11:19:31 -0400 |
commit | 859deba551b5e6850fb6331084493a402cecce45 (patch) | |
tree | cbeba44c0edc97cb05c68c5123a903014f140302 /src/site | |
parent | 856f3fc2a8365c141d1418d3cfff502be233c104 (diff) | |
download | gitblit-859deba551b5e6850fb6331084493a402cecce45.tar.gz gitblit-859deba551b5e6850fb6331084493a402cecce45.zip |
Integrate admin menu into user menu and add user menu extension
Diffstat (limited to 'src/site')
-rw-r--r-- | src/site/plugins_extensions.mkd | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/site/plugins_extensions.mkd b/src/site/plugins_extensions.mkd index 684373e0..18a7e325 100644 --- a/src/site/plugins_extensions.mkd +++ b/src/site/plugins_extensions.mkd @@ -205,23 +205,23 @@ public class MyRequestFilter extends HttpRequestFilter { } ``` -### Admin Menu Items +### User Menu Items *SINCE 1.6.0* -You can provide your own admin menu items by subclassing the *AdminMenuExtension* class. +You can provide your own user menu items by subclassing the *UserMenuExtension* class. ```java import java.util.Arrays; import java.util.List; import ro.fortsoft.pf4j.Extension; -import com.gitblit.extensions.AdminMenuExtension; +import com.gitblit.extensions.UserMenuExtension; import com.gitblit.models.Menu.ExternalLinkMenuItem; import com.gitblit.models.Menu.MenuItem; import com.gitblit.models.UserModel; @Extension -public class MyAdminMenuContributor extends AdminMenuExtension { +public class MyUserMenuContributor extends UserMenuExtension { @Override public List<MenuItem> getMenuItems(UserModel user) { @@ -229,5 +229,3 @@ public class MyAdminMenuContributor extends AdminMenuExtension { } } ``` - - |