forked from CGM_Public/pretix_original
Added an global index page
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
from django.conf.urls import include, url
|
||||
from django.views.generic import TemplateView
|
||||
|
||||
from pretix.presale.urls import (
|
||||
event_patterns, locale_patterns, organizer_patterns,
|
||||
@@ -8,7 +9,8 @@ from pretix.urls import common_patterns
|
||||
presale_patterns_main = [
|
||||
url(r'', include(locale_patterns + [
|
||||
url(r'^(?P<organizer>[^/]+)/(?P<event>[^/]+)/', include(event_patterns)),
|
||||
url(r'^(?P<organizer>[^/]+)/', include(organizer_patterns))
|
||||
url(r'^(?P<organizer>[^/]+)/', include(organizer_patterns)),
|
||||
url(r'^$', TemplateView.as_view(template_name='pretixpresale/index.html'))
|
||||
], namespace='presale'))
|
||||
]
|
||||
|
||||
|
||||
30
src/pretix/presale/templates/pretixpresale/index.html
Normal file
30
src/pretix/presale/templates/pretixpresale/index.html
Normal file
@@ -0,0 +1,30 @@
|
||||
{% load i18n %}
|
||||
{% load compress %}
|
||||
{% load staticfiles %}
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>{{ settings.PRETIX_INSTANCE_NAME }}</title>
|
||||
{% compress css %}
|
||||
<link rel="stylesheet" type="text/less" href="{% static "pretixpresale/less/index.less" %}"/>
|
||||
{% endcompress %}
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<img src="{% static "pretixbase/img/pretix-logo.svg" %}" class="logo"/>
|
||||
|
||||
<h1>{% trans "Hello!" %}</h1>
|
||||
<p>
|
||||
{% with "href='http://pretix.eu'" as a_attr %}
|
||||
{% blocktrans trimmed %}
|
||||
This is a ticket presale system powered by <a {{ a_attr }}>pretix</a>.
|
||||
{% endblocktrans %}
|
||||
{% endwith %}
|
||||
</p>
|
||||
<p>
|
||||
{% trans "There is nothing to see here yet." %}
|
||||
</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
28
src/static/pretixpresale/less/index.less
Normal file
28
src/static/pretixpresale/less/index.less
Normal file
@@ -0,0 +1,28 @@
|
||||
@import "../../bootstrap/less/bootstrap.less";
|
||||
@import "../../fontawesome/less/font-awesome.less";
|
||||
@import "../../pretixbase/less/colors.less";
|
||||
|
||||
@fa-font-path: "../../fontawesome/fonts";
|
||||
|
||||
body {
|
||||
background: #ececec;
|
||||
text-align: center;
|
||||
padding: 50px 0;
|
||||
}
|
||||
|
||||
.big-rotating-icon {
|
||||
margin-top: 50px;
|
||||
-webkit-animation: fa-spin 8s infinite linear;
|
||||
animation: fa-spin 8s infinite linear;
|
||||
font-size: 200px;
|
||||
color: @brand-primary;
|
||||
}
|
||||
|
||||
.logo {
|
||||
width: 330px;
|
||||
margin: auto;
|
||||
display: block;
|
||||
margin-top: 10%;
|
||||
height: auto;
|
||||
max-width: 100%;
|
||||
}
|
||||
Reference in New Issue
Block a user