Commit 8b98af63 authored by Julien Palard's avatar Julien Palard
Browse files

Very very basic chat POC.

parent e2475473
......@@ -19,6 +19,7 @@ from django.conf import settings
from django.urls import path, include
from website.api import router
from website.views import (
chat,
dashboard_view,
ProfileView,
index,
......@@ -46,6 +47,7 @@ urlpatterns = [
path("profile/<int:pk>", ProfileView.as_view(), name="profile"),
path("stats/", StatsListView.as_view(), name="stats"),
path("stats/<int:pk>", StatsDetailView.as_view(), name="stats"),
path("chat/", chat, name="chat"),
]
if settings.DEBUG:
......
{% extends "hkis/layout.html" %}
{% load static bootstrap4 %}
{% block title %}Chat{% endblock %}
{% block container %}
<iframe src="https://kiwi.freenode.net/?nick={% if user.username %}{{ user.username }}{% else %}hackinscience?{% endif %}#hackinscience" style="border:0; width:100%; height:450px;"></iframe>
{% endblock %}
......@@ -19,6 +19,9 @@
<li class="nav-item">
<a class="nav-link" href="{% url 'exercises' %}">Exercises</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{% url 'chat' %}">Chat</a>
</li>
<li class ="nav-item">
<a class="nav-link" href="{% url 'profile' user.id %}">Profile</a>
</li>
......
......@@ -24,6 +24,10 @@ def index(request):
return render(request, "hkis/index.html")
def chat(request):
return render(request, "hkis/chat.html")
def about(request):
return render(request, "hkis/about.html")
......
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