Last change
on this file since 8545 was
8545,
checked in by fschoepp, 12 years ago
|
#1888:
- Controller is now capable of gathering Hive Jobs
- Hive Jobs will be mapped to independent Job-Class (shared between Controller and Frontend)
- HiveScenarioManager is capable of gathering Hive Jobs + their results
- Job Results will be mapped to string properties
- Frontend renders all Results after opening the job details
- Misc: Frontend now passes User-object to Controller so that it is able to connect to the Hive Service (hardcoded values removed)
|
File size:
1.1 KB
|
Line | |
---|
1 | @model HeuristicLab.Services.Optimization.Web.Models.JobDetailsModel
|
---|
2 |
|
---|
3 | <h2>Job details:</h2>
|
---|
4 | <h3>Summary:</h3>
|
---|
5 |
|
---|
6 | <table>
|
---|
7 | <thead>
|
---|
8 | <tr>
|
---|
9 | <td>Name</td>
|
---|
10 | <td>Resource</td>
|
---|
11 | <td>State</td>
|
---|
12 | </tr>
|
---|
13 | </thead>
|
---|
14 | <tbody>
|
---|
15 | <tr>
|
---|
16 | <td>@Model.Job.Name</td>
|
---|
17 | <td>@Model.Job.Resource</td>
|
---|
18 | <td>@Model.Job.State</td>
|
---|
19 | </tr>
|
---|
20 | </tbody>
|
---|
21 | </table>
|
---|
22 | @using (Html.BeginForm()) {
|
---|
23 | <fieldset>
|
---|
24 | <input type="hidden" value="@Model.Job.Id" name="id" />
|
---|
25 | <input type="submit" value="Delete job" />
|
---|
26 | </fieldset>
|
---|
27 | }
|
---|
28 |
|
---|
29 | <h3>Run details:</h3>
|
---|
30 | @foreach (var run in Model.Runs) {
|
---|
31 | <p>@run.Name:</p>
|
---|
32 | <table>
|
---|
33 | <thead>
|
---|
34 | <tr>
|
---|
35 | <td>Key</td>
|
---|
36 | <td>Value</td>
|
---|
37 | </tr>
|
---|
38 | </thead>
|
---|
39 | <tbody>
|
---|
40 | @foreach (var result in run.Results) {
|
---|
41 | <tr>
|
---|
42 | <td>@result.Value.Name</td>
|
---|
43 | <td>@((result.Value as HeuristicLab.Services.Optimization.ControllerService.Model.StringValue).Value)</td>
|
---|
44 | </tr>
|
---|
45 | }
|
---|
46 | </tbody>
|
---|
47 | </table>
|
---|
48 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.