Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <table class="table table-striped table-bordered table-hover" id="dataTables-example">
- <thead>
- <tr>
- <th scope="col">#</th>
- <th scope="col">Job (id/name)</th>
- <th scope="col">Place</th>
- <th scope="col">Last Name</th>
- <th scope="col">Progress</th>
- </tr>
- </thead>
- <tbody>
- @for((job,index) <- jobList.zipWithIndex) {
- //
- // this is where i'm stuck
- //
- @progressPercentage() = @{
- job.getTotalTaskCount/job.getFinishedTaskCount.toDouble
- }
- <tr>
- <th scope="row">@index</th>
- <td>
- <div>
- <p><strong>@job.getJobName</strong></p>
- <span><a href='@routes.JobDetailController.loadJob(job.getJobId)'>@job.getJobId</a></span>
- </div>
- </td>
- <td>
- <div>
- <h5>@job.getZone</h5>
- <p>@job.getContinent</p>
- </div>
- </td>
- <td>
- //
- // Use of the variable
- //
- <div class="progress progress-striped active">
- <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="@progressPercentage()" aria-valuemin="0" aria-valuemax="100" style="width: 40%">
- <span class="sr-only">@progressPercentage()% Complete (success)</span>
- </div>
- </div>
- </td>
- </tr>
- }
- </tbody>
- </table>
Add Comment
Please, Sign In to add comment