stop using first_ebook where it means is_free
parent
386d541acc
commit
06dcebc3be
|
@ -4,7 +4,7 @@
|
|||
{% load purchased %}
|
||||
{% load lib_acqs %}
|
||||
{% block title %}—
|
||||
{% if work.first_ebook %}
|
||||
{% if work.is_free %}
|
||||
{{ work.title }} is a Free eBook
|
||||
{% else %}
|
||||
Help us make {{ work.title }} a Free eBook!
|
||||
|
@ -416,7 +416,7 @@
|
|||
{% endif %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if work.first_ebook %}
|
||||
{% if work.is_free %}
|
||||
<h4>Downloads</h4>
|
||||
<div class="pledged-info">
|
||||
This work has been downloaded {{ work.download_count }} times via unglue.it ebook links.
|
||||
|
@ -515,7 +515,7 @@
|
|||
{% endif %}{% endif %}
|
||||
{% endif %}{% endif %}
|
||||
{% else %}
|
||||
{% if work.first_ebook %}
|
||||
{% if work.is_free %}
|
||||
<div class="btn_support">
|
||||
<a href="{% url download work_id %}" class="hijax"><span>Download</span></a>
|
||||
</div>
|
||||
|
@ -539,7 +539,7 @@
|
|||
<div class="jsmod-content">
|
||||
<ul class="social menu">
|
||||
<a href="https://www.facebook.com/sharer.php?u={{request.build_absolute_uri|urlencode:"" }}"><li class="facebook first"><span>Facebook</span></li></a>
|
||||
{% if work.first_ebook %}
|
||||
{% if work.is_free %}
|
||||
<a href="https://twitter.com/intent/tweet?url={{request.build_absolute_uri|urlencode:"" }}&text=I%27m%20enjoying%20{{ work.title|urlencode }}%2C%20a%20free%2C%20DRM%2Dfree%20ebook%2E%20You%20can%20too%21"><li class="twitter"><span>Twitter</span></li></a>
|
||||
{% else %}
|
||||
{% ifequal status 'SUCCESSFUL' %}
|
||||
|
@ -750,7 +750,7 @@
|
|||
{% endif %}
|
||||
</div>
|
||||
{% if request.user.libpref %}
|
||||
{% if work.first_ebook or work.ebookfiles %}
|
||||
{% if work.is_free or work.ebookfiles %}
|
||||
<div id="libtools">
|
||||
<p>for libraries...</p>
|
||||
<form method="POST" id="record_form" action="{% url work_marc work.id %}">
|
||||
|
|
|
@ -2923,7 +2923,7 @@ def feature(request, work_id):
|
|||
return render(request, "admins_only.html")
|
||||
else:
|
||||
work = safe_get_work(work_id)
|
||||
if work.first_ebook():
|
||||
if work.is_free:
|
||||
work.featured = now()
|
||||
work.save()
|
||||
return HttpResponseRedirect(reverse('landing', args=[] ))
|
||||
|
|
Loading…
Reference in New Issue