Package com.gitblit.wicket.panels

Examples of com.gitblit.wicket.panels.LinkPanel


          boolean hasSubmodule = false;
          String submodulePath = null;
          if (entry.isTree()) {
            // tree
            item.add(new LinkPanel("pathName", null, entry.path, TreePage.class,
                WicketUtils
                .newPathParameter(repositoryName, endId, entry.path)));
          } else if (entry.isSubmodule()) {
            // submodule
            String submoduleId = entry.objectId;
            SubmoduleModel submodule = getSubmodule(entry.path);
            submodulePath = submodule.gitblitPath;
            hasSubmodule = submodule.hasSubmodule;

            // add relative link
            item.add(new LinkPanel("pathName", "list", entry.path + " @ " + getShortObjectId(submoduleId), "#" + entry.path));
          } else {
            // add relative link
            item.add(new LinkPanel("pathName", "list", entry.path, "#" + entry.path));
          }

          // quick links
          if (entry.isSubmodule()) {
            // submodule
View Full Code Here


            // unknown commit
            item.add(new Label("commit", "<?>"));
            showInitials = false;
          } else {
            // show the link for first line
            LinkPanel commitLink = new LinkPanel("commit", null,
                getShortObjectId(entry.commitId), CommitPage.class,
                newCommitParameter(entry.commitId));
            WicketUtils.setHtmlTooltip(commitLink,
                MessageFormat.format("{0}, {1}", entry.author, df.format(entry.when)));
            item.add(commitLink);
View Full Code Here

TOP

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

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.