Skip to content

Commit 5608838

Browse files
done and close #54
1 parent 9a9bdf8 commit 5608838

5 files changed

Lines changed: 17 additions & 10 deletions

File tree

Content/main.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,20 @@
66
margin-bottom: 1em;
77
}
88

9+
910
.dtm-para_green {
1011
background-color: #bbddd9;
1112
font-size: 14px;
1213
padding: 0.5em;
1314
}
1415

15-
.dtm-divBox .dtm-controls {
16+
.dtm-para-warning {
17+
background-color: #FFE6BE;
18+
font-size: 14px;
19+
padding: 0.5em;
20+
}
21+
22+
.dtm-divBox .dtm-controls {
1623
display: flex;
1724
flex-wrap: wrap;
1825
padding: 0.1em 0.5em;

Controllers/LUICalculationController.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public ActionResult CalculateLUI(LUIQueryModel model)
126126

127127
Session["DataStructureId"] = null;
128128

129-
if (model.ComponentsSet.SelectedValue == "old components set")
129+
if (model.ComponentsSet.SelectedValue == "historic components set")
130130
{
131131
selectedDataStructureId = (int)Models.Settings.get("lui:datastructureOldComponentsSet");
132132
model.DownloadDatasetId = Models.Settings.get("lui:datasetOldComponentsSet").ToString();
@@ -145,10 +145,10 @@ public ActionResult CalculateLUI(LUIQueryModel model)
145145
string dsId = "";
146146
switch (model.ComponentsSet.SelectedValue)
147147
{
148-
case "old components set":
148+
case "historic components set":
149149
dsId = Models.Settings.get("lui:datasetOldComponentsSet").ToString();
150150
break;
151-
case "new components set":
151+
case "default components set":
152152
dsId = Models.Settings.get("lui:datasetNewComponentsSet").ToString();
153153
break;
154154
}
@@ -323,7 +323,7 @@ public ActionResult DownloadFile(string mimeType)
323323
}
324324

325325
string datasetId;
326-
if (model.ComponentsSet.SelectedValue.Contains("old"))
326+
if (model.ComponentsSet.SelectedValue.Contains("historic"))
327327
datasetId = Models.Settings.get("lui:datasetOldComponentsSet").ToString();
328328
else
329329
datasetId = Models.Settings.get("lui:datasetNewComponentsSet").ToString();

Models/LUIQueryModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ public LUIQueryModel()
5555
MissingComponentData = new List<MissingComponentData>();
5656

5757
//fill ComponentsSet
58-
ComponentsSet.SelectedValue = "new components set";
59-
ComponentsSet.Values = new List<string>() { "old components set", "new components set" };
58+
ComponentsSet.SelectedValue = "default components set";
59+
ComponentsSet.Values = new List<string>() { "historic components set", "default components set" };
6060

6161

6262
// fill RawVsCalc

Scripts/lui.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
console.log(datasetIdOld);
4242
console.log(selecteddataset);
4343

44-
if (selecteddataset == "old components set") {
44+
if (selecteddataset == "historic components set") {
4545

4646
datasetId = datasetIdOld;
4747
console.log("old");

Views/LUICalculation/Index.cshtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
@if (Model.MissingComponentData.Count() != 0 && Model.IsPublicAccess == false)
2424
{
2525
<div class="dtm-divBox">
26-
<p class="dtm-para_green">Warning: Some input data needed for calculation is not completely available. Below you will find the affected years, and for which plots the data is missing. For this year, use the LUI just for testing purposes. For publications, use only LUI where no warning is given.</p>
26+
<p class="dtm-para-warning"><b>Warning:</b> Some input data needed for calculation is not completely available. Below you will find the affected years, and for which plots the data is missing. For this year, use the LUI just for testing purposes. For publications, use only LUI where no warning is given.</p>
2727

2828
<div class="dtm-controls">
2929

@@ -68,7 +68,7 @@
6868
</div>
6969
}
7070
<div id="divQuery00" class="dtm-divBox">
71-
<p class="dtm-para_green">Which input data do you want to use for the calculation (default = new set).</p>
71+
<p class="dtm-para_green">Which input data do you want to use for the calculation. See "LUI changes docu" above for more information.</p>
7272
<div class="dtm-controls">
7373
@foreach (var item in Model.ComponentsSet.Values)
7474
{

0 commit comments

Comments
 (0)