# 70 Tab title rest
* adds tab titles for some other pages * adds/updates translations
This commit is contained in:
parent
9e8d4fc753
commit
648e287144
@ -18,6 +18,7 @@ from konova.contexts import BaseContext
|
|||||||
from konova.decorators import any_group_check
|
from konova.decorators import any_group_check
|
||||||
from konova.forms import RemoveModalForm
|
from konova.forms import RemoveModalForm
|
||||||
from konova.models import Deadline
|
from konova.models import Deadline
|
||||||
|
from konova.sub_settings.context_settings import TAB_TITLE_IDENTIFIER
|
||||||
from news.models import ServerMessage
|
from news.models import ServerMessage
|
||||||
from konova.settings import SSO_SERVER_BASE
|
from konova.settings import SSO_SERVER_BASE
|
||||||
|
|
||||||
@ -92,6 +93,7 @@ def home_view(request: HttpRequest):
|
|||||||
"user_compensation_count": user_comps.count(),
|
"user_compensation_count": user_comps.count(),
|
||||||
"total_eco_count": eco_accs.count(),
|
"total_eco_count": eco_accs.count(),
|
||||||
"user_eco_count": user_ecco_accs.count(),
|
"user_eco_count": user_ecco_accs.count(),
|
||||||
|
TAB_TITLE_IDENTIFIER: _("Home"),
|
||||||
}
|
}
|
||||||
context = BaseContext(request, additional_context).context
|
context = BaseContext(request, additional_context).context
|
||||||
return render(request, template, context)
|
return render(request, template, context)
|
||||||
|
Binary file not shown.
@ -26,7 +26,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2022-01-20 12:25+0100\n"
|
"POT-Creation-Date: 2022-01-20 12:30+0100\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
@ -1885,7 +1885,11 @@ msgstr "{} wurde erfolgreich vom Nutzer {} geprüft! {}"
|
|||||||
msgid "missing"
|
msgid "missing"
|
||||||
msgstr "fehlt"
|
msgstr "fehlt"
|
||||||
|
|
||||||
#: konova/views.py:115
|
#: konova/views.py:96 templates/navbars/navbar.html:16
|
||||||
|
msgid "Home"
|
||||||
|
msgstr "Home"
|
||||||
|
|
||||||
|
#: konova/views.py:117
|
||||||
msgid "Deadline removed"
|
msgid "Deadline removed"
|
||||||
msgstr "Frist gelöscht"
|
msgstr "Frist gelöscht"
|
||||||
|
|
||||||
@ -1913,7 +1917,7 @@ msgstr "Ältere ..."
|
|||||||
msgid "All"
|
msgid "All"
|
||||||
msgstr "Alle"
|
msgstr "Alle"
|
||||||
|
|
||||||
#: news/templates/news/index.html:9
|
#: news/templates/news/index.html:9 news/views.py:34
|
||||||
msgid "News"
|
msgid "News"
|
||||||
msgstr "Neuigkeiten"
|
msgstr "Neuigkeiten"
|
||||||
|
|
||||||
@ -2182,10 +2186,6 @@ msgstr ""
|
|||||||
msgid "KSP"
|
msgid "KSP"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: templates/navbars/navbar.html:16
|
|
||||||
msgid "Home"
|
|
||||||
msgstr "Home"
|
|
||||||
|
|
||||||
#: templates/navbars/navbar.html:40
|
#: templates/navbars/navbar.html:40
|
||||||
msgid "More"
|
msgid "More"
|
||||||
msgstr "Mehr"
|
msgstr "Mehr"
|
||||||
@ -2300,10 +2300,18 @@ msgstr "Benachrichtigungseinstellungen ändern"
|
|||||||
msgid "Notification settings"
|
msgid "Notification settings"
|
||||||
msgstr "Benachrichtigungen"
|
msgstr "Benachrichtigungen"
|
||||||
|
|
||||||
#: user/views.py:52
|
#: user/views.py:29
|
||||||
|
msgid "User settings"
|
||||||
|
msgstr "Einstellungen"
|
||||||
|
|
||||||
|
#: user/views.py:55
|
||||||
msgid "Notifications edited"
|
msgid "Notifications edited"
|
||||||
msgstr "Benachrichtigungen bearbeitet"
|
msgstr "Benachrichtigungen bearbeitet"
|
||||||
|
|
||||||
|
#: user/views.py:67
|
||||||
|
msgid "User notifications"
|
||||||
|
msgstr "Benachrichtigungen"
|
||||||
|
|
||||||
#: venv/lib/python3.7/site-packages/bootstrap4/components.py:17
|
#: venv/lib/python3.7/site-packages/bootstrap4/components.py:17
|
||||||
#: venv/lib/python3.7/site-packages/bootstrap4/templates/bootstrap4/form_errors.html:3
|
#: venv/lib/python3.7/site-packages/bootstrap4/templates/bootstrap4/form_errors.html:3
|
||||||
#: venv/lib/python3.7/site-packages/bootstrap4/templates/bootstrap4/messages.html:4
|
#: venv/lib/python3.7/site-packages/bootstrap4/templates/bootstrap4/messages.html:4
|
||||||
|
@ -2,8 +2,10 @@ from django.contrib.auth.decorators import login_required
|
|||||||
from django.http import HttpRequest
|
from django.http import HttpRequest
|
||||||
from django.shortcuts import render
|
from django.shortcuts import render
|
||||||
from django.utils import timezone
|
from django.utils import timezone
|
||||||
|
from django.utils.translation import gettext_lazy as _
|
||||||
|
|
||||||
from konova.contexts import BaseContext
|
from konova.contexts import BaseContext
|
||||||
|
from konova.sub_settings.context_settings import TAB_TITLE_IDENTIFIER
|
||||||
from news.models import ServerMessage
|
from news.models import ServerMessage
|
||||||
|
|
||||||
|
|
||||||
@ -29,6 +31,7 @@ def index_view(request: HttpRequest):
|
|||||||
|
|
||||||
context = {
|
context = {
|
||||||
"news": news,
|
"news": news,
|
||||||
|
TAB_TITLE_IDENTIFIER: _("News"),
|
||||||
}
|
}
|
||||||
context = BaseContext(request, context).context
|
context = BaseContext(request, context).context
|
||||||
return render(request, template, context)
|
return render(request, template, context)
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
from django.contrib import messages
|
from django.contrib import messages
|
||||||
from django.contrib.auth.decorators import login_required
|
from django.contrib.auth.decorators import login_required
|
||||||
|
|
||||||
|
from konova.sub_settings.context_settings import TAB_TITLE_IDENTIFIER
|
||||||
from user.models import User
|
from user.models import User
|
||||||
from django.http import HttpRequest
|
from django.http import HttpRequest
|
||||||
from django.shortcuts import render, redirect, get_object_or_404
|
from django.shortcuts import render, redirect, get_object_or_404
|
||||||
@ -24,6 +26,7 @@ def index_view(request: HttpRequest):
|
|||||||
template = "user/index.html"
|
template = "user/index.html"
|
||||||
context = {
|
context = {
|
||||||
"user": request.user,
|
"user": request.user,
|
||||||
|
TAB_TITLE_IDENTIFIER: _("User settings"),
|
||||||
}
|
}
|
||||||
context = BaseContext(request, context).context
|
context = BaseContext(request, context).context
|
||||||
return render(request, template, context)
|
return render(request, template, context)
|
||||||
@ -61,6 +64,7 @@ def notifications_view(request: HttpRequest):
|
|||||||
context = {
|
context = {
|
||||||
"user": user,
|
"user": user,
|
||||||
"form": form,
|
"form": form,
|
||||||
|
TAB_TITLE_IDENTIFIER: _("User notifications"),
|
||||||
}
|
}
|
||||||
context = BaseContext(request, context).context
|
context = BaseContext(request, context).context
|
||||||
return render(request, template, context)
|
return render(request, template, context)
|
||||||
|
Loading…
Reference in New Issue
Block a user