Compare commits

..

7 Commits

7 changed files with 36 additions and 25 deletions

View File

@ -48,6 +48,7 @@
<nav class="LP-Menu LP-Menu--sidebar">
<ul class="LP-Menu__List">
<li class="LP-Menu__Item"><a href="/" class="LP-Link"><span class="LP-Link__Text">Home</span></a></li>
<li class="LP-Menu__Item"><a href="{% url 'codex' %}" class="LP-Link"><span class="LP-Link__Text">UrBex codex</span></a></li>
<li class="LP-Menu__Item"><a href="" class="LP-Link"><span class="LP-Link__Text">About</span></a></li>
<li class="LP-Menu__Item"><a href="" class="LP-Link"><span class="LP-Link__Text">Contact</span></a></li>
{% block additional_menu_items %}

View File

@ -1,10 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
{{text}}
</body>
</html>

View File

@ -11,6 +11,8 @@
{% block maincontent %}
{% include 'partials/welcome.html' %}
<article class="LP-TextSection">
</article>
{% include 'partials/osm_map.html' %}
<div class="LP-PlaceGrid">

View File

@ -5,6 +5,18 @@
{% block maincontent %}
{% include 'partials/welcome.html' %}
<article class="LP-TextSection">
<p class="LP-Paragraph">
You can create, view and share your favorite lost places with other
members of this site. You can upload photos, place links to your
web galleries and contribute your knowledge by tagging other places or
commenting on them. You will find detailed information on where these
locations are, how to get there and what to expect from them. This might
even include information on how to overcome security measures or where
to watch for cameras or security personnel.
</p>
<p class="LP-Paragraph">{% lorem %}</p>
</article>
<div class="LP-PlaceGrid">
<h1 class="LP-Headline LP-Headline">Our latest locations</h1>

View File

@ -1,18 +1,19 @@
<article class="LP-TextSection">
<header class="LP-TextSection__Headline">
<header class="LP-TextSection__Headline">
<h1 class="LP-Headline">Start</h1>
</header>
</header>
<div class="LP-TextSection__Text">
<p class="LP-Paragraph">Welcome
<div class="LP-TextSection__Text">
<p class="LP-Paragraph">Welcome to our Urban Exploration community catalogue,
{% if user.is_authenticated %}
{{ user.username }}
{% else %}
explorer
{% endif %}
!</p>
<p class="LP-Paragraph">{% lorem %}</p>
<p class="LP-Paragraph">{% lorem %}</p>
</div>
</article>
!
</p>
<p class="LP-Paragraph">
We strictly follow our
<a class="LP-Link" href="{% url 'codex' %}"><span class="LP-Link__Text">UrBex codex</span></a>
and expect you to do so, too.
</p>
</div>

View File

@ -8,7 +8,8 @@ from .views import (
PlaceUpdateView,
PlaceDeleteView,
PhotoAlbumCreateView,
PhotoAlbumDeleteView
PhotoAlbumDeleteView,
CodexView
)
urlpatterns = [
@ -20,5 +21,6 @@ urlpatterns = [
path('photo_album/delete/<int:pk>', PhotoAlbumDeleteView.as_view(), name='photo_album_delete'),
path('place/update/<int:pk>/', PlaceUpdateView.as_view(), name='place_edit'),
path('place/delete/<int:pk>/', PlaceDeleteView.as_view(), name='place_delete'),
path('place/', PlaceListView.as_view(), name='place_list')
path('place/', PlaceListView.as_view(), name='place_list'),
path('codex/', CodexView, name='codex')
]

View File

@ -48,3 +48,6 @@ class PhotoAlbumDeleteView(PlaceAssetDeleteView):
pk_url_kwarg = 'pk'
success_message = 'Photo Album deleted'
permission_denied_messsage = 'You do not have permissions to alter this photo album'
def CodexView(request):
return render(request, 'codex.html')