making license display more standards-compliant

pull/1/head
Andromeda Yelton 2012-08-15 10:05:10 -04:00
parent 28670ed01a
commit 368a3ca8ec
2 changed files with 2 additions and 3 deletions

View File

@ -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>

View File

@ -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})