diff --git a/applefruitmoth/locale/nb/LC_MESSAGES/django.mo b/applefruitmoth/locale/nb/LC_MESSAGES/django.mo
index 8059c528026978fb9ef90f9de92b26a52f068b24..b6c02177ed3b8f418c78baebe963c3324881bb81 100644
Binary files a/applefruitmoth/locale/nb/LC_MESSAGES/django.mo and b/applefruitmoth/locale/nb/LC_MESSAGES/django.mo differ
diff --git a/applefruitmoth/locale/nb/LC_MESSAGES/django.po b/applefruitmoth/locale/nb/LC_MESSAGES/django.po
index 78fbdcee2ed067df7e7d41796157c36819882ab3..f17043c2e9b52e269b2ebc0be971f0e3da3a43ef 100644
--- a/applefruitmoth/locale/nb/LC_MESSAGES/django.po
+++ b/applefruitmoth/locale/nb/LC_MESSAGES/django.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2016-04-08 16:28+0200\n"
+"POT-Creation-Date: 2016-04-15 13:19+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -25,9 +25,19 @@ msgstr "Rognebærmøllvarsling"
#: templates/applefruitmoth/index.html:32
msgid "Description of apple fruit moth forecasting"
-msgstr "Beskrivelse av rognebærmøllvarslingen"
+msgstr ""
+"Rognebærmøllvarslingen er et samarbeid mellom lokale rådgivere i "
+"fruktdistriktene og NIBIO. I august måned teller de lokale rådgiverne antall "
+"bærklaser på merka referansetrær av rogn. De høster samtidig en bærprøve som "
+"sendes til NIBIO. Fra denne bærprøven finner vi angrepsgrad av rognebærmøll "
+"i rogn for hver prognosestasjon. Det beregnes også andel parasitterte "
+"rognebærmøll. Ut i fra denne informasjonen kan mengden rognebærmøll som "
+"overvintrer anslås. Følgende vår telles antall blomsterklaser på de samme "
+"referansetrærne, og vi kan så regne ut varselet. Er det nok blomsterklaser "
+"på våren i forhold til antallet møll som har overvintret, vil rognebærmøllen "
+"holde seg til rogn og det blir ikke angrep. Bare hvis det blir for lite bær "
+"på rogna vil møllen angripe eple."
#: templates/applefruitmoth/index.html:33
msgid "Messages"
msgstr "Meldinger"
-
diff --git a/applefruitmoth/static/applefruitmoth/js/map.js b/applefruitmoth/static/applefruitmoth/js/map.js
index 628a76b4019a18d294a428947c25b1b41dcddc75..705d893c67743e2dbe7350e73bd1716cc6b8e6ce 100644
--- a/applefruitmoth/static/applefruitmoth/js/map.js
+++ b/applefruitmoth/static/applefruitmoth/js/map.js
@@ -84,7 +84,7 @@ var initMap = function(container, mapAttribution)
html: true,
placement: "auto top",
title: feature.get("name"),
- content: feature.get("description")
+ content: generatePopupContents(feature.get("warningStatus"), feature.get("description"))
});
poiDetails.popover('show');
@@ -98,4 +98,9 @@ var initMap = function(container, mapAttribution)
var pixel = map.getEventPixel(evt.originalEvent);
displayFeatureDetails(pixel);
});
+}
+
+function generatePopupContents(warningStatus, description)
+{
+ return "<img src='http://" + settings.vipslogicServerName + "/public/images/station_icon_status_" + warningStatus + ".png'/> " + description;
}
\ No newline at end of file
diff --git a/applefruitmoth/templates/applefruitmoth/index.html b/applefruitmoth/templates/applefruitmoth/index.html
index 89b4d1c56e2adbc2529ca45f01ee35c955d14e1b..55ae10cc8347e1407e1293c2e72dd820f1215180 100644
--- a/applefruitmoth/templates/applefruitmoth/index.html
+++ b/applefruitmoth/templates/applefruitmoth/index.html
@@ -52,7 +52,17 @@
</div>
<div class="col-md-6">
- <div id="appleFruitMothForecastMap" class="map" style="height: 600px;"><div id="popover"></div></div>
+ <div id="appleFruitMothForecastMap" class="map" style="height: 600px;">
+ <div id="popover"></div>
+ <div id="warningLegend" class="mapBoxPlacement_2">
+ <ul>
+ <li class="warning_4"><span>{% trans "High risk of infection" %}</span></li>
+ <li class="warning_3"><span>{% trans "Medium risk of infection" %}</span></li>
+ <li class="warning_2"><span>{% trans "No risk of infection" %}</span></li>
+ <li class="warning_0"><span>{% trans "No forecast available" %}</span></li>
+ </ul>
+ </div>
+ </div>
</div>
</div>
</div>