James Moger
2013-11-14 fab099270c3d53e4d0a3acf0337932f53e5ff14b
src/main/java/com/gitblit/wicket/pages/SummaryPage.java
@@ -138,10 +138,12 @@
      add(new TagsPanel("tagsPanel", repositoryName, r, numberRefs).hideIfEmpty());
      add(new BranchesPanel("branchesPanel", getRepositoryModel(), r, numberRefs, false).hideIfEmpty());
      if (GitBlit.getBoolean(Keys.web.summaryShowReadme, false)) {
         // show a readme on the summary page
      RevCommit head = JGitUtils.getCommit(r, null);
      MarkupProcessor processor = new MarkupProcessor(GitBlit.getSettings());
      MarkupDocument markupDoc = processor.parseReadme(r, repositoryName, getBestCommitId(head));
      if (markupDoc.markup == null) {
         if (markupDoc == null || markupDoc.markup == null) {
         add(new Label("readme").setVisible(false));
      } else {
         Fragment fragment = new Fragment("readme", MarkupSyntax.PLAIN.equals(markupDoc.syntax) ? "plaintextPanel" : "markdownPanel", this);
@@ -151,6 +153,10 @@
         fragment.add(content.setVisible(!StringUtils.isEmpty(markupDoc.html)));
         add(fragment);
      }
      } else {
         // global, no readme on summary page
         add(new Label("readme").setVisible(false));
      }
      // Display an activity line graph
      insertActivityGraph(metrics);