Hybris95
2014-04-22 3f5b8f5d9203aa7ffb7fbe9cdbaf9dba3da6cae6
src/main/java/com/gitblit/wicket/pages/RepositoryPage.java
@@ -29,6 +29,7 @@
import org.apache.wicket.Component;
import org.apache.wicket.PageParameters;
import org.apache.wicket.RestartResponseException;
import org.apache.wicket.behavior.SimpleAttributeModifier;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.form.DropDownChoice;
@@ -58,9 +59,9 @@
import com.gitblit.servlet.SyndicationServlet;
import com.gitblit.tickets.TicketIndexer.Lucene;
import com.gitblit.utils.ArrayUtils;
import com.gitblit.utils.BugtraqProcessor;
import com.gitblit.utils.DeepCopier;
import com.gitblit.utils.JGitUtils;
import com.gitblit.utils.MessageProcessor;
import com.gitblit.utils.RefLogUtils;
import com.gitblit.utils.StringUtils;
import com.gitblit.wicket.CacheControl;
@@ -109,7 +110,7 @@
      }
      if (!getRepositoryModel().hasCommits) {
         setResponsePage(EmptyRepositoryPage.class, params);
         throw new RestartResponseException(EmptyRepositoryPage.class, params);
      }
      if (getRepositoryModel().isCollectingGarbage) {
@@ -177,8 +178,8 @@
      return getClass();
   }
   protected MessageProcessor messageProcessor() {
      return new MessageProcessor(app().settings());
   protected BugtraqProcessor bugtraqProcessor() {
      return new BugtraqProcessor(app().settings());
   }
   private Map<String, PageRegistration> registerPages() {
@@ -325,7 +326,7 @@
      }
      // fork controls
      if (!allowForkControls() || user == null || !user.isAuthenticated) {
      if (!allowForkControls() || !user.isAuthenticated) {
         // must be logged-in to fork, hide all fork controls
         add(new ExternalLink("forkLink", "").setVisible(false));
         add(new ExternalLink("myForkLink", "").setVisible(false));
@@ -531,7 +532,7 @@
   protected void addFullText(String wicketId, String text) {
      RepositoryModel model = getRepositoryModel();
      String content = messageProcessor().processCommitMessage(r, model, text);
      String content = bugtraqProcessor().processCommitMessage(r, model, text);
      String html;
      switch (model.commitMessageRenderer) {
      case MARKDOWN: