[13712] | 1 | @model HeuristicLab.Clients.Hive.WebJobManager.Models.HiveTaskContainer
|
---|
| 2 | @using Newtonsoft.Json;
|
---|
[13714] | 3 | <div class="panel panel-warning" style="border-color:#f6cd94!important; border-width:2px!important;
|
---|
| 4 | box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
|
---|
| 5 | text-shadow:2px 2px black">
|
---|
[13733] | 6 |
|
---|
| 7 | <script type="text/javascript"> //Has to be up front to ensure right order of javascript array
|
---|
| 8 | initSaveData("@(Model.hiveTask.Task.Id)",
|
---|
| 9 | @Html.Raw(JsonConvert.SerializeObject(Model.hiveTask.Task.StateLog)), "@(Model.hiveTask.ItemTask.Name)");
|
---|
| 10 |
|
---|
| 11 | </script>
|
---|
| 12 |
|
---|
| 13 |
|
---|
[13712] | 14 | <div class="panel-heading"
|
---|
[13714] | 15 | onclick="redrawGraph('@(Model.hiveTask.Task.Id)')"
|
---|
| 16 | aria-expanded="false"
|
---|
| 17 | aria-controls="panbody@(Model.hiveTask.Task.Id)">
|
---|
[13712] | 18 | <table class="table ">
|
---|
| 19 | <thead>
|
---|
| 20 | <tr>
|
---|
[13740] | 21 | <th> Batch run: @Model.hiveTask.ItemTask.Name</th>
|
---|
[13733] | 22 | <th style="font-size:large; ">
|
---|
[13712] | 23 | @if (Model.hiveTask.Task.Priority == 0)
|
---|
| 24 | {
|
---|
| 25 | <span class="label label-default"> Priority low</span>
|
---|
| 26 | }
|
---|
| 27 | else if (Model.hiveTask.Task.Priority == 1)
|
---|
| 28 | {
|
---|
| 29 | <span class="label label-info">Priority normal</span>
|
---|
| 30 | }
|
---|
| 31 | else if (Model.hiveTask.Task.Priority == 2)
|
---|
| 32 | {
|
---|
| 33 | <span class="label label-warning">Priority urgent</span>
|
---|
| 34 |
|
---|
| 35 | }
|
---|
| 36 | else if (Model.hiveTask.Task.Priority == 3)
|
---|
| 37 | {
|
---|
| 38 | <span class="label label-danger">Priority critical</span>
|
---|
| 39 |
|
---|
| 40 | }
|
---|
| 41 | </th>
|
---|
| 42 |
|
---|
| 43 | </tr>
|
---|
| 44 | </thead>
|
---|
| 45 | <tbody>
|
---|
| 46 | <tr>
|
---|
[13714] | 47 | <td id="lastupdpar@(Model.hiveTask.Task.Id)">
|
---|
| 48 | <i class="fa fa-cog fa-spin fa-2x" id="spinner"></i>
|
---|
| 49 | </td>
|
---|
| 50 | <td id="statepar@(Model.hiveTask.Task.Id)">
|
---|
| 51 | <i class="fa fa-cog fa-spin fa-2x" id="spinner"></i>
|
---|
| 52 | </td>
|
---|
[13712] | 53 |
|
---|
| 54 | </tr>
|
---|
| 55 | <tr>
|
---|
[13714] | 56 | <td id="executionpar@(Model.hiveTask.Task.Id)">
|
---|
| 57 | <i class="fa fa-cog fa-spin fa-2x" id="spinner"></i>
|
---|
| 58 | </td>
|
---|
[13712] | 59 | <td>Created: @Model.hiveTask.Task.DateCreated</td>
|
---|
[13714] | 60 | </tr>
|
---|
[13712] | 61 | <tr>
|
---|
| 62 | <td>
|
---|
| 63 | Child task distribution
|
---|
| 64 | <input type="checkbox"
|
---|
| 65 | disabled
|
---|
| 66 | @(Model.hiveTask.ItemTask.ComputeInParallel ? "checked" : "" )
|
---|
| 67 | data-toggle="toggle"
|
---|
| 68 | data-onstyle="success" />
|
---|
| 69 | </td>
|
---|
[13714] | 70 | <td id="statechangespar@(Model.hiveTask.Task.Id)">
|
---|
| 71 | <i class="fa fa-cog fa-spin fa-2x" id="spinner"></i>
|
---|
| 72 | </td>
|
---|
[13733] | 73 |
|
---|
[13712] | 74 | </tr>
|
---|
[13733] | 75 | <tr>
|
---|
| 76 | <td style="word-break:break-all" id="exceptionpar@(Model.hiveTask.Task.Id)">
|
---|
| 77 | <i class="fa fa-cog fa-spin fa-2x" id="spinner"></i>
|
---|
| 78 | </td>
|
---|
| 79 | </tr>
|
---|
| 80 | <tr style="display:none" id="restarter@(Model.hiveTask.Task.Id)">
|
---|
| 81 | <td>
|
---|
| 82 | <input style="box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
|
---|
| 83 | text-shadow:2px 2px black;"
|
---|
| 84 | id="restarterbtn@(Model.hiveTask.Task.Id)"
|
---|
| 85 | class="btn btn-success"
|
---|
| 86 | type="button"
|
---|
| 87 | onclick="restart('@(Model.hiveTask.Task.Id)');event.cancelBubble=true;"
|
---|
| 88 | value="Restart task"/>
|
---|
| 89 | </td>
|
---|
| 90 | </tr>
|
---|
[13712] | 91 | </tbody>
|
---|
| 92 | </table>
|
---|
[13827] | 93 | <a style="box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
|
---|
| 94 | text-shadow:2px 2px black;"
|
---|
| 95 | class="btn btn-info btn-block"
|
---|
| 96 | data-toggle="collapse"
|
---|
| 97 | data-target="#panbody@(Model.hiveTask.Task.Id)"><i class="fa fa-bar-chart-o"></i>Show graph</a>
|
---|
[13712] | 98 | </div>
|
---|
[13714] | 99 | <div class="panel-body " style="text-shadow:none">
|
---|
[13712] | 100 | <div class="collapse" id="panbody@(Model.hiveTask.Task.Id)">
|
---|
[13714] | 101 | <input id="graphtoggle@(Model.hiveTask.Task.Id)"
|
---|
| 102 | type="checkbox"
|
---|
| 103 | data-toggle="toggle"
|
---|
[13733] | 104 | data-on="Bar"
|
---|
[13714] | 105 | data-off="Pie"
|
---|
| 106 | onchange="redrawGraph('@(Model.hiveTask.Task.Id)')">
|
---|
| 107 | <h4 id="graphtitle@(Model.hiveTask.Task.Id)">
|
---|
| 108 | <i class="fa fa-cog fa-spin fa-2x" id="spinner"></i>
|
---|
| 109 | </h4>
|
---|
| 110 | <div style="text-shadow:none" id="graph@(Model.hiveTask.Task.Id)"></div>
|
---|
[13735] | 111 | <div id="legend@(Model.hiveTask.Task.Id)" style="display:none">
|
---|
| 112 | @Html.Partial("_Graphlegend")
|
---|
| 113 | </div>
|
---|
[13712] | 114 | </div>
|
---|
| 115 | </div>
|
---|
| 116 | @if (Model.hiveTask.ChildHiveTasks.Count > 0)
|
---|
| 117 | {
|
---|
| 118 | <div class="panel-body">
|
---|
| 119 | @foreach (var task in Model.hiveTask.ChildHiveTasks)
|
---|
| 120 | {
|
---|
| 121 | @Html.Partial("SelectedJobPartials/_TaskPartial",
|
---|
| 122 | new HeuristicLab.Clients.Hive.WebJobManager.Models.HiveTaskContainer(task))
|
---|
| 123 |
|
---|
| 124 | }
|
---|
| 125 | </div>
|
---|
| 126 | }
|
---|
[13733] | 127 |
|
---|
[13712] | 128 | </div> |
---|