Verified Commit 7f3a2c01 authored by Philipp Sebastian Sommer's avatar Philipp Sebastian Sommer
Browse files

implement initial version of the viewer

parent 83054220
Pipeline #128398 passed with stage
in 2 minutes and 22 seconds
{% load static %}
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Model Data Explorer</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="mde_viewer/dist/mde-viewer/assets/favicons/favicon.png">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&amp;display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="{% static 'mde_viewer/dist/mde-viewer/styles.css' %}"></head>
<body class="mat-typography">
<app-root></app-root>
<script src="{% static 'mde_viewer/dist/mde-viewer/runtime.js' %}" defer></script><script src="{% static 'mde_viewer/dist/mde-viewer/polyfills.js' %}" defer></script><script src="{% static 'mde_viewer/dist/mde-viewer/scripts.js' %}" defer></script><script src="{% static 'mde_viewer/dist/mde-viewer/vendor.js' %}" defer></script><script src="{% static 'mde_viewer/dist/mde-viewer/main.js' %}" defer></script></body>
</html>
......@@ -46,4 +46,6 @@ from mde_viewer import views # noqa: F401
app_name = "mde_viewer"
#: urlpattern for the Helmholtz AAI
urlpatterns: list[Any] = []
urlpatterns: list[Any] = [
path("", views.MapFrontendView.as_view()),
]
......@@ -33,3 +33,8 @@ from django.views import generic # noqa: F401
from mde_viewer import app_settings # noqa: F401
from mde_viewer import models # noqa: F401
class MapFrontendView(generic.TemplateView):
template_name = "mde_viewer/viewer.html"
......@@ -56,10 +56,7 @@ class PatchRedirectView(RedirectView):
urlpatterns = [
path("", include("django.contrib.auth.urls")),
path(
"mde-viewer/",
include("mde_viewer.urls"),
),
path("", include("mde_viewer.urls")),
path("admin/", admin.site.urls),
]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment