James Moger
2014-10-21 997edf95e627b72c4ae2d17de5012dd2eec58f39
src/main/java/com/gitblit/wicket/panels/TicketListPanel.java
@@ -53,7 +53,7 @@
public class TicketListPanel extends BasePanel {
   private static final long serialVersionUID = 1L;
   public TicketListPanel(String wicketId, List<QueryResult> list, final boolean showSwatch, final boolean showRepository) {
      super(wicketId);
@@ -83,7 +83,10 @@
               item.add(new Label("ticketsLink").setVisible(false));
            }
            item.add(TicketsUI.getStateIcon("state", ticket.type, ticket.status));
            Label icon = TicketsUI.getStateIcon("state", ticket.type, ticket.status);
            WicketUtils.addCssClass(icon, TicketsUI.getSeverityClass(ticket.severity));
            item.add(icon);
            item.add(new Label("id", "" + ticket.number));
            UserModel creator = app().users().getUserModel(ticket.createdBy);
            if (creator != null) {
@@ -130,9 +133,10 @@
                     Repository db = app().repositories().getRepository(repository.name);
                     BugtraqProcessor btp  = new BugtraqProcessor(app().settings());
                     String content = btp.processText(db, repository.name, labelItem.getModelObject());
                     String safeContent = app().xssFilter().relaxed(content);
                     db.close();
                     label = new Label("label", content);
                     label = new Label("label", safeContent);
                     label.setEscapeModelStrings(false);
                     tLabel = app().tickets().getLabel(repository, labelItem.getModelObject());
@@ -166,6 +170,11 @@
            // watching indicator
            item.add(new Label("watching").setVisible(ticket.isWatching(GitBlitWebSession.get().getUsername())));
            // priority indicator
            Label priorityIcon = TicketsUI.getPriorityIcon("priority", ticket.priority);
            WicketUtils.addCssClass(priorityIcon, TicketsUI.getPriorityClass(ticket.priority));
            item.add(priorityIcon.setVisible(true));
            // status indicator
            String css = TicketsUI.getLozengeClass(ticket.status, true);
            Label l = new Label("status", ticket.status.toString());