2024-04-22 22:22:18 +00:00
|
|
|
# Copyright (C) 2024 by Animath
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
2024-04-27 06:57:01 +00:00
|
|
|
|
2024-04-28 09:57:25 +00:00
|
|
|
from django.contrib.auth.views import LoginView, LogoutView
|
2024-04-27 06:57:01 +00:00
|
|
|
from django.urls import path
|
2024-04-27 17:12:11 +00:00
|
|
|
from django.utils.translation import gettext_lazy as _
|
2024-04-27 21:20:15 +00:00
|
|
|
from tfjm.views import LoginRequiredTemplateView
|
2024-04-27 06:57:01 +00:00
|
|
|
|
|
|
|
app_name = 'chat'
|
|
|
|
|
|
|
|
urlpatterns = [
|
2024-04-27 21:20:15 +00:00
|
|
|
path('', LoginRequiredTemplateView.as_view(template_name="chat/chat.html",
|
|
|
|
extra_context={'title': _("Chat")}), name='chat'),
|
2024-04-28 09:57:25 +00:00
|
|
|
path('fullscreen/', LoginRequiredTemplateView.as_view(template_name="chat/fullscreen.html", login_url='chat:login'),
|
|
|
|
name='fullscreen'),
|
|
|
|
path('login/', LoginView.as_view(template_name="chat/login.html"), name='login'),
|
|
|
|
path('logout/', LogoutView.as_view(next_page='chat:fullscreen'), name='logout'),
|
2024-04-27 06:57:01 +00:00
|
|
|
]
|