Frontend hotfix
This commit is contained in:
parent
1e3c311c4a
commit
a702c35163
@ -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")),
|
||||
|
@ -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')
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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
8
templates/help.html
Normal 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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user