<body>
<wicket:extend>
- <table>
- <span>Responsible Tickets</span>
- <tbody>
- <tr wicket:id="responsibleTickets">
- <td><span wicket:id="ticketName"></span></td>
- <td><span wicket:id="ticketDescription"></span></td>
- </tr>
- </tbody>
- </table>
-
- <table>
- <span>Author Tickets</span>
- <tbody>
- <tr wicket:id="authorTickets">
- <td><span wicket:id="ticketName"></span></td>
- <td><span wicket:id="ticketDescription"></span></td>
- </tr>
- </tbody>
- </table>
-
- <table>
- <span>Voted Tickets</span>
- <tbody>
- <tr wicket:id="votedTickets">
- <td><span wicket:id="ticketName"></span></td>
- <td><span wicket:id="ticketDescription"></span></td>
- </tr>
- </tbody>
- </table>
-
- <table>
- <span>Watched Tickets</span>
- <tbody>
- <tr wicket:id="watchedTickets">
- <td><span wicket:id="ticketName"></span></td>
- <td><span wicket:id="ticketDescription"></span></td>
- </tr>
- </tbody>
- </table>
+ <div class="container">
+ <div class="markdown" style="padding: 10px 0px 5px 0px;" wicket:id="myTicketsMessage">[my tickets message]</div>
+
+ <table>
+ <span>Responsible Tickets</span>
+ <tbody>
+ <tr wicket:id="responsibleTickets">
+ <td><span wicket:id="repositoryName"></span></td>
+ <td><span wicket:id="ticketName"></span></td>
+ <td><span wicket:id="ticketDescription"></span></td>
+ </tr>
+ </tbody>
+ </table>
+
+ <table>
+ <span>Author Tickets</span>
+ <tbody>
+ <tr wicket:id="authorTickets">
+ <td><span wicket:id="repositoryName"></span></td>
+ <td><span wicket:id="ticketName"></span></td>
+ <td><span wicket:id="ticketDescription"></span></td>
+ </tr>
+ </tbody>
+ </table>
+
+ <table>
+ <span>Voted Tickets</span>
+ <tbody>
+ <tr wicket:id="votedTickets">
+ <td><span wicket:id="repositoryName"></span></td>
+ <td><span wicket:id="ticketName"></span></td>
+ <td><span wicket:id="ticketDescription"></span></td>
+ </tr>
+ </tbody>
+ </table>
+
+ <table>
+ <span>Watched Tickets</span>
+ <tbody>
+ <tr wicket:id="watchedTickets">
+ <td><span wicket:id="repositoryName"></span></td>
+ <td><span wicket:id="ticketName"></span></td>
+ <td><span wicket:id="ticketDescription"></span></td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
</wicket:extend>
</body>
</html>
\ No newline at end of file
import java.util.ArrayList;
import java.util.List;
+import com.gitblit.Keys;
import com.gitblit.models.UserModel;
import com.gitblit.models.TicketModel;
import com.gitblit.tickets.ITicketService;
}
String username = currentUser.getName();
+ String message = "Welcome on GitBlit";
+ this.add(new Label("myTicketsMessage", message));
+
ITicketService tickets = GitBlitWebApp.get().tickets();
List<TicketModel> returnedTickets = tickets.getTickets(null);
{
final TicketModel ticket = item.getModelObject();
String ticketUrl = app().tickets().getTicketUrl(ticket);
+ item.add(new Label("repositoryName", ticket.repository));
item.add(new LinkPanel("ticketName", "", ticket.title, ticketUrl));
item.add(new Label("ticketDescription", ticket.body));
}
{
final TicketModel ticket = item.getModelObject();
String ticketUrl = app().tickets().getTicketUrl(ticket);
+ item.add(new Label("repositoryName", ticket.repository));
item.add(new LinkPanel("ticketName", "", ticket.title, ticketUrl));
item.add(new Label("ticketDescription", ticket.body));
}
{
final TicketModel ticket = item.getModelObject();
String ticketUrl = app().tickets().getTicketUrl(ticket);
+ item.add(new Label("repositoryName", ticket.repository));
item.add(new LinkPanel("ticketName", "", ticket.title, ticketUrl));
item.add(new Label("ticketDescription", ticket.body));
}
{
final TicketModel ticket = item.getModelObject();
String ticketUrl = app().tickets().getTicketUrl(ticket);
+ item.add(new Label("repositoryName", ticket.repository));
item.add(new LinkPanel("ticketName", "", ticket.title, ticketUrl));
item.add(new Label("ticketDescription", ticket.body));
}