| | |
| | | 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); |
| | | |
| | |
| | | item.add(new Label("ticketsLink").setVisible(false)); |
| | | } |
| | | |
| | | Label icon = TicketsUI.getStateIcon("state", ticket.type, ticket.status); |
| | | Label icon = TicketsUI.getStateIcon("state", ticket.type, ticket.status, ticket.severity); |
| | | 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) { |
| | |
| | | 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()); |