diff --git a/VIPSWeb/static/css/icons/station_icon_status_0_xmas.png b/VIPSWeb/static/css/icons/station_icon_status_0_xmas.png new file mode 100644 index 0000000000000000000000000000000000000000..059c00b378efaca99c5d723f541319c6b1cfc06c Binary files /dev/null and b/VIPSWeb/static/css/icons/station_icon_status_0_xmas.png differ diff --git a/mock/__init__.py b/mock/__init__.py new file mode 100755 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/mock/admin.py b/mock/admin.py new file mode 100755 index 0000000000000000000000000000000000000000..8c38f3f3dad51e4585f3984282c2a4bec5349c1e --- /dev/null +++ b/mock/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/mock/migrations/__init__.py b/mock/migrations/__init__.py new file mode 100755 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/mock/models.py b/mock/models.py new file mode 100755 index 0000000000000000000000000000000000000000..71a836239075aa6e6e4ecb700e9c42c95c022d91 --- /dev/null +++ b/mock/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/mock/templates/mock/zymogridmapclient.html b/mock/templates/mock/zymogridmapclient.html new file mode 100644 index 0000000000000000000000000000000000000000..7f6e1695df22264251891fc38335d266239bc1b7 --- /dev/null +++ b/mock/templates/mock/zymogridmapclient.html @@ -0,0 +1,27 @@ +<!DOCTYPE html> +<html lang="no"> +<head> + <meta charset="utf-8"> + <meta http-equiv="X-UA-Compatible" content="IE=edge"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <title>TEST GRID map client</title> + <style type="text/css"> + body { + background-color: #dddddd; + } + </style> +</head> +<body> + <h1>Let's say this is the EuroWheat web page</h1> + <p>What you do is that you include the following code in your HTML</p> + <code> + <div id="zymoGridMapContainer" style="width:800px;"></div><br/> + <script id="zymoGridMapScript" type="text/javascript" src="{{settings.VIPSLOGIC_PROTOCOL}}://{{settings.VIPSLOGIC_SERVER_NAME}}/public/nordic_septoria_whs/nordic_septoria_whs.js"/></script> + </code> + <p>Then the application will look like this</p> + <div id="zymoGridMapContainer" style="width:800px;"></div> + <!-- script id="zymoGridMapScript" type="text/javascript" src="{{settings.VIPSLOGIC_PROTOCOL}}://{{settings.VIPSLOGIC_SERVER_NAME}}/public/nordic_septoria_whs/nordic_septoria_whs.js"/></script--> + <script id="zymoGridMapScript" type="text/javascript" src="http://restclienthtml/public/nordic_septoria_whs/nordic_septoria_whs.js"/></script> + <p>If you omit the style attribute, then the application will fill all available space</p> +</body> +</html> \ No newline at end of file diff --git a/mock/tests.py b/mock/tests.py new file mode 100755 index 0000000000000000000000000000000000000000..7ce503c2dd97ba78597f6ff6e4393132753573f6 --- /dev/null +++ b/mock/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/mock/urls.py b/mock/urls.py new file mode 100644 index 0000000000000000000000000000000000000000..5dbf01c9a91b484daa7c9edae2814b92a0208977 --- /dev/null +++ b/mock/urls.py @@ -0,0 +1,23 @@ +# +# Copyright (c) 2014 NIBIO <http://www.nibio.no/>. +# +# This file is part of VIPSWeb. +# VIPSWeb is free software: you can redistribute it and/or modify +# it under the terms of the NIBIO Open Source License as published by +# NIBIO, either version 1 of the License, or (at your option) any +# later version. +# +# VIPSWeb is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# NIBIO Open Source License for more details. +# +# You should have received a copy of the NIBIO Open Source License +# along with VIPSWeb. If not, see <http://www.nibio.no/licenses/>. +# + +from django.conf.urls import patterns, url +from mock import views +urlpatterns = patterns('mock.views', + url(r'^zymogridmapclient/$', views.zymogridmapclient, name='zymogridmapclient'), +) diff --git a/mock/views.py b/mock/views.py new file mode 100755 index 0000000000000000000000000000000000000000..9987ce40b7e79a54e6bf7794148b01baf9d72d45 --- /dev/null +++ b/mock/views.py @@ -0,0 +1,7 @@ +from django.shortcuts import render + +# Create your views here. + + +def zymogridmapclient(request): + return render(request, 'mock/zymogridmapclient.html', {}) \ No newline at end of file