Simon Harrer
2013-07-18 fbe265fa787e4be9cb63c6bae2ef30b9400d9afc
src/main/java/com/gitblit/wicket/panels/RepositoryUrlPanel.java
@@ -85,7 +85,7 @@
      // grab primary url from the top of the list
      primaryUrl = repositoryUrls.size() == 0 ? null : repositoryUrls.get(0);
      boolean canClone = ((primaryUrl.permission == null) || primaryUrl.permission.atLeast(AccessPermission.CLONE));
      boolean canClone = primaryUrl != null && ((primaryUrl.permission == null) || primaryUrl.permission.atLeast(AccessPermission.CLONE));
      if (repositoryUrls.size() == 0 || !canClone) {
         // no urls, nothing to show.
@@ -162,7 +162,7 @@
      }
      // access restriction icon and tooltip
      if (isGitblitServingRepositories()) {
      if (GitBlit.isServingRepositories()) {
         switch (repository.accessRestriction) {
         case NONE:
            urlPanel.add(WicketUtils.newClearPixel("accessRestrictionIcon").setVisible(false));
@@ -331,10 +331,6 @@
   
   protected String substitute(String pattern, String repoUrl, String baseUrl) {
      return pattern.replace("${repoUrl}", repoUrl).replace("${baseUrl}", baseUrl);
   }
   protected boolean isGitblitServingRepositories() {
      return GitBlit.getBoolean(Keys.git.enableGitServlet, true) || (GitBlit.getInteger(Keys.git.daemonPort, 0) > 0);
   }
   
   protected Label createPermissionBadge(String wicketId, RepositoryUrl repoUrl) {