Last change
on this file since 9137 was
9062,
checked in by fschoepp, 12 years ago
|
#1888:
Backend changes:
- Simplified job state detection (only one hive call will be made to detect all states now, instead of one additional call per job)
- Reorganized classes (moved model classes into Model folder)
Website changes:
- Website now heavily uses JavaScript to achieve better user experience
- JavaScript degrades gracefully, except for plots
- Tables: Added jquery-datatable-plugin to extend tables (pagination + search functionality)
- OaaS-Website now uses the design of the HL websites (found in WebApplication branch)
- Added jqplot to render zoomable line plots for HL-Datatables
- Styling.js: Plots will be generated by using an ajax call; additional jquery-styling occurs within this file.
- Added jquery-ui-1.9.2 which is capable of handling/rendering tabs, accordions and resizers.
|
File size:
2.8 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 | @for (int j=0; j < Model.Runs.Count; j++) {
|
---|
31 | var run = Model.Runs[j];
|
---|
32 | <p>@run.Name:</p>
|
---|
33 | <table>
|
---|
34 | <thead>
|
---|
35 | <tr>
|
---|
36 | <td>Key</td>
|
---|
37 | <td>Value</td>
|
---|
38 | </tr>
|
---|
39 | </thead>
|
---|
40 | <tbody>
|
---|
41 | @for (var i = 0; i < run.Results.Count; i++) {
|
---|
42 | var result = run.Results[i];
|
---|
43 | <tr>
|
---|
44 | <td>@result.Value.Name</td>
|
---|
45 | @if (result.Value is HeuristicLab.Services.Optimization.ControllerService.Model.DecimalMatrix) {
|
---|
46 | var matrix = (result.Value as HeuristicLab.Services.Optimization.ControllerService.Model.DecimalMatrix);
|
---|
47 | <td>
|
---|
48 | <div class="tabable">
|
---|
49 | <ul>
|
---|
50 | <li>
|
---|
51 | <a href="#matrix-tab-@j-@i">Table @result.Value.Name</a>
|
---|
52 | </li>
|
---|
53 | <li>
|
---|
54 | <a href="#matrix-graph-@j-@i-render">Chart @result.Value.Name</a>
|
---|
55 | <!--a href="@Url.Content("~/Chart/GenerateChart?index=" + j + "¶meterName=" + result.Value.Name + "&chartType=Line")">Chart @result.Value.Name</a-->
|
---|
56 | <!--img alt="Chart" src="@Url.Content("~/Chart/GenerateChart?index=" + j + "¶meterName=" + result.Value.Name)" /-->
|
---|
57 | </li>
|
---|
58 | </ul>
|
---|
59 | <div id="matrix-tab-@j-@i" class="scroll">
|
---|
60 | @Html.DisplayFor(model => matrix)
|
---|
61 | </div>
|
---|
62 | <div class="resizable ui-widget-content" id="matrix-graph-@j-@i-render" style="width: 800px; height: 600px;">
|
---|
63 | <div class="matrix-graph" id="matrix-graph-@j-@i" style="width:96%; height:96%;" ></div>
|
---|
64 | </div>
|
---|
65 | </div>
|
---|
66 | </td>
|
---|
67 | }
|
---|
68 | else {
|
---|
69 | <td>@((result.Value as HeuristicLab.Services.Optimization.ControllerService.Model.StringValue).Value)</td>
|
---|
70 | }
|
---|
71 | </tr>
|
---|
72 | }
|
---|
73 | </tbody>
|
---|
74 | </table>
|
---|
75 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.