feature/post-test-answers #23

Merged
s470631 merged 11 commits from feature/post-test-answers into master 2022-01-22 14:19:05 +01:00
5 changed files with 18 additions and 3 deletions
Showing only changes of commit a702c35163 - Show all commits

View File

@ -16,11 +16,12 @@ Including another URLconf
from django.contrib import admin
from django.urls import include
from django.urls import path
from .views import home, welcome
from .views import home, welcome, help
urlpatterns = [
path('', welcome, name='welcome'),
path('home', home, name='home'),
path('help', help, name='help'),
path('users/', include("users.urls")),
path('questions/', include("questions.urls")),
path('answers/', include("answers.urls")),

View File

@ -13,5 +13,10 @@ def home(request):
return render(request, 'home.html', context)
@login_required
def help(request):
return render(request, 'help.html', )
def welcome(request):
return render(request, 'welcome.html')

View File

@ -1,6 +1,6 @@
.sidenav {
height: 100%;
width: 175px;
width: 195px;
position: fixed;
z-index: 1;
top: 0;
@ -39,7 +39,7 @@
}
.main {
margin-left: 160px;
margin-left: 190px;
padding: 0px 40px;
}

View File

@ -16,6 +16,7 @@
<a href="{% url 'newTest' %}">Create test</a>
<a href="{% url 'myTests' %}">Your tests</a>
<a href="{% url 'solvedTests' %}">Solved tests</a>
<a href="{% url 'help' %}">Help</a>
<p>Categories</p>
<a href="/category/JezykPolski">Język polski</a>
<a href="/category/JezykAngielski">Język angielski</a>

8
templates/help.html Normal file
View File

@ -0,0 +1,8 @@
{% extends "base.html" %}
{% block title %}Help{% endblock %}
{% block content %}
<h1>In the future, there will be an app manual here</h1>
{% endblock %}