| | |
| | | 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) { |
| | |
| | | // 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()); |