# 70 Tab title rest
* adds tab titles for some other pages * adds/updates translations
This commit is contained in:
		
							parent
							
								
									7a8cafcd77
								
							
						
					
					
						commit
						79b9be5637
					
				@ -18,6 +18,7 @@ from konova.contexts import BaseContext
 | 
			
		||||
from konova.decorators import any_group_check
 | 
			
		||||
from konova.forms import RemoveModalForm
 | 
			
		||||
from konova.models import Deadline
 | 
			
		||||
from konova.sub_settings.context_settings import TAB_TITLE_IDENTIFIER
 | 
			
		||||
from news.models import ServerMessage
 | 
			
		||||
from konova.settings import SSO_SERVER_BASE
 | 
			
		||||
 | 
			
		||||
@ -92,6 +93,7 @@ def home_view(request: HttpRequest):
 | 
			
		||||
        "user_compensation_count": user_comps.count(),
 | 
			
		||||
        "total_eco_count": eco_accs.count(),
 | 
			
		||||
        "user_eco_count": user_ecco_accs.count(),
 | 
			
		||||
        TAB_TITLE_IDENTIFIER: _("Home"),
 | 
			
		||||
    }
 | 
			
		||||
    context = BaseContext(request, additional_context).context
 | 
			
		||||
    return render(request, template, context)
 | 
			
		||||
 | 
			
		||||
										
											Binary file not shown.
										
									
								
							@ -26,7 +26,7 @@ msgid ""
 | 
			
		||||
msgstr ""
 | 
			
		||||
"Project-Id-Version: PACKAGE VERSION\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"
 | 
			
		||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 | 
			
		||||
"Language-Team: LANGUAGE <LL@li.org>\n"
 | 
			
		||||
@ -1885,7 +1885,11 @@ msgstr "{} wurde erfolgreich vom Nutzer {} geprüft! {}"
 | 
			
		||||
msgid "missing"
 | 
			
		||||
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"
 | 
			
		||||
msgstr "Frist gelöscht"
 | 
			
		||||
 | 
			
		||||
@ -1913,7 +1917,7 @@ msgstr "Ältere ..."
 | 
			
		||||
msgid "All"
 | 
			
		||||
msgstr "Alle"
 | 
			
		||||
 | 
			
		||||
#: news/templates/news/index.html:9
 | 
			
		||||
#: news/templates/news/index.html:9 news/views.py:34
 | 
			
		||||
msgid "News"
 | 
			
		||||
msgstr "Neuigkeiten"
 | 
			
		||||
 | 
			
		||||
@ -2182,10 +2186,6 @@ msgstr ""
 | 
			
		||||
msgid "KSP"
 | 
			
		||||
msgstr ""
 | 
			
		||||
 | 
			
		||||
#: templates/navbars/navbar.html:16
 | 
			
		||||
msgid "Home"
 | 
			
		||||
msgstr "Home"
 | 
			
		||||
 | 
			
		||||
#: templates/navbars/navbar.html:40
 | 
			
		||||
msgid "More"
 | 
			
		||||
msgstr "Mehr"
 | 
			
		||||
@ -2300,10 +2300,18 @@ msgstr "Benachrichtigungseinstellungen ändern"
 | 
			
		||||
msgid "Notification settings"
 | 
			
		||||
msgstr "Benachrichtigungen"
 | 
			
		||||
 | 
			
		||||
#: user/views.py:52
 | 
			
		||||
#: user/views.py:29
 | 
			
		||||
msgid "User settings"
 | 
			
		||||
msgstr "Einstellungen"
 | 
			
		||||
 | 
			
		||||
#: user/views.py:55
 | 
			
		||||
msgid "Notifications edited"
 | 
			
		||||
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/templates/bootstrap4/form_errors.html:3
 | 
			
		||||
#: 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.shortcuts import render
 | 
			
		||||
from django.utils import timezone
 | 
			
		||||
from django.utils.translation import gettext_lazy as _
 | 
			
		||||
 | 
			
		||||
from konova.contexts import BaseContext
 | 
			
		||||
from konova.sub_settings.context_settings import TAB_TITLE_IDENTIFIER
 | 
			
		||||
from news.models import ServerMessage
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -29,6 +31,7 @@ def index_view(request: HttpRequest):
 | 
			
		||||
 | 
			
		||||
    context = {
 | 
			
		||||
        "news": news,
 | 
			
		||||
        TAB_TITLE_IDENTIFIER: _("News"),
 | 
			
		||||
    }
 | 
			
		||||
    context = BaseContext(request, context).context
 | 
			
		||||
    return render(request, template, context)
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,7 @@
 | 
			
		||||
from django.contrib import messages
 | 
			
		||||
from django.contrib.auth.decorators import login_required
 | 
			
		||||
 | 
			
		||||
from konova.sub_settings.context_settings import TAB_TITLE_IDENTIFIER
 | 
			
		||||
from user.models import User
 | 
			
		||||
from django.http import HttpRequest
 | 
			
		||||
from django.shortcuts import render, redirect, get_object_or_404
 | 
			
		||||
@ -24,6 +26,7 @@ def index_view(request: HttpRequest):
 | 
			
		||||
    template = "user/index.html"
 | 
			
		||||
    context = {
 | 
			
		||||
        "user": request.user,
 | 
			
		||||
        TAB_TITLE_IDENTIFIER: _("User settings"),
 | 
			
		||||
    }
 | 
			
		||||
    context = BaseContext(request, context).context
 | 
			
		||||
    return render(request, template, context)
 | 
			
		||||
@ -61,6 +64,7 @@ def notifications_view(request: HttpRequest):
 | 
			
		||||
    context = {
 | 
			
		||||
        "user": user,
 | 
			
		||||
        "form": form,
 | 
			
		||||
        TAB_TITLE_IDENTIFIER: _("User notifications"),
 | 
			
		||||
    }
 | 
			
		||||
    context = BaseContext(request, context).context
 | 
			
		||||
    return render(request, template, context)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user