Package com.gitblit.wicket.PageRegistration

Examples of com.gitblit.wicket.PageRegistration.OtherPageLink


    pages.put("compare", new PageRegistration("gb.compare", ComparePage.class, params, true));

    // conditional links
    // per-repository extra page links
    if (JGitUtils.getPagesBranch(r) != null) {
      OtherPageLink pagesLink = new OtherPageLink("gb.pages", PagesServlet.asLink(
          getRequest().getRelativePathPrefixToContextRoot(), repositoryName, null), true);
      pages.put("pages", pagesLink);
    }

    // Conditionally add edit link
View Full Code Here


        if (entry.hiddenPhone) {
          WicketUtils.setCssClass(item, "hidden-phone");
        }
        if (entry instanceof OtherPageLink) {
          // other link
          OtherPageLink link = (OtherPageLink) entry;
          Component c = new LinkPanel("link", null, getString(entry.translationKey), link.url);
          c.setRenderBodyOnly(true);
          item.add(c);
        } else if (entry instanceof DropDownMenuRegistration) {
          // drop down menu
View Full Code Here

TOP

Related Classes of com.gitblit.wicket.PageRegistration.OtherPageLink

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.