Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jochen Bauer
spn-website
Commits
f3281fa3
Commit
f3281fa3
authored
May 04, 2018
by
Hubert Denkmair
Browse files
prepare profile page
parent
eb2848a0
Changes
12
Hide whitespace changes
Inline
Side-by-side
Programmierspiel/urls.py
View file @
f3281fa3
...
...
@@ -6,9 +6,10 @@ from django.views.generic.base import RedirectView
from
core
import
views
as
core_views
urlpatterns
=
[
path
(
''
,
TemplateView
.
as_view
(
template_name
=
'index.html'
),
name
=
'home'
),
path
(
''
,
TemplateView
.
as_view
(
template_name
=
'
core/
index.html'
),
name
=
'home'
),
path
(
'admin/'
,
admin
.
site
.
urls
),
path
(
'signup/'
,
core_views
.
signup
,
name
=
'signup'
),
path
(
'profile/'
,
core_views
.
profile
,
name
=
'profile'
),
path
(
'login/'
,
auth_views
.
login
,
{
'template_name'
:
'login.html'
},
name
=
'login'
),
path
(
'logout/'
,
auth_views
.
logout
,
{
'next_page'
:
'login'
},
name
=
'logout'
),
path
(
'watch/'
,
TemplateView
.
as_view
(
template_name
=
'visualization/watch.html'
),
name
=
'watch'
),
...
...
core/templates/base.html
→
core/templates/
core/
base.html
View file @
f3281fa3
...
...
@@ -35,6 +35,7 @@
<li><a
href=
"{% url 'docs' %}"
>
API
</a></li>
<li><a
href=
"{% url 'highscore_table' %}"
>
Highscores
</a></li>
{% if user.is_authenticated %}
<li><a
href=
"{% url 'profile' %}"
>
Profile
</a></li>
<li><a
href=
"{% url 'logout' %}"
>
Logout
</a></li>
{% else %}
<li><a
href=
"{% url 'login' %}"
>
Login
</a></li>
...
...
core/templates/index.html
→
core/templates/
core/
index.html
View file @
f3281fa3
{% extends 'base.html' %}
{% extends 'core/base.html' %}
{% load static %}
{% block content %}
<h1>
Schlangenprogrammiernacht 2018
</h1>
...
...
core/templates/core/profile.html
0 → 100644
View file @
f3281fa3
{% extends 'core/base.html' %}
{% load static %}
{% block content %}
<h1>
Profile
</h1>
{% endblock %}
core/templates/login.html
View file @
f3281fa3
{% extends 'base.html' %}
{% extends '
core/
base.html' %}
{% block content %}
<h2>
Login
</h2>
...
...
core/templates/signup.html
View file @
f3281fa3
{% extends 'base.html' %}
{% extends '
core/
base.html' %}
{% block content %}
<h2>
Sign up
</h2>
...
...
core/views.py
View file @
f3281fa3
from
django.contrib.auth
import
login
,
authenticate
from
django.contrib.auth.forms
import
UserCreationForm
from
django.shortcuts
import
render
,
redirect
,
get_object_or_404
from
django.shortcuts
import
render
,
redirect
def
signup
(
request
):
...
...
@@ -16,3 +16,7 @@ def signup(request):
else
:
form
=
UserCreationForm
()
return
render
(
request
,
'signup.html'
,
{
'form'
:
form
})
def
profile
(
request
):
return
render
(
request
,
'core/profile.html'
)
\ No newline at end of file
docs/lua/ldoc/ldoc/html/ldoc_snake_ltp.lua
View file @
f3281fa3
return
[==[
{% extends 'base.html' %}
{% extends 'core/base.html' %}
{% load static %}
{% block earlycss %}
...
...
docs/templates/docs/docs.html
View file @
f3281fa3
{% extends 'base.html' %}
{% extends 'core/base.html' %}
{% load static %}
{% block title %}
...
...
highscore/templates/highscore/table.html
View file @
f3281fa3
{% extends 'base.html' %}
{% extends 'core/base.html' %}
{% load static %}
{% block css %}
...
...
ide/templates/ide/ide.html
View file @
f3281fa3
{% extends 'base.html' %}
{% extends '
core/
base.html' %}
{% load widget_tweaks %}
{% load static %}
...
...
visualization/templates/visualization/watch.html
View file @
f3281fa3
{% extends 'base.html' %}
{% extends 'core/base.html' %}
{% load static %}
{% block content %}
<div
id=
"stage"
class=
"fullwindow"
style=
"background-color:#00000080"
></div>
{% endblock %}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment