2024-04-23 00:22:18 +02:00
|
|
|
# Copyright (C) 2024 by Animath
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
2024-04-27 08:57:01 +02:00
|
|
|
|
|
|
|
from django.contrib.auth.mixins import LoginRequiredMixin
|
2024-04-27 16:16:57 +02:00
|
|
|
from django.utils.translation import gettext_lazy as _
|
2024-04-27 08:57:01 +02:00
|
|
|
from django.views.generic import TemplateView
|
|
|
|
|
|
|
|
|
|
|
|
class ChatView(LoginRequiredMixin, TemplateView):
|
|
|
|
"""
|
|
|
|
This view is the main interface of the chat system, which is working
|
|
|
|
with Javascript and websockets.
|
|
|
|
"""
|
|
|
|
template_name = "chat/chat.html"
|
2024-04-27 16:16:57 +02:00
|
|
|
extra_context = {'title': _("Chat")}
|