@(currentPage: com.avaje.ebean.Page[User], currentSortBy: String, currentOrder: String, currentFilter: String) @**************************************** * Helper generating navigation links * ****************************************@ @link(newPage:Int, newSortBy:String) = @{ var sortBy = currentSortBy var order = currentOrder if(newSortBy != null) { sortBy = newSortBy if(currentSortBy == newSortBy) { if(currentOrder == "asc") { order = "desc" } else { order = "asc" } } else { order = "asc" } } // Generate the link routes.paging.pag(newPage, sortBy, order, currentFilter) } @header(key:String, title:String) = { @title } @main("welcome to EXTR ") {

welcome admin

user found

@if(currentPage.getTotalRowCount == 0) {

Nothing to display

} else { @for(user <- currentPage.getList) { }

@header("name","name")@header("email","email")@header("","")@user.name@user.getEmail()delete

  • @if(currentPage.hasPrev) {
  • ← Previous
  • } else {
  • ← Previous
  • }
  • Displaying @currentPage.getDisplayXtoYofZ(" to "," of ")
  • @if(currentPage.hasNext) {
  • Next →
  • } else {
  • Next →
  • }

} }