@(users: List[model.Account])(implicit context: app.Context) @import context._ @import service.AccountService._ @html.main("Manage Users"){ <div style="text-align: right; margin-bottom: 4px;"> <a href="@path/admin/users/_new" class="btn">New User</a> </div> <table class="table table-borderd table-hover"> <tr> <th>Username</th> <th>Mail Address</th> <th>Type</th> <th>URL</th> <th>Registered</th> <th>Updated</th> <th>Last Login</th> </tr> @users.map { account => <tr> <td><a href="@path/admin/users/@account.userName/_edit">@account.userName</a></td> <td>@account.mailAddress</td> <td> @if(account.userType == Normal){ Normal } @if(account.userType == Administrator){ Administrator } </td> <td>@account.url</td> <td>@account.registeredDate</td> <td>@account.updatedDate</td> <td>@account.lastLoginDate</td> </tr> } </table> }