Guest User

Untitled

a guest
Nov 20th, 2017
493
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1. <table class="table table-striped table-bordered table-hover" id="dataTables-example">
  2. <thead>
  3. <tr>
  4. <th scope="col">#</th>
  5. <th scope="col">Job (id/name)</th>
  6. <th scope="col">Place</th>
  7. <th scope="col">Last Name</th>
  8. <th scope="col">Progress</th>
  9. </tr>
  10. </thead>
  11. <tbody>
  12. @for((job,index) <- jobList.zipWithIndex) {
  13. //
  14. // this is where i'm stuck
  15. //
  16. @progressPercentage() = @{
  17. job.getTotalTaskCount/job.getFinishedTaskCount.toDouble
  18. }
  19. <tr>
  20. <th scope="row">@index</th>
  21. <td>
  22. <div>
  23. <p><strong>@job.getJobName</strong></p>
  24. <span><a href='@routes.JobDetailController.loadJob(job.getJobId)'>@job.getJobId</a></span>
  25. </div>
  26. </td>
  27. <td>
  28. <div>
  29. <h5>@job.getZone</h5>
  30. <p>@job.getContinent</p>
  31. </div>
  32.  
  33. </td>
  34. <td>
  35. //
  36. // Use of the variable
  37. //
  38. <div class="progress progress-striped active">
  39. <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="@progressPercentage()" aria-valuemin="0" aria-valuemax="100" style="width: 40%">
  40. <span class="sr-only">@progressPercentage()% Complete (success)</span>
  41. </div>
  42. </div>
  43. </td>
  44. </tr>
  45. }
  46. </tbody>
  47. </table>
Add Comment
Please, Sign In to add comment