Commit f2a7bd28 authored by Daniel W Bond's avatar Daniel W Bond

replaced isbn template tag filtering with get_title_or_isbn, which refers to...

replaced isbn template tag filtering with get_title_or_isbn, which refers to saved isbn metadata, rather than making a new API call with each page request
parent ae3a6da4
......@@ -214,7 +214,7 @@
{% for lookout in lookouts %}
<tr>
<td class="text-center"><h4>{{ lookout.isbn }}</h4></td>
<td class="text-center"><h4><a href="{{ lookout.get_absolute_url }}">{{ lookout.isbn|isbn_name|title }}<a/></h4></td>
<td class="text-center"><h4><a href="{{ lookout.get_absolute_url }}">{{ lookout.get_title_or_isbn }}<a/></h4></td>
<td class="text-center"><h4><a href="{% url 'delete_lookout' lookout.slug %}"><span class="label label-danger">Delete</span></a></h4></td>
{% endfor %}
</tbody>
......
......@@ -12,7 +12,7 @@ SRCT Bookshare &bull; Delete Lookout
<div class="row text-center">
<form action="" method="post">{% csrf_token %}
<h3>Are you sure you want to delete your lookout for <em>{{ lookout.isbn|isbn_name|title }}</em>?</h3>
<h3>Are you sure you want to delete your lookout for <em>{{ lookout.get_title_or_isbn }}</em>?</h3>
<input type="submit" value="Confirm" class="btn btn-danger btn-sm" />
<input type="cancel" value="Never Mind" class="btn btn-default btn-sm" onclick="history.back()"/>
</form>
......
......@@ -3,7 +3,7 @@
{% load trades_extras %}
{% block title %}
SRCT Bookshare &bull; Lookouts &bull; {{ lookout.isbn|isbn_name|title }}
SRCT Bookshare &bull; Lookouts &bull; {{ lookout.get_title_or_isbn }}
{% endblock title %}
{% block content %}
......@@ -11,7 +11,7 @@ SRCT Bookshare &bull; Lookouts &bull; {{ lookout.isbn|isbn_name|title }}
<div class="row">
<div class="col-sm-12 text-center">
<h1><strong>SRCT</strong>&#8203;BOOKSHARE</h1>
<p class="lead"><strong>Your lookout for <em>{{ lookout.isbn|isbn_name|title }}</em>.</strong></p>
<p class="lead"><strong>Your lookout for <em>{{ lookout.get_title_or_isbn }}</em>.</strong></p>
<a href="{% url 'delete_lookout' lookout.slug %}"><button type="button" class="btn btn-danger btn-xs">Delete this Lookout</button></a>
</div>
</div>
......
......@@ -56,7 +56,7 @@ SRCT Bookshare &bull; Homepage
{% for lookout in lookouts %}
<legend><i class="fa fa-book"></i>
<a href="{{ lookout.get_absolute_url }}">{{ lookout.isbn|isbn_name|title }}</a>
<a href="{{ lookout.get_absolute_url }}">{{ lookout.get_title_or_isbn }}</a>
</legend>
<div class="row">
{% for listing in lookout.get_listings %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment