Package com.gitblit.wicket.panels

Examples of com.gitblit.wicket.panels.PathBreadcrumbsPanel


    add(new BookmarkablePageLink<Void>("historyLink", HistoryPage.class,
        WicketUtils.newPathParameter(repositoryName, objectId, blobPath)));

    add(new CommitHeaderPanel("commitHeader", repositoryName, commit));

    add(new PathBreadcrumbsPanel("breadcrumbs", repositoryName, blobPath, objectId));

    add(new Label("diffText", diff).setEscapeModelStrings(false));
  }
View Full Code Here


        .getRelativePathPrefixToContextRoot(), repositoryName, objectId, path));

    add(new CommitHeaderPanel("commitHeader", repositoryName, commit));

    // breadcrumbs
    add(new PathBreadcrumbsPanel("breadcrumbs", repositoryName, path, objectId));
    if (path != null && path.trim().length() > 0) {
      // add .. parent path entry
      String parentPath = null;
      if (path.lastIndexOf('/') > -1) {
        parentPath = path.substring(0, path.lastIndexOf('/'));
View Full Code Here

      add(blameByPageLink);
    }

    add(new CommitHeaderPanel("commitHeader", repositoryName, commit));

    add(new PathBreadcrumbsPanel("breadcrumbs", repositoryName, blobPath, objectId));

    String format = app().settings().getString(Keys.web.datetimestampLongFormat,
        "EEEE, MMMM d, yyyy HH:mm Z");
    final DateFormat df = new SimpleDateFormat(format);
    df.setTimeZone(getTimeZone());
View Full Code Here

          .setEnabled(false));
      add(new BookmarkablePageLink<Void>("historyLink", HistoryPage.class).setEnabled(false));
      add(new BookmarkablePageLink<Void>("rawLink", RawPage.class,
          WicketUtils.newPathParameter(repositoryName, objectId, blobPath)));
      add(new CommitHeaderPanel("commitHeader", objectId));
      add(new PathBreadcrumbsPanel("breadcrumbs", repositoryName, blobPath, objectId));
      Component c = new Label("blobText", JGitUtils.getStringContent(r, objectId, encodings));
      WicketUtils.setCssClass(c, "plainprint");
      add(c);
    } else {
      // standard blob view
      String extension = null;
      if (blobPath.lastIndexOf('.') > -1) {
        extension = blobPath.substring(blobPath.lastIndexOf('.') + 1).toLowerCase();
      }

      // see if we should redirect to the doc page
      MarkupProcessor processor = new MarkupProcessor(app().settings());
      for (String ext : processor.getMarkupExtensions()) {
        if (ext.equals(extension)) {
          setResponsePage(DocPage.class, params);
          return;
        }
      }

      RevCommit commit = getCommit();

      // blob page links
      add(new BookmarkablePageLink<Void>("blameLink", BlamePage.class,
          WicketUtils.newPathParameter(repositoryName, objectId, blobPath)));
      add(new BookmarkablePageLink<Void>("historyLink", HistoryPage.class,
          WicketUtils.newPathParameter(repositoryName, objectId, blobPath)));
      add(new BookmarkablePageLink<Void>("rawLink", RawPage.class,
          WicketUtils.newPathParameter(repositoryName, objectId, blobPath)));

      add(new CommitHeaderPanel("commitHeader", repositoryName, commit));

      add(new PathBreadcrumbsPanel("breadcrumbs", repositoryName, blobPath, objectId));

      // Map the extensions to types
      Map<String, Integer> map = new HashMap<String, Integer>();
      for (String ext : app().settings().getStrings(Keys.web.prettyPrintExtensions)) {
        map.put(ext.toLowerCase(), 1);
View Full Code Here

          .setEnabled(false));
      add(new BookmarkablePageLink<Void>("historyLink", HistoryPage.class).setEnabled(false));
      String rawUrl = RawServlet.asLink(getContextUrl(), repositoryName, objectId, blobPath);
      add(new ExternalLink("rawLink",  rawUrl));
      add(new CommitHeaderPanel("commitHeader", objectId));
      add(new PathBreadcrumbsPanel("breadcrumbs", repositoryName, blobPath, objectId));
      Component c = new Label("blobText", JGitUtils.getStringContent(r, objectId, encodings));
      WicketUtils.setCssClass(c, "plainprint");
      add(c);
    } else {
      // standard blob view
      String extension = null;
      if (blobPath.lastIndexOf('.') > -1) {
        extension = blobPath.substring(blobPath.lastIndexOf('.') + 1).toLowerCase();
      }

      // see if we should redirect to the doc page
      MarkupProcessor processor = new MarkupProcessor(app().settings(), app().xssFilter());
      for (String ext : processor.getMarkupExtensions()) {
        if (ext.equals(extension)) {
          setResponsePage(DocPage.class, params);
          return;
        }
      }

      RevCommit commit = getCommit();

      // blob page links
      add(new BookmarkablePageLink<Void>("blameLink", BlamePage.class,
          WicketUtils.newPathParameter(repositoryName, objectId, blobPath)));
      add(new BookmarkablePageLink<Void>("historyLink", HistoryPage.class,
          WicketUtils.newPathParameter(repositoryName, objectId, blobPath)));
      String rawUrl = RawServlet.asLink(getContextUrl(), repositoryName, objectId, blobPath);
      add(new ExternalLink("rawLink", rawUrl));

      add(new CommitHeaderPanel("commitHeader", repositoryName, commit));

      add(new PathBreadcrumbsPanel("breadcrumbs", repositoryName, blobPath, objectId));

      // Map the extensions to types
      Map<String, Integer> map = new HashMap<String, Integer>();
      for (String ext : app().settings().getStrings(Keys.web.prettyPrintExtensions)) {
        map.put(ext.toLowerCase(), 1);
View Full Code Here

    add(new BookmarkablePageLink<Void>("historyLink", HistoryPage.class,
        WicketUtils.newPathParameter(repositoryName, objectId, blobPath)));

    add(new CommitHeaderPanel("commitHeader", repositoryName, commit));

    add(new PathBreadcrumbsPanel("breadcrumbs", repositoryName, blobPath, objectId));

    add(new Label("diffText", diff).setEscapeModelStrings(false));
  }
View Full Code Here

        .getRelativePathPrefixToContextRoot(), repositoryName, objectId, path));

    add(new CommitHeaderPanel("commitHeader", repositoryName, commit));

    // breadcrumbs
    add(new PathBreadcrumbsPanel("breadcrumbs", repositoryName, path, objectId));
    if (path != null && path.trim().length() > 0) {
      // add .. parent path entry
      String parentPath = null;
      if (path.lastIndexOf('/') > -1) {
        parentPath = path.substring(0, path.lastIndexOf('/'));
View Full Code Here

      add(blameByPageLink);
    }

    add(new CommitHeaderPanel("commitHeader", repositoryName, commit));

    add(new PathBreadcrumbsPanel("breadcrumbs", repositoryName, blobPath, objectId));

    String format = app().settings().getString(Keys.web.datetimestampLongFormat,
        "EEEE, MMMM d, yyyy HH:mm Z");
    final DateFormat df = new SimpleDateFormat(format);
    df.setTimeZone(getTimeZone());
View Full Code Here

TOP

Related Classes of com.gitblit.wicket.panels.PathBreadcrumbsPanel

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.