diff --git a/application/templates/base.html b/application/templates/base.html
index 81635a1..20bbe2d 100644
--- a/application/templates/base.html
+++ b/application/templates/base.html
@@ -8,6 +8,8 @@
{% block title %}Seitenname{% endblock %}
+
+
@@ -31,8 +33,13 @@
Administration
- {% endif %} {% if user.is_staff %}
+ {% elif user.is_staff %}
+ Administration
+
+ {% else %}
+
+ My Page
{% endif %}
diff --git a/application/templates/post_detail.html b/application/templates/post_detail.html
index 7accf31..a01fbdf 100644
--- a/application/templates/post_detail.html
+++ b/application/templates/post_detail.html
@@ -5,13 +5,13 @@
{{ post.published_date }}
{% else %}
- Publish
+ Publish
{% endif %}
-
-
+
+ Edit
-
-
+
+ Remove
{{ post.title }}
{{ post.text|linebreaksbr }}
diff --git a/application/templates/post_edit.html b/application/templates/post_edit.html
index 94ba17d..28d8471 100644
--- a/application/templates/post_edit.html
+++ b/application/templates/post_edit.html
@@ -4,6 +4,6 @@
New post
{% endblock %}
\ No newline at end of file
diff --git a/application/templates/registration/login.html b/application/templates/registration/login.html
index 133c976..5a192c8 100644
--- a/application/templates/registration/login.html
+++ b/application/templates/registration/login.html
@@ -24,7 +24,7 @@
-
+
diff --git a/application/templates/student_page.html b/application/templates/student_page.html
new file mode 100644
index 0000000..80d0354
--- /dev/null
+++ b/application/templates/student_page.html
@@ -0,0 +1,3 @@
+{% extends "base.html" %}
+{% block content %}
+{% endblock %}
\ No newline at end of file
diff --git a/application/urls.py b/application/urls.py
index baedc80..5f082be 100644
--- a/application/urls.py
+++ b/application/urls.py
@@ -3,6 +3,7 @@ from . import views
urlpatterns = [
url(r'^$', views.post_list, name='post_list'),
+ url(r'^student/', views.student_page, name='student_page'),
url(r'^post/(?P\d+)/$', views.post_detail, name='post_detail'),
url(r'^post/new/$', views.post_new, name='post_new'),
url(r'^post/(?P\d+)/edit/$', views.post_edit, name='post_edit'),
diff --git a/application/views.py b/application/views.py
index 3048560..b7a6b16 100644
--- a/application/views.py
+++ b/application/views.py
@@ -96,3 +96,7 @@ def post_remove(request, pk):
post = get_object_or_404(Post, pk=pk)
post.delete()
return redirect('post_list')
+
+@login_required
+def student_page(request):
+ return render(request, 'student_page.html', {})