Package com.gitblit.wicket

Examples of com.gitblit.wicket.PageRegistration$DropDownMenuItem


    Repository r = getRepository();
    RepositoryModel model = getRepositoryModel();

    // standard links
    if (RefLogUtils.getRefLogBranch(r) == null) {
      pages.put("summary", new PageRegistration("gb.summary", SummaryPage.class, params));
    } else {
      pages.put("summary", new PageRegistration("gb.summary", SummaryPage.class, params));
//      pages.put("overview", new PageRegistration("gb.overview", OverviewPage.class, params));
      pages.put("reflog", new PageRegistration("gb.reflog", ReflogPage.class, params));
    }
    pages.put("commits", new PageRegistration("gb.commits", LogPage.class, params));
    pages.put("tree", new PageRegistration("gb.tree", TreePage.class, params));
    if (app().tickets().isReady() && (app().tickets().isAcceptingNewTickets(getRepositoryModel()) || app().tickets().hasTickets(getRepositoryModel()))) {
      PageParameters tParams = new PageParameters(params);
      for (String state : TicketsPage.openStatii) {
        tParams.add(Lucene.status.name(), state);
      }
      pages.put("tickets", new PageRegistration("gb.tickets", TicketsPage.class, tParams));
    }
    pages.put("docs", new PageRegistration("gb.docs", DocsPage.class, params, true));
    if (app().settings().getBoolean(Keys.web.allowForking, true)) {
      pages.put("forks", new PageRegistration("gb.forks", ForksPage.class, params, true));
    }
    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(
View Full Code Here


    DataView<PageRegistration> refsView = new DataView<PageRegistration>("navLink", refsDp) {
      private static final long serialVersionUID = 1L;

      @Override
      public void populateItem(final Item<PageRegistration> item) {
        PageRegistration entry = item.getModelObject();
        if (entry.hiddenPhone) {
          WicketUtils.setCssClass(item, "hidden-phone");
        }
        if (entry instanceof OtherPageLink) {
          // other link
View Full Code Here

        && app().settings().getBoolean(Keys.web.showFederationRegistrations, false);

    // navigation links
    List<PageRegistration> pages = new ArrayList<PageRegistration>();
    if (!authenticateView || (authenticateView && GitBlitWebSession.get().isLoggedIn())) {
      pages.add(new PageRegistration(GitBlitWebSession.get().isLoggedIn() ? "gb.myDashboard" : "gb.dashboard", MyDashboardPage.class,
          getRootPageParameters()));
      pages.add(new PageRegistration("gb.repositories", RepositoriesPage.class,
          getRootPageParameters()));
      pages.add(new PageRegistration("gb.activity", ActivityPage.class, getRootPageParameters()));
      if (app().settings().getBoolean(Keys.web.allowLuceneIndexing, true)) {
        pages.add(new PageRegistration("gb.search", LuceneSearchPage.class));
      }
      if (showAdmin) {
        pages.add(new PageRegistration("gb.users", UsersPage.class));
      }
      if (showAdmin || showRegistrations) {
        pages.add(new PageRegistration("gb.federation", FederationPage.class));
      }

      if (!authenticateView || (authenticateView && GitBlitWebSession.get().isLoggedIn())) {
        addDropDownMenus(pages);
      }
View Full Code Here

TOP

Related Classes of com.gitblit.wicket.PageRegistration$DropDownMenuItem

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.