Skip to content

Commit

Permalink
Implement index view
Browse files Browse the repository at this point in the history
  • Loading branch information
henhuy committed Dec 7, 2023
1 parent cb45a24 commit 784e693
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
from django.contrib import admin
from django.urls import include, path
from django.views import defaults as default_views
from django.views.generic import TemplateView

urlpatterns = [
path("", TemplateView.as_view(template_name="index.html"), name="index"),
path("", include("django_comparison_dashboard.urls")),
path("", include("django_energysystem_viewer.urls")),
path(settings.ADMIN_URL, admin.site.urls),
Expand Down
20 changes: 20 additions & 0 deletions sedos_dashboard/templates/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{% extends "base.html" %}

{% block content %}
<h1>Contents</h1>
<h2>Comparison Dashboard</h2>
<ul>
<li>
<a href="{% url 'django_comparison_dashboard:scenarios' %}">Scenario Selection</a>
</li>
<li>
<a href="{% url 'django_comparison_dashboard:upload' %}">Scenario Upload</a>
</li>
</ul>
<h2>Energysystem Viewer</h2>
<ul>
<li>
<a href="{% url 'django_energysystem_viewer:collections' %}">Collections</a>
</li>
</ul>
{% endblock content %}

0 comments on commit 784e693

Please sign in to comment.