Package com.gitblit.wicket.panels

Examples of com.gitblit.wicket.panels.RepositoryUrlPanel


    List<RepositoryUrl> repositoryUrls = app().gitblit().getRepositoryUrls(req, user, repository);
    RepositoryUrl primaryUrl = repositoryUrls.size() == 0 ? null : repositoryUrls.get(0);
    String url = primaryUrl != null ? primaryUrl.url : "";

    add(new Label("repository", repositoryName));
    add(new RepositoryUrlPanel("pushurl", false, user, repository));
    add(new Label("cloneSyntax", MessageFormat.format("git clone {0}", url)));
    add(new Label("remoteSyntax", MessageFormat.format("git remote add origin {0}\ngit push -u origin --all\ngit push -u origin --tags", url)));
    add(new Label("upstreamSyntax", "git remote add upstream <upstream repository url>"));
  }
View Full Code Here


              metricsTotal.tag, getTimeUtils().duration(metricsTotal.duration))));
    }
    add(new BookmarkablePageLink<Void>("metrics", MetricsPage.class,
        WicketUtils.newRepositoryParameter(repositoryName)));

    add(new RepositoryUrlPanel("repositoryUrlPanel", false, user, model));

    add(new LogPanel("commitsPanel", repositoryName, getRepositoryModel().HEAD, r, numberCommits, 0, getRepositoryModel().showRemoteBranches));
    add(new TagsPanel("tagsPanel", repositoryName, r, numberRefs).hideIfEmpty());
    add(new BranchesPanel("branchesPanel", getRepositoryModel(), r, numberRefs, false).hideIfEmpty());
View Full Code Here

              metricsTotal.tag, getTimeUtils().duration(metricsTotal.duration))));
    }
    add(new BookmarkablePageLink<Void>("metrics", MetricsPage.class,
        WicketUtils.newRepositoryParameter(repositoryName)));

    add(new RepositoryUrlPanel("repositoryUrlPanel", false, user, model));

    add(new LogPanel("commitsPanel", repositoryName, getRepositoryModel().HEAD, r, numberCommits, 0, getRepositoryModel().showRemoteBranches));
    add(new TagsPanel("tagsPanel", repositoryName, r, numberRefs).hideIfEmpty());
    add(new BranchesPanel("branchesPanel", getRepositoryModel(), r, numberRefs, false).hideIfEmpty());
View Full Code Here

    String createSyntax = readResource("create_git.md").replace("${primaryUrl}", url);
    String existingSyntax = readResource("existing_git.md").replace("${primaryUrl}", url);

    add(new Label("repository", repositoryName));
    add(new RepositoryUrlPanel("pushurl", false, user, repository));
    add(new Label("createSyntax", createSyntax));
    add(new Label("existingSyntax", existingSyntax));
  }
View Full Code Here

              metricsTotal.tag, getTimeUtils().duration(metricsTotal.duration))));
    }
    add(new BookmarkablePageLink<Void>("metrics", MetricsPage.class,
        WicketUtils.newRepositoryParameter(repositoryName)));

    add(new RepositoryUrlPanel("repositoryUrlPanel", false, user, model));

    int reflogCount = app().settings().getInteger(Keys.web.overviewReflogCount, 5);
    ReflogPanel reflog = new ReflogPanel("reflogPanel", getRepositoryModel(), r, reflogCount, 0);
    add(reflog);
    add(new TagsPanel("tagsPanel", repositoryName, r, numberRefs).hideIfEmpty());
View Full Code Here

TOP

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

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.