diff options
author | James Moger <james.moger@gitblit.com> | 2011-05-26 17:11:38 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2011-05-26 17:11:38 -0400 |
commit | 2a7306a1d92522569a8bb6e5a7c0bcdd5cf4cfaa (patch) | |
tree | b9bc648068b0af5cbbbc3e2e0ad707e0c59d4db2 /src/com/gitblit/wicket/pages/TicketsPage.java | |
parent | f13c4c5a35a18d8478b276cc44570bbc3398aa73 (diff) | |
download | gitblit-2a7306a1d92522569a8bb6e5a7c0bcdd5cf4cfaa.tar.gz gitblit-2a7306a1d92522569a8bb6e5a7c0bcdd5cf4cfaa.zip |
Findbugs. CodePro Audit. Checkstyle. Unit test refactoring.
Diffstat (limited to 'src/com/gitblit/wicket/pages/TicketsPage.java')
-rw-r--r-- | src/com/gitblit/wicket/pages/TicketsPage.java | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/com/gitblit/wicket/pages/TicketsPage.java b/src/com/gitblit/wicket/pages/TicketsPage.java index 74607e39..2832385c 100644 --- a/src/com/gitblit/wicket/pages/TicketsPage.java +++ b/src/com/gitblit/wicket/pages/TicketsPage.java @@ -39,21 +39,25 @@ public class TicketsPage extends RepositoryPage { List<TicketModel> tickets = JGitUtils.getTickets(getRepository());
// header
- add(new LinkPanel("header", "title", repositoryName, SummaryPage.class, newRepositoryParameter()));
+ add(new LinkPanel("header", "title", repositoryName, SummaryPage.class,
+ newRepositoryParameter()));
ListDataProvider<TicketModel> ticketsDp = new ListDataProvider<TicketModel>(tickets);
DataView<TicketModel> ticketsView = new DataView<TicketModel>("ticket", ticketsDp) {
private static final long serialVersionUID = 1L;
- int counter = 0;
+ int counter;
public void populateItem(final Item<TicketModel> item) {
final TicketModel entry = item.getModelObject();
Label stateLabel = new Label("ticketState", entry.state);
WicketUtils.setTicketCssClass(stateLabel, entry.state);
item.add(stateLabel);
- item.add(WicketUtils.createDateLabel("ticketDate", entry.date, GitBlitWebSession.get().getTimezone()));
- item.add(new Label("ticketHandler", StringUtils.trimString(entry.handler.toLowerCase(), 30)));
- item.add(new LinkPanel("ticketTitle", "list subject", StringUtils.trimString(entry.title, 80), TicketPage.class, newPathParameter(entry.name)));
+ item.add(WicketUtils.createDateLabel("ticketDate", entry.date, GitBlitWebSession
+ .get().getTimezone()));
+ item.add(new Label("ticketHandler", StringUtils.trimString(
+ entry.handler.toLowerCase(), 30)));
+ item.add(new LinkPanel("ticketTitle", "list subject", StringUtils.trimString(
+ entry.title, 80), TicketPage.class, newPathParameter(entry.name)));
WicketUtils.setAlternatingBackground(item, counter);
counter++;
|