Fixes links.

This commit is contained in:
Johnny 2018-10-24 22:52:33 +00:00
parent 013299a65c
commit e240b758ed

View file

@ -17,12 +17,12 @@
{% for object in object_list %}
<div class="media mb-4">
<a href="{{ object.web_detail_url }}"><img class="d-flex mr-3" src="http://placehold.jp/50x50.png" alt="" /></a>
<a href="{{ object.web_get_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.web_detail_url }}">{{ object }}</a> {% if object.subtitle %}<small class="text-muted" style="white-space:nowrap;">{{ object.subtitle }}</small>{% endif %}</h5>
<br /><a href="{{ object.web_get_delete_url }}">Delete</a>
<br /><a href="{{ object.web_get_update_url }}">Edit</a></p>
<h5 class="mt-0"><a href="{{ object.web_get_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>