making license display more standards-compliant
parent
28670ed01a
commit
368a3ca8ec
|
@ -18,8 +18,7 @@
|
|||
{% endif %}
|
||||
{% endif %}
|
||||
<p>
|
||||
This work is available under a {{ ebook.rights }} license.
|
||||
{{ ebook.rights_badge }}
|
||||
<a rel="license" href="{{ work.last_campaign.license_url }}"><img alt="Creative Commons License" style="border-width:0" src="{{ ebook.rights_badge }}" /></a><br />This work is licensed under a <a rel="license" href="{{ work.last_campaign.license_url }}">{{ work.last_campaign.license }} License</a>.
|
||||
</p>
|
||||
<p>
|
||||
<a href="{{ ebook.url }}">Download.</a>
|
||||
|
|
|
@ -2035,7 +2035,7 @@ def lockss(request, work_id):
|
|||
work = models.WasWork.objects.get(was = work_id).work
|
||||
except models.WasWork.DoesNotExist:
|
||||
raise Http404
|
||||
ebook = work.ebooks().filter(unglued=True)
|
||||
ebook = work.ebooks().filter(unglued=True)[0]
|
||||
authors = list(models.Author.objects.filter(editions__work=work).all())
|
||||
|
||||
return render(request, "lockss.html", {'work':work, 'ebook':ebook, 'authors':authors})
|
Loading…
Reference in New Issue