move templates aroudn to satisfy packaging now that it's being tested

This commit is contained in:
2023-02-16 16:14:06 -06:00
parent 337e4db650
commit 1cf0364268
8 changed files with 7 additions and 1 deletions

View File

@@ -68,7 +68,7 @@ ROOT_URLCONF = 'dr_botzo.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [os.path.join(BASE_DIR, 'templates')],
'DIRS': [os.path.join(BASE_DIR, 'dr_botzo', 'templates')],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [

View File

@@ -0,0 +1,9 @@
{% extends "base.html" %}
{% block title %}403 Forbidden{% endblock title %}
{% block content %}
<p>Sorry, you do not have permission to take that action. Please contact
support with the page with the link you clicked to get here if you believe
this is in error.</p>
{% endblock content %}

View File

@@ -0,0 +1,8 @@
{% extends "base.html" %}
{% block title %}404 Not Found{% endblock title %}
{% block content %}
<p>Path <tt>{{ request_path }}</tt> not found. Please contact support with
the listed path and the page with the link you clicked to get here.</p>
{% endblock content %}

View File

@@ -0,0 +1,8 @@
{% extends "base.html" %}
{% block title %}500 Server Error{% endblock title %}
{% block content %}
<p>Please contact support with the current URL and date/time and what you
were doing that brought you to this page.</p>
{% endblock content %}

View File

@@ -0,0 +1,71 @@
{% extends 'bootstrap.html' %}
{% load bootstrap3 %}
{% load static %}
{% block bootstrap3_extra_head %}
{% block extra_meta %}{% endblock %}
<link href="{% get_static_prefix %}css/core.css" rel="stylesheet" type='text/css' />
<link href='//fonts.googleapis.com/css?family=Oxygen' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
{% block extra_media %}{% endblock %}
{% endblock %}
{% block bootstrap3_content %}
<div id="header" class="navbar navbar-fixed-top navbar-inverse">
<div class="container">
<div class="navbar-header">
{% block navbarbrand %}
<a class="navbar-brand" href="{% url 'index' %}">{{ site.domain }}</a>
{% endblock %}
<!-- .navbar-toggle is used as the toggle for collapsed navbar content -->
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="navbar-collapse collapse" aria-expanded="false" style="height: 1px;">
{% block navbar_menu %}
<ul class="nav navbar-nav">
<li><a href="{% url 'facts_index' %}">Item Sets</a></li>
<li><a href="{% url 'karma_index' %}">Karma</a></li>
<li><a href="{% url 'markov_index' %}">Markov</a></li>
<li><a href="{% url 'races_index' %}">Races</a></li>
</ul>
{% endblock %}
<div class="navbar-right">
<ul class="nav navbar-nav">
{% if user.is_authenticated %}
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
{{ user }}
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
{% if user.is_authenticated and user.is_staff %}
<li>
<a href="{% url 'admin:index' %}">
<i class="fa fa-database"></i>
Admin
</a>
</li>
{% endif %}
</ul>
</li>
{% endif %}
</ul>
</div>
</div>
</div>
</div>
{% autoescape off %}{% bootstrap_messages %}{% endautoescape %}
<div id="content">
{% block content %}(no content){% endblock %}
</div>
{% block footer %}<div id="footer" class="container">{% block extrafooter %}{% endblock %}</div>{% endblock %}
{% endblock %}

View File

@@ -0,0 +1,3 @@
{% extends 'bootstrap3/bootstrap3.html' %}
{% block bootstrap3_title %}{% block title %}{% endblock %} - {{ site.domain }}{% endblock %}

View File

@@ -0,0 +1,10 @@
{% extends 'base.html' %}
{% block title %}{{ site.domain }}{% endblock %}
{% block navbarbrand %}
<a class="navbar-brand navbar-brand-active" href="{% url 'index' %}">{{ site.domain }}</a>
{% endblock %}
{% block content %}
{% endblock content %}