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