@(page:Page[org.fedoraproject.javadeptools.ClassEntry])(implicit request:play.api.mvc.RequestHeader)
<div>Showing results from @page.from to @page.to of total @page.totalCount</div>
@defining(request.getQueryString("q").getOrElse("")) { q =>
<ul class="pagination">
    <li @if(page.currentPage == 1){class="disabled"}>
        <a href="@routes.Application.index(page.currentPage - 1, q)">Previous</a>
    </li>
    <li @if(page.currentPage > page.maxPage){class="disabled"}>
        <a href="@routes.Application.index(page.currentPage + 1, q)">Next</a>
     </li>
</ul>}
<table class="table table-condensed">
    <tr>
        <th>Class name</th>
        <th>JAR path</th>
        <th>Package name</th>
    </tr>
    @for(row <-page.content) {
    <tr>
        <td>@row.getClassName</td>
        <td>@row.getFileArtifact.getPath</td>
        <td>@row.getFileArtifact.getPkg.getName</td>
    </tr>
}
</table>
@(page:Page[org.fedoraproject.javadeptools.ClassEntry])(implicit request:play.api.mvc.RequestHeader)
<div>Showing results from @page.from to @page.to of total @page.totalCount</div>
@defining(request.getQueryString("q").getOrElse("")) { q =>
    <ul class="pagination">
        @if(page.currentPage == 1) {
            <li class="disabled"><a href="#">Previous</a></li>
        } else {
            <li>
                <a href="@routes.Application.index(page.currentPage - 1, q)">Previous</a>
            </li>
        }
        @if(page.currentPage > page.maxPage) {
            <li class="disabled"><a href="#">Next</a></li>
        } else {
            <li>
                <a href="@routes.Application.index(page.currentPage + 1, q)">Next</a>
            </li>
        }
    </ul>
}
<table id="class-table" class="table table-condensed">
    <tr>
        <th>Class name</th>
        <th>JAR path</th>
        <th>Package name</th>
    </tr>
    @for(row <-page.content) {
    <tr>
        <td>@row.getClassName</td>
        <td>@row.getFileArtifact.getPath</td>
        <td>@row.getFileArtifact.getPkg.getName</td>
    </tr>
}
</table>
Make disabled pagination links really disabled
Make disabled pagination links really disabled
