Fixes page titles.

This commit is contained in:
Johnny 2018-10-18 20:42:22 +00:00
parent 20379a7fff
commit 68dfaf5429
2 changed files with 6 additions and 6 deletions

View file

@ -1,7 +1,7 @@
{% extends "base.html" %}
{% block titleblock %}
Manage Characters
{{ view.page_title }}
{% endblock %}
{% block content %}
@ -12,17 +12,17 @@ Manage Characters
<div class="col">
<div class="card mt-3">
<div class="card-body">
<h1 class="card-title">Manage Characters</h1>
<h1 class="card-title">{{ view.page_title }}</h1>
<hr />
{% for object in object_list %}
<div class="media mb-4">
<a href="{{ object.get_absolute_url }}"><img class="d-flex mr-3" src="http://placehold.jp/50x50.png" alt="" /></a>
<a href="{{ object.web_detail_url }}"><img class="d-flex mr-3" src="http://placehold.jp/50x50.png" alt="" /></a>
<div class="media-body">
<p class="float-right ml-2">{{ object.db_date_created }}
<br /><a href="{% url 'character-delete' pk=object.id slug=object.name %}">Delete</a>
<br /><a href="{% url 'character-update' pk=object.id slug=object.name %}">Edit</a></p>
<h5 class="mt-0"><a href="{{ object.get_absolute_url }}">{{ object }}</a> {% if object.subtitle %}<small class="text-muted" style="white-space:nowrap;">{{ object.subtitle }}</small>{% endif %}</h5>
<h5 class="mt-0"><a href="{{ object.web_detail_url }}">{{ object }}</a> {% if object.subtitle %}<small class="text-muted" style="white-space:nowrap;">{{ object.subtitle }}</small>{% endif %}</h5>
<p>{{ object.db.desc }}</p>
</div>
</div>

View file

@ -1,7 +1,7 @@
{% extends "base.html" %}
{% block titleblock %}
Confirm Delete
{{ view.page_title }}
{% endblock %}
{% block body %}
@ -12,7 +12,7 @@ Confirm Delete
<div class="col-lg-5 offset-lg-3 col-sm-12">
<div class="card mt-3 border border-danger">
<div class="card-body">
<h1 class="card-title">Confirm Delete</h1>
<h1 class="card-title">{{ view.page_title }}</h1>
<hr />
<form method="post" action="?">
{% csrf_token %}