Changeset 630


Ignore:
Timestamp:
Jul 15, 2010, 11:08:27 AM (14 years ago)
Author:
gav
Message:

Default to 200 results on listSubTasks view.

Location:
trunk/grails-app
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/TaskDetailedController.groovy

    r615 r630  
    711711        }
    712712        else {
    713         params.max = Math.min( params.max ? params.max.toInteger() : 10,  100)
     713        params.max = Math.min( params.max ? params.max.toInteger() : 200,  200)
    714714        def subTaskInstanceList = Task.findAllByParentTaskAndTrash(parentTaskInstance, false, params)
    715715        def subTaskInstanceTotal = Task.countByParentTaskAndTrash(parentTaskInstance, false)
  • trunk/grails-app/views/taskDetailed/listSubTasks.gsp

    r196 r630  
    1111        </div>
    1212        <div class="body">
    13              <g:link action="show" id="${parentTaskInstance.id}">
    14                 <h1>Task #${parentTaskInstance.id} sub tasks.</h1>
    15             </g:link>
     13
     14            <h1>Sub Tasks for:
     15                <g:link action="show" id="${parentTaskInstance.id}" params="[showTab:'showSubTasksTab']">
     16                    Task #${parentTaskInstance.id}
     17                </g:link>
     18            </h1>
     19            ${parentTaskInstance.description}
     20
    1621            <g:if test="${flash.message}">
    1722                <div class="message">${flash.message}</div>
     
    1924
    2025            <div class="paginateButtons">
    21                 Results:${taskInstanceTotal}
     26                Results: ${taskInstanceList.size()} / ${taskInstanceTotal}
     27            </div>
     28            <div class="paginateButtons">
     29                <g:paginate action="listSubTasks" id="${parentTaskInstance?.id}" total="${taskInstanceTotal}" />
    2230            </div>
    2331            <div class="list">
Note: See TracChangeset for help on using the changeset viewer.