Skip to content

Commit 1120818

Browse files
UI issues in missing comp data box done #49
1 parent 005e583 commit 1120818

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

Content/main.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ label.bx-disabled {
5555

5656
.box {
5757
float: left;
58-
width: 30%;
58+
width: 33%;
5959
}
6060

6161
.plots {

Controllers/LUICalculationController.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,11 @@ public ActionResult Index()
5050
LUIQueryModel model = new LUIQueryModel();
5151
model.MissingComponentData = DataAccess.GetMissingComponentData(GetServerInformation());
5252
model.NewComponentsSetDatasetId = Models.Settings.get("lui:datasetNewComponentsSet").ToString();
53+
var datasetInfo = DataAccess.GetDatasetInfo(model.NewComponentsSetDatasetId, GetServerInformation());
5354
model.NewComponentsSetDatasetVersion = DataAccess.GetDatasetInfo(model.NewComponentsSetDatasetId, GetServerInformation()).Version;
55+
XmlDocument doc = DataAccess.GetMetadata(model.NewComponentsSetDatasetId, GetServerInformation());
56+
model.NewComponentsSetLastUpdate = DateTime.Parse(doc.GetElementsByTagName("metadataLastModificationDateType")[0].InnerText).ToString("yyyy-MM-dd");
57+
5458
return View("Index", model);
5559

5660
}

Models/LUIQueryModel.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ public class LUIQueryModel
2626

2727
public string DownloadDatasetId { get; set; }
2828

29+
public string NewComponentsSetLastUpdate { get; set; }
30+
2931

3032
public LUIQueryModel()
3133
{

Views/LUICalculation/Index.cshtml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,23 +31,23 @@
3131
else
3232
{
3333
<div class="box">
34-
Source Dataset: @Model.NewComponentsSetDatasetId<br />
34+
<b>Source Dataset:</b> @Model.NewComponentsSetDatasetId<br />
3535
</div>
3636
<div class="box">
37-
Version: @Model.NewComponentsSetDatasetVersion
37+
<b>Version:</b> @Model.NewComponentsSetDatasetVersion
3838
</div>
3939
<div class="box">
40-
Last update:
40+
<b>Last update:</b> @Model.NewComponentsSetLastUpdate
4141
</div>
4242
<br /><br />
4343
foreach (var missingCompData in Model.MissingComponentData)
4444
{
4545

4646
<div class="box">
47-
Year: @missingCompData.Year<br />
47+
<b>Year:</b> @missingCompData.Year<br />
4848
</div>
4949
<div class="box">
50-
Missing plots: <a class="plotClick">Click to show</a>
50+
<b>Missing plots:</b><br /><a class="plotClick">Click to show</a>
5151
</div>
5252
<div class="plots">
5353
@foreach (var plot in missingCompData.PlotIds)

0 commit comments

Comments
 (0)