optimize id access
See https://docs.djangoproject.com/en/1.11/topics/db/optimization/#use-forei gn-key-values-directlypull/43/head
parent
f6cf56fae3
commit
b5e52effd9
|
@ -86,7 +86,7 @@ class CampaignResource(ModelResource):
|
||||||
wishlist_work_ids = []
|
wishlist_work_ids = []
|
||||||
|
|
||||||
for o in data['objects']:
|
for o in data['objects']:
|
||||||
o.data['in_wishlist'] = o.obj.work.id in wishlist_work_ids
|
o.data['in_wishlist'] = o.obj.work_id in wishlist_work_ids
|
||||||
# there's probably a better place up the chain (where the Campaign objects are directly available) to grab the status
|
# there's probably a better place up the chain (where the Campaign objects are directly available) to grab the status
|
||||||
c = models.Campaign.objects.get(id=o.data["id"])
|
c = models.Campaign.objects.get(id=o.data["id"])
|
||||||
o.data['status'] = c.status
|
o.data['status'] = c.status
|
||||||
|
|
|
@ -26,7 +26,7 @@ class ApiTests(TestCase):
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
edition = models.Edition.objects.get(pk=1)
|
edition = models.Edition.objects.get(pk=1)
|
||||||
self.work_id=edition.work.id
|
self.work_id=edition.work_id
|
||||||
campaign = models.Campaign.objects.create(
|
campaign = models.Campaign.objects.create(
|
||||||
name=edition.work.title,
|
name=edition.work.title,
|
||||||
work=edition.work,
|
work=edition.work,
|
||||||
|
@ -155,7 +155,7 @@ class FeedTests(TestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
edition = models.Edition.objects.get(pk=1)
|
edition = models.Edition.objects.get(pk=1)
|
||||||
ebook = models.Ebook.objects.create(edition=edition, url='http://example.org/', format='epub', rights='CC BY')
|
ebook = models.Ebook.objects.create(edition=edition, url='http://example.org/', format='epub', rights='CC BY')
|
||||||
self.test_work_id = edition.work.id
|
self.test_work_id = edition.work_id
|
||||||
|
|
||||||
def test_opds(self):
|
def test_opds(self):
|
||||||
r = self.client.get('/api/opds/creative_commons/')
|
r = self.client.get('/api/opds/creative_commons/')
|
||||||
|
|
|
@ -179,13 +179,13 @@ class EbookFileAdmin(ModelAdmin):
|
||||||
readonly_fields = ('file', 'edition_link', 'ebook_link', 'ebook')
|
readonly_fields = ('file', 'edition_link', 'ebook_link', 'ebook')
|
||||||
def edition_link(self, obj):
|
def edition_link(self, obj):
|
||||||
if obj.edition:
|
if obj.edition:
|
||||||
link = reverse("admin:core_edition_change", args=[obj.edition.id])
|
link = reverse("admin:core_edition_change", args=[obj.edition_id])
|
||||||
return u'<a href="%s">%s</a>' % (link,obj.edition)
|
return u'<a href="%s">%s</a>' % (link,obj.edition)
|
||||||
else:
|
else:
|
||||||
return u''
|
return u''
|
||||||
def ebook_link(self, obj):
|
def ebook_link(self, obj):
|
||||||
if obj.ebook:
|
if obj.ebook:
|
||||||
link = reverse("admin:core_ebook_change", args=[obj.ebook.id])
|
link = reverse("admin:core_ebook_change", args=[obj.ebook_id])
|
||||||
return u'<a href="%s">%s</a>' % (link,obj.ebook)
|
return u'<a href="%s">%s</a>' % (link,obj.ebook)
|
||||||
else:
|
else:
|
||||||
return u''
|
return u''
|
||||||
|
@ -206,7 +206,7 @@ class GiftAdmin(ModelAdmin):
|
||||||
search_fields = ('giver__username', 'to')
|
search_fields = ('giver__username', 'to')
|
||||||
readonly_fields = ('giver', 'acq',)
|
readonly_fields = ('giver', 'acq',)
|
||||||
def acq_admin_link(self, gift):
|
def acq_admin_link(self, gift):
|
||||||
return "<a href='/admin/core/acq/%s/'>%s</a>" % (gift.acq.id, gift.acq)
|
return "<a href='/admin/core/acq/%s/'>%s</a>" % (gift.acq_id, gift.acq)
|
||||||
acq_admin_link.allow_tags = True
|
acq_admin_link.allow_tags = True
|
||||||
|
|
||||||
class CeleryTaskAdmin(ModelAdmin):
|
class CeleryTaskAdmin(ModelAdmin):
|
||||||
|
|
|
@ -410,8 +410,8 @@ def relate_isbn(isbn, cluster_size=1):
|
||||||
if related_edition.work is None:
|
if related_edition.work is None:
|
||||||
related_edition.work = edition.work
|
related_edition.work = edition.work
|
||||||
related_edition.save()
|
related_edition.save()
|
||||||
elif related_edition.work.id != edition.work.id:
|
elif related_edition.work_id != edition.work_id:
|
||||||
logger.debug("merge_works path 1 %s %s", edition.work.id, related_edition.work.id )
|
logger.debug("merge_works path 1 %s %s", edition.work_id, related_edition.work_id )
|
||||||
merge_works(related_edition.work, edition.work)
|
merge_works(related_edition.work, edition.work)
|
||||||
if related_edition.work.editions.count()>cluster_size:
|
if related_edition.work.editions.count()>cluster_size:
|
||||||
return related_edition.work
|
return related_edition.work
|
||||||
|
@ -449,8 +449,8 @@ def add_related(isbn):
|
||||||
if related_edition.work is None:
|
if related_edition.work is None:
|
||||||
related_edition.work = work
|
related_edition.work = work
|
||||||
related_edition.save()
|
related_edition.save()
|
||||||
elif related_edition.work.id != work.id:
|
elif related_edition.work_id != work.id:
|
||||||
logger.debug("merge_works path 1 %s %s", work.id, related_edition.work.id )
|
logger.debug("merge_works path 1 %s %s", work.id, related_edition.work_id )
|
||||||
work = merge_works(work, related_edition.work)
|
work = merge_works(work, related_edition.work)
|
||||||
else:
|
else:
|
||||||
if other_editions.has_key(related_language):
|
if other_editions.has_key(related_language):
|
||||||
|
@ -460,14 +460,14 @@ def add_related(isbn):
|
||||||
|
|
||||||
# group the other language editions together
|
# group the other language editions together
|
||||||
for lang_group in other_editions.itervalues():
|
for lang_group in other_editions.itervalues():
|
||||||
logger.debug("lang_group (ed, work): %s", [(ed.id, ed.work.id) for ed in lang_group])
|
logger.debug("lang_group (ed, work): %s", [(ed.id, ed.work_id) for ed in lang_group])
|
||||||
if len(lang_group)>1:
|
if len(lang_group)>1:
|
||||||
lang_edition = lang_group[0]
|
lang_edition = lang_group[0]
|
||||||
logger.debug("lang_edition.id: %s", lang_edition.id)
|
logger.debug("lang_edition.id: %s", lang_edition.id)
|
||||||
# compute the distinct set of works to merge into lang_edition.work
|
# compute the distinct set of works to merge into lang_edition.work
|
||||||
works_to_merge = set([ed.work for ed in lang_group[1:]]) - set([lang_edition.work])
|
works_to_merge = set([ed.work for ed in lang_group[1:]]) - set([lang_edition.work])
|
||||||
for w in works_to_merge:
|
for w in works_to_merge:
|
||||||
logger.debug("merge_works path 2 %s %s", lang_edition.work.id, w.id )
|
logger.debug("merge_works path 2 %s %s", lang_edition.work_id, w.id )
|
||||||
merged_work = merge_works(lang_edition.work, w)
|
merged_work = merge_works(lang_edition.work, w)
|
||||||
models.WorkRelation.objects.get_or_create(
|
models.WorkRelation.objects.get_or_create(
|
||||||
to_work=lang_group[0].work,
|
to_work=lang_group[0].work,
|
||||||
|
@ -749,7 +749,7 @@ def load_from_yaml(yaml_url, test_mode=False):
|
||||||
for metadata in all_metadata.get_edition_list():
|
for metadata in all_metadata.get_edition_list():
|
||||||
edition = loader.load_from_pandata(metadata)
|
edition = loader.load_from_pandata(metadata)
|
||||||
loader.load_ebooks(metadata, edition, test_mode)
|
loader.load_ebooks(metadata, edition, test_mode)
|
||||||
return edition.work.id if edition else None
|
return edition.work_id if edition else None
|
||||||
|
|
||||||
def edition_for_ident(id_type, id_value):
|
def edition_for_ident(id_type, id_value):
|
||||||
#print 'returning edition for {}: {}'.format(id_type, id_value)
|
#print 'returning edition for {}: {}'.format(id_type, id_value)
|
||||||
|
@ -820,9 +820,9 @@ class BasePandataLoader(object):
|
||||||
value = value[0] if isinstance(value, list) else value
|
value = value[0] if isinstance(value, list) else value
|
||||||
try:
|
try:
|
||||||
id = models.Identifier.objects.get(type=id_code, value=value)
|
id = models.Identifier.objects.get(type=id_code, value=value)
|
||||||
if work and id.work and id.work.id is not work.id:
|
if work and id.work and id.work_id is not work.id:
|
||||||
# dangerous! merge newer into older
|
# dangerous! merge newer into older
|
||||||
if work.id < id.work.id:
|
if work.id < id.work_id:
|
||||||
merge_works(work, id.work)
|
merge_works(work, id.work)
|
||||||
else:
|
else:
|
||||||
merge_works(id.work, work)
|
merge_works(id.work, work)
|
||||||
|
|
|
@ -129,7 +129,7 @@ def add_all_isbns(isbns, work, language=None, title=None):
|
||||||
edition = bookloader.add_by_isbn(isbn, work, language=language, title=title)
|
edition = bookloader.add_by_isbn(isbn, work, language=language, title=title)
|
||||||
if edition:
|
if edition:
|
||||||
first_edition = first_edition if first_edition else edition
|
first_edition = first_edition if first_edition else edition
|
||||||
if work and (edition.work.id != work.id):
|
if work and (edition.work_id != work.id):
|
||||||
if work.created < edition.work.created:
|
if work.created < edition.work.created:
|
||||||
work = merge_works(work, edition.work)
|
work = merge_works(work, edition.work)
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -8,15 +8,15 @@ def delete_newest_ebooks(ebooks):
|
||||||
"""
|
"""
|
||||||
for ebook in sorted(ebooks, key=lambda ebook: ebook.created)[1:]:
|
for ebook in sorted(ebooks, key=lambda ebook: ebook.created)[1:]:
|
||||||
print "deleting ebook.id {}, edition.id {} work.id {}".format(ebook.id,
|
print "deleting ebook.id {}, edition.id {} work.id {}".format(ebook.id,
|
||||||
ebook.edition.id,
|
ebook.edition_id,
|
||||||
ebook.edition.work.id)
|
ebook.edition.work_id)
|
||||||
ebook.delete()
|
ebook.delete()
|
||||||
|
|
||||||
intact = ebooks[0]
|
intact = ebooks[0]
|
||||||
print "leaving undeleted: ebook.id {}, edition.id {} work.id {}".format(
|
print "leaving undeleted: ebook.id {}, edition.id {} work.id {}".format(
|
||||||
intact.id,
|
intact.id,
|
||||||
intact.edition.id,
|
intact.edition_id,
|
||||||
intact.edition.work.id
|
intact.edition.work_id
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -344,7 +344,7 @@ class Acq(models.Model):
|
||||||
'exlibris':0,
|
'exlibris':0,
|
||||||
'chapterfooter': 0,
|
'chapterfooter': 0,
|
||||||
'disclaimer':0,
|
'disclaimer':0,
|
||||||
'referenceid': '%s:%s:%s' % (self.work.id, self.user.id, self.id) if do_watermark else 'N/A',
|
'referenceid': '%s:%s:%s' % (self.work_id, self.user_id, self.id) if do_watermark else 'N/A',
|
||||||
'kf8mobi': True,
|
'kf8mobi': True,
|
||||||
'epub': True,
|
'epub': True,
|
||||||
}
|
}
|
||||||
|
@ -355,7 +355,7 @@ class Acq(models.Model):
|
||||||
return self.watermarked
|
return self.watermarked
|
||||||
|
|
||||||
def _hash(self):
|
def _hash(self):
|
||||||
return hashlib.md5('%s:%s:%s:%s'%(settings.SOCIAL_AUTH_TWITTER_SECRET, self.user.id, self.work.id, self.created)).hexdigest()
|
return hashlib.md5('%s:%s:%s:%s'%(settings.SOCIAL_AUTH_TWITTER_SECRET, self.user_id, self.work_id, self.created)).hexdigest()
|
||||||
|
|
||||||
def expire_in(self, delta):
|
def expire_in(self, delta):
|
||||||
self.expires = (now() + delta) if delta else now()
|
self.expires = (now() + delta) if delta else now()
|
||||||
|
@ -1080,7 +1080,7 @@ class Campaign(models.Model):
|
||||||
format=format,
|
format=format,
|
||||||
rights=self.license,
|
rights=self.license,
|
||||||
provider="Unglue.it",
|
provider="Unglue.it",
|
||||||
url=settings.BASE_URL_SECURE + reverse('download_campaign', args=[self.work.id, format]),
|
url=settings.BASE_URL_SECURE + reverse('download_campaign', args=[self.work_id, format]),
|
||||||
version='unglued',
|
version='unglued',
|
||||||
)
|
)
|
||||||
old_ebooks = Ebook.objects.exclude(pk=ebook.pk).filter(
|
old_ebooks = Ebook.objects.exclude(pk=ebook.pk).filter(
|
||||||
|
@ -1105,7 +1105,7 @@ class Campaign(models.Model):
|
||||||
'exlibris':0,
|
'exlibris':0,
|
||||||
'chapterfooter':0,
|
'chapterfooter':0,
|
||||||
'disclaimer':0,
|
'disclaimer':0,
|
||||||
'referenceid': '%s:%s:%s' % (self.work.id, self.id, self.license),
|
'referenceid': '%s:%s:%s' % (self.work_id, self.id, self.license),
|
||||||
'kf8mobi': True,
|
'kf8mobi': True,
|
||||||
'epub': True,
|
'epub': True,
|
||||||
}
|
}
|
||||||
|
|
|
@ -82,11 +82,11 @@ class Identifier(models.Model):
|
||||||
identifier = Identifier.objects.create(type=type, value=value, work=work)
|
identifier = Identifier.objects.create(type=type, value=value, work=work)
|
||||||
else:
|
else:
|
||||||
identifier = Identifier.objects.create(type=type, value=value, work=work, edition=edition)
|
identifier = Identifier.objects.create(type=type, value=value, work=work, edition=edition)
|
||||||
if identifier.work.id != work.id:
|
if identifier.work_id != work.id:
|
||||||
identifier.work = work
|
identifier.work = work
|
||||||
identifier.save()
|
identifier.save()
|
||||||
if identifier.edition and edition:
|
if identifier.edition and edition:
|
||||||
if identifier.edition.id != edition.id:
|
if identifier.edition_id != edition.id:
|
||||||
identifier.edition = edition
|
identifier.edition = edition
|
||||||
identifier.save()
|
identifier.save()
|
||||||
others = Identifier.objects.filter(type=type, work=work, edition=edition).exclude(value=value)
|
others = Identifier.objects.filter(type=type, work=work, edition=edition).exclude(value=value)
|
||||||
|
@ -961,7 +961,7 @@ class Edition(models.Model):
|
||||||
return self.ebooks.filter(active=True)
|
return self.ebooks.filter(active=True)
|
||||||
|
|
||||||
def download_via_url(self):
|
def download_via_url(self):
|
||||||
return settings.BASE_URL_SECURE + reverse('download', args=[self.work.id])
|
return settings.BASE_URL_SECURE + reverse('download', args=[self.work_id])
|
||||||
|
|
||||||
def authnames(self):
|
def authnames(self):
|
||||||
return [auth.last_name_first for auth in self.authors.all()]
|
return [auth.last_name_first for auth in self.authors.all()]
|
||||||
|
|
|
@ -107,8 +107,8 @@ from django_comments.signals import comment_was_posted
|
||||||
|
|
||||||
def notify_comment(comment, request, **kwargs):
|
def notify_comment(comment, request, **kwargs):
|
||||||
logger.info('comment %s notifying' % comment.pk)
|
logger.info('comment %s notifying' % comment.pk)
|
||||||
other_commenters = User.objects.filter(comment_comments__content_type=comment.content_type, comment_comments__object_pk=comment.object_pk).distinct().exclude(id=comment.user.id)
|
other_commenters = User.objects.filter(comment_comments__content_type=comment.content_type, comment_comments__object_pk=comment.object_pk).distinct().exclude(id=comment.user_id)
|
||||||
all_wishers = comment.content_object.wished_by().exclude(id=comment.user.id)
|
all_wishers = comment.content_object.wished_by().exclude(id=comment.user_id)
|
||||||
other_wishers = all_wishers.exclude(id__in=other_commenters)
|
other_wishers = all_wishers.exclude(id__in=other_commenters)
|
||||||
domain = Site.objects.get_current().domain
|
domain = Site.objects.get_current().domain
|
||||||
if comment.content_object.last_campaign() and comment.user in comment.content_object.last_campaign().managers.all():
|
if comment.content_object.last_campaign() and comment.user in comment.content_object.last_campaign().managers.all():
|
||||||
|
@ -177,7 +177,7 @@ def handle_transaction_charged(sender,transaction=None, **kwargs):
|
||||||
if transaction.offer.license == LIBRARY:
|
if transaction.offer.license == LIBRARY:
|
||||||
library = Library.objects.get(id=transaction.extra['library_id'])
|
library = Library.objects.get(id=transaction.extra['library_id'])
|
||||||
new_acq = Acq.objects.create(user=library.user,work=transaction.campaign.work,license= LIBRARY)
|
new_acq = Acq.objects.create(user=library.user,work=transaction.campaign.work,license= LIBRARY)
|
||||||
if transaction.user.id != library.user.id: # don't put it on reserve if purchased by the library
|
if transaction.user_id != library.user_id: # don't put it on reserve if purchased by the library
|
||||||
reserve_acq = Acq.objects.create(user=transaction.user,work=transaction.campaign.work,license= RESERVE, lib_acq = new_acq)
|
reserve_acq = Acq.objects.create(user=transaction.user,work=transaction.campaign.work,license= RESERVE, lib_acq = new_acq)
|
||||||
reserve_acq.expire_in(datetime.timedelta(hours=2))
|
reserve_acq.expire_in(datetime.timedelta(hours=2))
|
||||||
copies = int(transaction.extra.get('copies',1))
|
copies = int(transaction.extra.get('copies',1))
|
||||||
|
|
|
@ -230,7 +230,7 @@ class BookLoaderTests(TestCase):
|
||||||
back_point = True
|
back_point = True
|
||||||
to_works = [wr.to_work for wr in edition.work.works_related_from.all()]
|
to_works = [wr.to_work for wr in edition.work.works_related_from.all()]
|
||||||
for to_work in to_works:
|
for to_work in to_works:
|
||||||
if edition.work.id not in [wr1.from_work.id for wr1 in to_work.works_related_to.all()]:
|
if edition.work_id not in [wr1.from_work.id for wr1 in to_work.works_related_to.all()]:
|
||||||
back_point = False
|
back_point = False
|
||||||
break
|
break
|
||||||
self.assertTrue(back_point)
|
self.assertTrue(back_point)
|
||||||
|
|
|
@ -154,7 +154,7 @@ class EditionForm(forms.ModelForm):
|
||||||
if id_value:
|
if id_value:
|
||||||
identifier = Identifier.objects.filter(type=id_type, value=id_value)
|
identifier = Identifier.objects.filter(type=id_type, value=id_value)
|
||||||
if identifier:
|
if identifier:
|
||||||
err_msg = "{} is a duplicate for work #{}.".format(identifier[0], identifier[0].work.id)
|
err_msg = "{} is a duplicate for work #{}.".format(identifier[0], identifier[0].work_id)
|
||||||
self.add_error('id_value', forms.ValidationError(err_msg))
|
self.add_error('id_value', forms.ValidationError(err_msg))
|
||||||
try:
|
try:
|
||||||
self.cleaned_data['value'] = identifier_cleaner(id_type)(id_value)
|
self.cleaned_data['value'] = identifier_cleaner(id_type)(id_value)
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
{% for ebook in work.ebooks_all %}
|
{% for ebook in work.ebooks_all %}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ ebook.url }}">{{ ebook.format }}, {{ ebook.rights }}</a>, created {{ ebook.created }}{% if ebook.user %},
|
<a href="{{ ebook.url }}">{{ ebook.format }}, {{ ebook.rights }}</a>, created {{ ebook.created }}{% if ebook.user %},
|
||||||
by <a href="{% url 'supporter' ebook.user.id %}">{{ ebook.user }}</a>{% endif %}.
|
by <a href="{% url 'supporter' ebook.user_id %}">{{ ebook.user }}</a>{% endif %}.
|
||||||
{% if ebook.filesize %}{{ ebook.filesize }}{% else %}??{% endif %}B
|
{% if ebook.filesize %}{{ ebook.filesize }}{% else %}??{% endif %}B
|
||||||
{% if ebook.version_label %}{{ ebook.version }}{% endif %}
|
{% if ebook.version_label %}{{ ebook.version }}{% endif %}
|
||||||
{% if ebook.active %}<input type="submit" name="deactivate_ebook_{{ ebook.id }}" value="deactivate" class="deletebutton" title="deactivate ebook" />{% else %}<input type="submit" name="activate_ebook_{{ ebook.id }}" value="activate" class="deletebutton" title="activate ebook" />{% endif %}
|
{% if ebook.active %}<input type="submit" name="deactivate_ebook_{{ ebook.id }}" value="deactivate" class="deletebutton" title="deactivate ebook" />{% else %}<input type="submit" name="activate_ebook_{{ ebook.id }}" value="activate" class="deletebutton" title="activate ebook" />{% endif %}
|
||||||
|
|
|
@ -59,7 +59,7 @@ ul.fancytree-container {
|
||||||
|
|
||||||
// perform action
|
// perform action
|
||||||
{% if edition.work %}
|
{% if edition.work %}
|
||||||
jQuery.post('{% url 'kw_edit' edition.work.id %}', {'remove_kw': kw, 'csrfmiddlewaretoken': '{{ csrf_token }}' }, function(data) {
|
jQuery.post('{% url 'kw_edit' edition.work_id %}', {'remove_kw': kw, 'csrfmiddlewaretoken': '{{ csrf_token }}' }, function(data) {
|
||||||
li.html('kw removed');
|
li.html('kw removed');
|
||||||
});
|
});
|
||||||
{% else %}
|
{% else %}
|
||||||
|
@ -88,7 +88,7 @@ ul.fancytree-container {
|
||||||
{% block doccontent %}
|
{% block doccontent %}
|
||||||
{% if admin %}
|
{% if admin %}
|
||||||
{% if edition.pk %}
|
{% if edition.pk %}
|
||||||
<h2>Edit Edition for <a href="{% url 'work' edition.work.id %}">{{ edition.work.title }}</a></h2>
|
<h2>Edit Edition for <a href="{% url 'work' edition.work_id %}">{{ edition.work.title }}</a></h2>
|
||||||
{% else %}
|
{% else %}
|
||||||
<h2>Create New Edition</h2>
|
<h2>Create New Edition</h2>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -225,20 +225,20 @@ ul.fancytree-container {
|
||||||
|
|
||||||
<h2>More Edition Management</h2>
|
<h2>More Edition Management</h2>
|
||||||
|
|
||||||
<div><a href="{% url 'merge' edition.work.id %}">Merge other works into this one</a></div>
|
<div><a href="{% url 'merge' edition.work_id %}">Merge other works into this one</a></div>
|
||||||
<div><a href="{% url 'work_editions' edition.work.id %}">Remove editions from this work</a></div>
|
<div><a href="{% url 'work_editions' edition.work_id %}">Remove editions from this work</a></div>
|
||||||
{% if edition.id %}
|
{% if edition.id %}
|
||||||
<div><a href="{% url 'manage_ebooks' edition.id %}">Add ebooks for this edition</a></div>
|
<div><a href="{% url 'manage_ebooks' edition.id %}">Add ebooks for this edition</a></div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if request.user.is_staff %}
|
{% if request.user.is_staff %}
|
||||||
<div><a href="{% url 'feature' edition.work.id %}">Feature this work today</a></div>
|
<div><a href="{% url 'feature' edition.work_id %}">Feature this work today</a></div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<br />
|
<br />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
{% if edition.work %}
|
{% if edition.work %}
|
||||||
<h2><a href="{% url 'work' edition.work.id %}">{{ edition.work.title }}</a> was added to Unglue.it on {{ edition.work.created }}</h2>
|
<h2><a href="{% url 'work' edition.work_id %}">{{ edition.work.title }}</a> was added to Unglue.it on {{ edition.work.created }}</h2>
|
||||||
{% include 'edition_display.html' %}
|
{% include 'edition_display.html' %}
|
||||||
<div class="launch_top pale">
|
<div class="launch_top pale">
|
||||||
Are you the author or other rightsholder for this work?
|
Are you the author or other rightsholder for this work?
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
{% block doccontent %}
|
{% block doccontent %}
|
||||||
<div class="work_campaigns">
|
<div class="work_campaigns">
|
||||||
<b>Title</b>: <a href="{% url 'work' edition.work.id %}">{{ edition.title}}</a><br />
|
<b>Title</b>: <a href="{% url 'work' edition.work_id %}">{{ edition.title}}</a><br />
|
||||||
<b>Publisher</b> : {{ edition.publisher_name }}<br />
|
<b>Publisher</b> : {{ edition.publisher_name }}<br />
|
||||||
<b>Authors</b>:
|
<b>Authors</b>:
|
||||||
<ul>
|
<ul>
|
||||||
|
@ -93,7 +93,7 @@ For ePUB files, use the <a href=https://code.google.com/p/epubcheck/">epubcheck<
|
||||||
|
|
||||||
<h2>More Edition Management</h2>
|
<h2>More Edition Management</h2>
|
||||||
|
|
||||||
<div><a href="{% url 'new_edition' edition.work.id edition.id %}">Edit this edition</a></div>
|
<div><a href="{% url 'new_edition' edition.work_id edition.id %}">Edit this edition</a></div>
|
||||||
{% if edition.work.last_campaign %}
|
{% if edition.work.last_campaign %}
|
||||||
<div><a href="{% url 'manage_campaign' edition.work.last_campaign.id %}">Manage this campaign</a></div>
|
<div><a href="{% url 'manage_campaign' edition.work.last_campaign.id %}">Manage this campaign</a></div>
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
<div class="agate-info">
|
<div class="agate-info">
|
||||||
<p>© {{ campaign.work.preferred_edition.publication_date }} by {{ campaign.work.authors_short }}</p>
|
<p>© {{ campaign.work.preferred_edition.publication_date }} by {{ campaign.work.authors_short }}</p>
|
||||||
<p>ISBN: {{ campaign.work.preferred_edition.isbn_13 }} .</p>
|
<p>ISBN: {{ campaign.work.preferred_edition.isbn_13 }} .</p>
|
||||||
<p>URI: <a href="https://unglue.it/work/{{ campaign.work.id }}/">https://unglue.it/work/{{ campaign.work.id }}/</a> (this work).</p>
|
<p>URI: <a href="https://unglue.it/work/{{ campaign.work_id }}/">https://unglue.it/work/{{ campaign.work_id }}/</a> (this work).</p>
|
||||||
<p><img src="images/unglueitlogo.png" alt="unglue.it logo" /></p>
|
<p><img src="images/unglueitlogo.png" alt="unglue.it logo" /></p>
|
||||||
<p>
|
<p>
|
||||||
This <i>unglued</i> edition is distributed under the terms of the Creative Commons {{ campaign.license }} license. To view a copy of this license, visit <a href="{{ campaign.license_url }}">{{ campaign.license_url }}</a>.
|
This <i>unglued</i> edition is distributed under the terms of the Creative Commons {{ campaign.license }} license. To view a copy of this license, visit <a href="{{ campaign.license_url }}">{{ campaign.license_url }}</a>.
|
||||||
|
@ -97,7 +97,7 @@
|
||||||
<p>
|
<p>
|
||||||
If you're reading this book on an internet-connected device, you can also share it with your friends:
|
If you're reading this book on an internet-connected device, you can also share it with your friends:
|
||||||
<ul>
|
<ul>
|
||||||
{% url 'work' campaign.work.id as work_url %}
|
{% url 'work' campaign.work_id as work_url %}
|
||||||
<a href="mailto:?to=&subject=I%27m%20enjoying%20{{ campaign.work.title|urlencode }}%2C%20a%20free%2C%20DRM%2Dfree%20ebook%2E%20You%20can%20too%21&body=You%20can%20download%20it%20from%20Unglue%2Eit%20here%3A%20https://unglue.it{{ work_url|urlencode:"" }}%20%2E"><li>Email it</li></a>
|
<a href="mailto:?to=&subject=I%27m%20enjoying%20{{ campaign.work.title|urlencode }}%2C%20a%20free%2C%20DRM%2Dfree%20ebook%2E%20You%20can%20too%21&body=You%20can%20download%20it%20from%20Unglue%2Eit%20here%3A%20https://unglue.it{{ work_url|urlencode:"" }}%20%2E"><li>Email it</li></a>
|
||||||
<a href="https://twitter.com/intent/tweet?url=https://unglue.it{{ work_url|urlencode:"" }}&text=I%27m%20enjoying%20{{ campaign.work.title|urlencode:"" }}%2C%20a%20free%2C%20DRM%2Dfree%20ebook%2E%20You%20can%20too%21"><li>Tweet it</li></a>
|
<a href="https://twitter.com/intent/tweet?url=https://unglue.it{{ work_url|urlencode:"" }}&text=I%27m%20enjoying%20{{ campaign.work.title|urlencode:"" }}%2C%20a%20free%2C%20DRM%2Dfree%20ebook%2E%20You%20can%20too%21"><li>Tweet it</li></a>
|
||||||
<a href="https://www.facebook.com/sharer.php?u=https://unglue.it{{ work_url|urlencode:"" }}"><li>Share it on Facebook</li></a>
|
<a href="https://www.facebook.com/sharer.php?u=https://unglue.it{{ work_url|urlencode:"" }}"><li>Share it on Facebook</li></a>
|
||||||
|
|
|
@ -238,7 +238,7 @@ function put_un_in_cookie2(){
|
||||||
{% elif object.campaign.type == 3 %}
|
{% elif object.campaign.type == 3 %}
|
||||||
supported
|
supported
|
||||||
{% endif %}<br />
|
{% endif %}<br />
|
||||||
<a class="user-book-name" href="{% url 'work' object.campaign.work.id %}">{{ object.campaign.work.title }}</a>
|
<a class="user-book-name" href="{% url 'work' object.campaign.work_id %}">{{ object.campaign.work.title }}</a>
|
||||||
</span>
|
</span>
|
||||||
{% else %}
|
{% else %}
|
||||||
<span class="user-avatar">
|
<span class="user-avatar">
|
||||||
|
@ -247,7 +247,7 @@ function put_un_in_cookie2(){
|
||||||
<span class="user-book-info">
|
<span class="user-book-info">
|
||||||
Anonymous User<br />
|
Anonymous User<br />
|
||||||
supported <br />
|
supported <br />
|
||||||
<a class="user-book-name" href="{% url 'work' object.campaign.work.id %}">{{ object.campaign.work.title }}</a>
|
<a class="user-book-name" href="{% url 'work' object.campaign.work_id %}">{{ object.campaign.work.title }}</a>
|
||||||
</span>
|
</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% elif event.2 == "comment" %}
|
{% elif event.2 == "comment" %}
|
||||||
|
@ -266,7 +266,7 @@ function put_un_in_cookie2(){
|
||||||
<span class="user-book-info">
|
<span class="user-book-info">
|
||||||
<a href="{% url 'supporter' object.wishlist.user.username %}">{{ object.wishlist.user.username }}</a><br />
|
<a href="{% url 'supporter' object.wishlist.user.username %}">{{ object.wishlist.user.username }}</a><br />
|
||||||
faved<br />
|
faved<br />
|
||||||
<a class="user-book-name" href="{% url 'work' object.work.id %}">{{ object.work.title }}</a>
|
<a class="user-book-name" href="{% url 'work' object.work_id %}">{{ object.work.title }}</a>
|
||||||
</span>
|
</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
{% block content %}
|
{% block content %}
|
||||||
Books unglued in {{ year }} for the LOCKSS harvester to crawl.<br /><br />
|
Books unglued in {{ year }} for the LOCKSS harvester to crawl.<br /><br />
|
||||||
{% for ebook in ebooks %}
|
{% for ebook in ebooks %}
|
||||||
<a href="{% url 'lockss' ebook.work.id %}">{{ ebook.work.title }}</a><br />
|
<a href="{% url 'lockss' ebook.work_id %}">{{ ebook.work.title }}</a><br />
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|
|
@ -92,8 +92,8 @@ You can complete your last transaction by <a href="{% url 'fund' user.profile.la
|
||||||
<h2 style="margin-top:8em">Your Pledges</h2>
|
<h2 style="margin-top:8em">Your Pledges</h2>
|
||||||
<dl>
|
<dl>
|
||||||
{% for transaction in request.user.profile.pledges %}
|
{% for transaction in request.user.profile.pledges %}
|
||||||
<dt><i><a href="{% url 'work' transaction.campaign.work.id %}">{{ transaction.campaign.work.title }}</a></i>
|
<dt><i><a href="{% url 'work' transaction.campaign.work_id %}">{{ transaction.campaign.work.title }}</a></i>
|
||||||
(<a href="{% url 'pledge_modify' transaction.campaign.work.id %}">modify pledge</a>)</dt>
|
(<a href="{% url 'pledge_modify' transaction.campaign.work_id %}">modify pledge</a>)</dt>
|
||||||
<dd><div class="modify_notification">
|
<dd><div class="modify_notification">
|
||||||
{% include "trans_summary.html" %}
|
{% include "trans_summary.html" %}
|
||||||
</div></dd>
|
</div></dd>
|
||||||
|
|
|
@ -94,9 +94,9 @@ Please fix the following before launching your campaign:
|
||||||
|
|
||||||
<div class="preview_campaign">
|
<div class="preview_campaign">
|
||||||
{% ifequal campaign_status 'INITIALIZED' %}
|
{% ifequal campaign_status 'INITIALIZED' %}
|
||||||
<a href="{% url 'work_preview' campaign.work.id %}" class="manage" target="_blank">Preview Your Campaign</a>
|
<a href="{% url 'work_preview' campaign.work_id %}" class="manage" target="_blank">Preview Your Campaign</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
<a href="{% url 'work' campaign.work.id %}" class="manage" target="_blank">See Your Campaign</a>
|
<a href="{% url 'work' campaign.work_id %}" class="manage" target="_blank">See Your Campaign</a>
|
||||||
{% endifequal %}
|
{% endifequal %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -136,7 +136,7 @@ Please fix the following before launching your campaign:
|
||||||
<div class="edition_form" id="edition_{{edition.id}}">
|
<div class="edition_form" id="edition_{{edition.id}}">
|
||||||
<p> Edition {{ edition.id }}: <input type="radio" {% ifequal edition.id form.edition.value %}checked="checked" {% endifequal %}id="id_edition_{{forloop.counter}}" value="{{edition.id}}" name="edition" /><label for="id_edition_{{forloop.counter}}"> Prefer this edition </label>
|
<p> Edition {{ edition.id }}: <input type="radio" {% ifequal edition.id form.edition.value %}checked="checked" {% endifequal %}id="id_edition_{{forloop.counter}}" value="{{edition.id}}" name="edition" /><label for="id_edition_{{forloop.counter}}"> Prefer this edition </label>
|
||||||
<ul style="text-indent:1em">
|
<ul style="text-indent:1em">
|
||||||
<li style="text-indent:2.5em"><a href="{% url 'new_edition' edition.work.id edition.id %}"> Edit </a> this edition</li>
|
<li style="text-indent:2.5em"><a href="{% url 'new_edition' edition.work_id edition.id %}"> Edit </a> this edition</li>
|
||||||
{% ifnotequal campaign.type 1 %}
|
{% ifnotequal campaign.type 1 %}
|
||||||
{% if campaign.rh.can_sell %}
|
{% if campaign.rh.can_sell %}
|
||||||
{% if edition.ebook_files.all.0 %}
|
{% if edition.ebook_files.all.0 %}
|
||||||
|
@ -159,7 +159,7 @@ Please fix the following before launching your campaign:
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if campaign.work.epubfiles.0 %}
|
{% if campaign.work.epubfiles.0 %}
|
||||||
{% for ebf in campaign.work.epubfiles %}
|
{% for ebf in campaign.work.epubfiles %}
|
||||||
<p>{% if ebf.active %}<span class="yikes">ACTIVE</span> {% elif ebf.ebook.active %} MIRROR {% endif %}EPUB file: <a href="{{ebf.file.url}}">{{ebf.file}}</a> <br />created {{ebf.created}} for edition <a href="#edition_{{ebf.edition.id}}">{{ebf.edition.id}}</a> {% if ebf.asking %}(This file has had the campaign 'ask' added.){% endif %}<br />{% if ebf.active %}{% ifequal action 'mademobi' %}<span class="yikes">A MOBI file is being generated. </span> (Takes a minute or two.) {% else %}You can <a href="{% url 'makemobi' campaign.id ebf.id %}">generate a MOBI file.</a> {% endifequal %}{% endif %}</p>
|
<p>{% if ebf.active %}<span class="yikes">ACTIVE</span> {% elif ebf.ebook.active %} MIRROR {% endif %}EPUB file: <a href="{{ebf.file.url}}">{{ebf.file}}</a> <br />created {{ebf.created}} for edition <a href="#edition_{{ebf.edition_id}}">{{ebf.edition_id}}</a> {% if ebf.asking %}(This file has had the campaign 'ask' added.){% endif %}<br />{% if ebf.active %}{% ifequal action 'mademobi' %}<span class="yikes">A MOBI file is being generated. </span> (Takes a minute or two.) {% else %}You can <a href="{% url 'makemobi' campaign.id ebf.id %}">generate a MOBI file.</a> {% endifequal %}{% endif %}</p>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% if campaign.work.test_acqs.0 %}
|
{% if campaign.work.test_acqs.0 %}
|
||||||
<ul>
|
<ul>
|
||||||
|
@ -170,12 +170,12 @@ Please fix the following before launching your campaign:
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if campaign.work.mobifiles.0 %}
|
{% if campaign.work.mobifiles.0 %}
|
||||||
{% for ebf in campaign.work.mobifiles %}
|
{% for ebf in campaign.work.mobifiles %}
|
||||||
<p>{% if ebf.active %}<span class="yikes">ACTIVE</span> {% endif %}MOBI file: <a href="{{ebf.file.url}}">{{ebf.file}}</a> <br />created {{ebf.created}} for edition <a href="#edition_{{ebf.edition.id}}">{{ebf.edition.id}}</a> {% if ebf.asking %}(This file has had the campaign 'ask' added.){% endif %}</p>
|
<p>{% if ebf.active %}<span class="yikes">ACTIVE</span> {% endif %}MOBI file: <a href="{{ebf.file.url}}">{{ebf.file}}</a> <br />created {{ebf.created}} for edition <a href="#edition_{{ebf.edition_id}}">{{ebf.edition_id}}</a> {% if ebf.asking %}(This file has had the campaign 'ask' added.){% endif %}</p>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if campaign.work.pdffiles.0 %}
|
{% if campaign.work.pdffiles.0 %}
|
||||||
{% for ebf in campaign.work.pdffiles %}
|
{% for ebf in campaign.work.pdffiles %}
|
||||||
<p>{% if ebf.active %}<span class="yikes">ACTIVE</span> {% endif %}PDF file: <a href="{{ebf.file.url}}">{{ebf.file}}</a> <br />created {{ebf.created}} for edition <a href="#edition_{{ebf.edition.id}}">{{ebf.edition.id}}</a> {% if ebf.asking %}(This file has had the campaign 'ask' added.){% endif %}</p>
|
<p>{% if ebf.active %}<span class="yikes">ACTIVE</span> {% endif %}PDF file: <a href="{{ebf.file.url}}">{{ebf.file}}</a> <br />created {{ebf.created}} for edition <a href="#edition_{{ebf.edition_id}}">{{ebf.edition_id}}</a> {% if ebf.asking %}(This file has had the campaign 'ask' added.){% endif %}</p>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% ifnotequal campaign_status 'ACTIVE' %}
|
{% ifnotequal campaign_status 'ACTIVE' %}
|
||||||
|
@ -294,7 +294,7 @@ Please fix the following before launching your campaign:
|
||||||
Once the user has clicked a "Download" button or a "Read it Now" button, you have a chance for an "ask" - that's where a user can decide to also make a thank-you contribution.
|
Once the user has clicked a "Download" button or a "Read it Now" button, you have a chance for an "ask" - that's where a user can decide to also make a thank-you contribution.
|
||||||
The "ask" will be displayed to a user who has clicked a "Download" button. It's your chance to ask for their support.
|
The "ask" will be displayed to a user who has clicked a "Download" button. It's your chance to ask for their support.
|
||||||
The user can decide to make a contribution and go enter a credit card, or can scroll down to download.
|
The user can decide to make a contribution and go enter a credit card, or can scroll down to download.
|
||||||
To see your request in test mode, <a href="{% url 'download' campaign.work.id %}?testmode=1">click here</a>. </p>
|
To see your request in test mode, <a href="{% url 'download' campaign.work_id %}?testmode=1">click here</a>. </p>
|
||||||
<p>A strong ask/motivation combination:</p>
|
<p>A strong ask/motivation combination:</p>
|
||||||
{% else %}
|
{% else %}
|
||||||
<p>This will be displayed in the Campaign tab for your work. It's your main pitch to supporters/purchasers, and your chance to share your passion for this work, and to inspire readers..</p>
|
<p>This will be displayed in the Campaign tab for your work. It's your main pitch to supporters/purchasers, and your chance to share your passion for this work, and to inspire readers..</p>
|
||||||
|
@ -485,7 +485,7 @@ Please fix the following before launching your campaign:
|
||||||
<p>Before you hit launch:</p>
|
<p>Before you hit launch:</p>
|
||||||
<ul class="bullets">
|
<ul class="bullets">
|
||||||
<li>Have you proofread your campaign? (Make sure to spellcheck!)</li>
|
<li>Have you proofread your campaign? (Make sure to spellcheck!)</li>
|
||||||
<li>Have you <a href="{% url 'work_preview' campaign.work.id %}">previewed your campaign</a>? Does it look how you want it to?</li>
|
<li>Have you <a href="{% url 'work_preview' campaign.work_id %}">previewed your campaign</a>? Does it look how you want it to?</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<p>If it doesn't look exactly the way you like, or you're having any trouble with your description, we're happy to help; please <a href="{% url 'feedback' %}?page={{request.build_absolute_uri|urlencode:""}}">contact us</a>.</p>
|
<p>If it doesn't look exactly the way you like, or you're having any trouble with your description, we're happy to help; please <a href="{% url 'feedback' %}?page={{request.build_absolute_uri|urlencode:""}}">contact us</a>.</p>
|
||||||
|
@ -529,7 +529,7 @@ Please fix the following before launching your campaign:
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% ifequal campaign.type 1 %}
|
{% ifequal campaign.type 1 %}
|
||||||
<h3>Acknowledgements</h3>
|
<h3>Acknowledgements</h3>
|
||||||
<p>When you're logged in, the "Ungluers" tab on the <a href="{% url 'work' work.id %}">campaign page</a> will tell you a bit about each ungluer- when they last pledged, for example, and you can send individual messages to each ungluer. Use this tool with care! You can see who your biggest supporters are by looking at the <a href="{% url 'work_acks' campaign.work.id %}">sample acknowledgement page</a>.
|
<p>When you're logged in, the "Ungluers" tab on the <a href="{% url 'work' work.id %}">campaign page</a> will tell you a bit about each ungluer- when they last pledged, for example, and you can send individual messages to each ungluer. Use this tool with care! You can see who your biggest supporters are by looking at the <a href="{% url 'work_acks' campaign.work_id %}">sample acknowledgement page</a>.
|
||||||
After your campaign succeeds, you can used this page to generate epub code for the acknowledgements section of your unglued ebook.
|
After your campaign succeeds, you can used this page to generate epub code for the acknowledgements section of your unglued ebook.
|
||||||
</p>
|
</p>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
|
@ -31,7 +31,7 @@ onload = function(){
|
||||||
|
|
||||||
{% block doccontent %}
|
{% block doccontent %}
|
||||||
|
|
||||||
<h2>Add Ebook Links for <a href="{% url 'work' edition.work.id %}">{{ edition.work.title }}</a></h2>
|
<h2>Add Ebook Links for <a href="{% url 'work' edition.work_id %}">{{ edition.work.title }}</a></h2>
|
||||||
{% if edition.publisher %}
|
{% if edition.publisher %}
|
||||||
Publisher: <a href="{% url 'bypubname_list' edition.publisher_name.id %}">{{edition.publisher}}</a><br />
|
Publisher: <a href="{% url 'bypubname_list' edition.publisher_name.id %}">{{edition.publisher}}</a><br />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -51,10 +51,10 @@ onload = function(){
|
||||||
{% if request.user.is_staff %}
|
{% if request.user.is_staff %}
|
||||||
<h2>More Edition Management</h2>
|
<h2>More Edition Management</h2>
|
||||||
|
|
||||||
<div><a href="{% url 'merge' edition.work.id %}">Merge other works into this one</a></div>
|
<div><a href="{% url 'merge' edition.work_id %}">Merge other works into this one</a></div>
|
||||||
<div><a href="{% url 'work_editions' edition.work.id %}">Remove editions from this work</a></div>
|
<div><a href="{% url 'work_editions' edition.work_id %}">Remove editions from this work</a></div>
|
||||||
<div><a href="{% url 'feature' edition.work.id %}">Feature this work today</a></div>
|
<div><a href="{% url 'feature' edition.work_id %}">Feature this work today</a></div>
|
||||||
<div><a href="{% url 'new_edition' edition.work.id edition.id %}">Edit the edition</a></div>
|
<div><a href="{% url 'new_edition' edition.work_id edition.id %}">Edit the edition</a></div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<br />
|
<br />
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -88,7 +88,7 @@
|
||||||
<ul class="terms">
|
<ul class="terms">
|
||||||
<li>{{ ebooks.today.count }} have been added today. {% if ebooks.today.count %}They are
|
<li>{{ ebooks.today.count }} have been added today. {% if ebooks.today.count %}They are
|
||||||
<ul class="terms">{% for ebook in ebooks.today %}
|
<ul class="terms">{% for ebook in ebooks.today %}
|
||||||
<li><a href="{% url 'work' ebook.edition.work.id %}">{{ebook.edition.work.title}}</a></li>
|
<li><a href="{% url 'work' ebook.edition.work_id %}">{{ebook.edition.work.title}}</a></li>
|
||||||
{% endfor %}</ul>{% endif %}
|
{% endfor %}</ul>{% endif %}
|
||||||
</li>
|
</li>
|
||||||
<li>{{ ebooks.yesterday.count }} were added yesterday.
|
<li>{{ ebooks.yesterday.count }} were added yesterday.
|
||||||
|
@ -118,7 +118,7 @@
|
||||||
<li>{{ ebookfiles.days7.count }} have been added in the past 7 days.{% if request.user.is_staff %}
|
<li>{{ ebookfiles.days7.count }} have been added in the past 7 days.{% if request.user.is_staff %}
|
||||||
<ul class="terms">{% for ebook_file in ebookfiles.days7 %}
|
<ul class="terms">{% for ebook_file in ebookfiles.days7 %}
|
||||||
<li>{{ebook_file.edition.work.title}}: <a href="{{ebook_file.file.url}}">{{ebook_file.file}}</a> created {{ebook_file.created}} by {{ebook_file.ebook.user}}<br/>
|
<li>{{ebook_file.edition.work.title}}: <a href="{{ebook_file.file.url}}">{{ebook_file.file}}</a> created {{ebook_file.created}} by {{ebook_file.ebook.user}}<br/>
|
||||||
({% if not ebook_file.ebook.active %}in{% endif %}active) <a href="{% url 'new_edition' ebook_file.edition.work.id ebook_file.edition.id %}">edit</a>
|
({% if not ebook_file.ebook.active %}in{% endif %}active) <a href="{% url 'new_edition' ebook_file.edition.work_id ebook_file.edition_id %}">edit</a>
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}</ul>{% endif %}
|
{% endfor %}</ul>{% endif %}
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
You have borrowed {{ acq.work.title }} from {{ acq.lib_acq.user.username }}. During the borrowing period, you can download the ebook at the book's download page:
|
You have borrowed {{ acq.work.title }} from {{ acq.lib_acq.user.username }}. During the borrowing period, you can download the ebook at the book's download page:
|
||||||
https://{{ current_site.domain }}{% url 'download' acq.work.id %}
|
https://{{ current_site.domain }}{% url 'download' acq.work_id %}
|
||||||
|
|
||||||
This ebook is made available to you by {{ acq.lib_acq.user.username }} for your personal use only, and a personal license has been embedded in the ebook file. You may download as many times as you need to until {{ acq.expires }}. If you want to use the ebook after that, please consider buying a copy for yourself. Doing so will bring closer the day when this ebook is free for everyone to read.
|
This ebook is made available to you by {{ acq.lib_acq.user.username }} for your personal use only, and a personal license has been embedded in the ebook file. You may download as many times as you need to until {{ acq.expires }}. If you want to use the ebook after that, please consider buying a copy for yourself. Doing so will bring closer the day when this ebook is free for everyone to read.
|
||||||
|
|
||||||
For more information about the book, visit the book's unglue.it page at
|
For more information about the book, visit the book's unglue.it page at
|
||||||
https://{{ current_site.domain }}{% url 'work' acq.work.id %}
|
https://{{ current_site.domain }}{% url 'work' acq.work_id %}
|
||||||
|
|
||||||
Thank you again for your support.
|
Thank you again for your support.
|
||||||
|
|
||||||
|
|
|
@ -2,18 +2,18 @@
|
||||||
|
|
||||||
|
|
||||||
{% block comments_book %}
|
{% block comments_book %}
|
||||||
<a href="{% url 'work' acq.work.id %}"><img src="{{ acq.work.cover_image_small }}" alt="cover image for {{ acq.work.title }}" /></a>
|
<a href="{% url 'work' acq.work_id %}"><img src="{{ acq.work.cover_image_small }}" alt="cover image for {{ acq.work.title }}" /></a>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block comments_graphical %}
|
{% block comments_graphical %}
|
||||||
You have borrowed {{ acq.work.title }} from {{ acq.lib_acq.user.username }}. During the borrowing period, you can download the ebook at <a href="{% url 'download' acq.work.id %}">the book's download page.</a>
|
You have borrowed {{ acq.work.title }} from {{ acq.lib_acq.user.username }}. During the borrowing period, you can download the ebook at <a href="{% url 'download' acq.work_id %}">the book's download page.</a>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block comments_textual %}
|
{% block comments_textual %}
|
||||||
|
|
||||||
<p>This ebook is made available to you by {{ acq.lib_acq.user.username }} for your personal use only, and a personal license has been embedded in the ebook file. You may download as many times as you need to until {{ acq.expires }}. If you want to use the ebook after that, please consider buying a copy for yourself. Doing so will bring closer the day when this ebook is free for everyone to read.</p>
|
<p>This ebook is made available to you by {{ acq.lib_acq.user.username }} for your personal use only, and a personal license has been embedded in the ebook file. You may download as many times as you need to until {{ acq.expires }}. If you want to use the ebook after that, please consider buying a copy for yourself. Doing so will bring closer the day when this ebook is free for everyone to read.</p>
|
||||||
|
|
||||||
<p>For more information about the book, visit the <a href="{% url 'work' acq.work.id %}">book's unglue.it page</a>.
|
<p>For more information about the book, visit the <a href="{% url 'work' acq.work_id %}">book's unglue.it page</a>.
|
||||||
</p>
|
</p>
|
||||||
<p>{{ acq.lib_acq.user.username }} and the Unglue.it team
|
<p>{{ acq.lib_acq.user.username }} and the Unglue.it team
|
||||||
</p>
|
</p>
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
{{ acq.work.title }} is reserved for you from {{ acq.lib_acq.user.username }} until {{ acq.expires }}. You can borrow the ebook by downloading it from the book's download page:
|
{{ acq.work.title }} is reserved for you from {{ acq.lib_acq.user.username }} until {{ acq.expires }}. You can borrow the ebook by downloading it from the book's download page:
|
||||||
https://{{ current_site.domain }}{% url 'download' acq.work.id %}
|
https://{{ current_site.domain }}{% url 'download' acq.work_id %}
|
||||||
|
|
||||||
If you don't download the book before {{ acq.expires }}, other members of {{ acq.lib_acq.user.username }} will be able to use it instead.
|
If you don't download the book before {{ acq.expires }}, other members of {{ acq.lib_acq.user.username }} will be able to use it instead.
|
||||||
|
|
||||||
This ebook is made available to you by {{ acq.lib_acq.user.username }} for your personal use only, and a personal license will be embedded in the ebook file. If you do not download the ebook before then, the ebook may be borrowed by another {{ acq.lib_acq.user.username }} member.
|
This ebook is made available to you by {{ acq.lib_acq.user.username }} for your personal use only, and a personal license will be embedded in the ebook file. If you do not download the ebook before then, the ebook may be borrowed by another {{ acq.lib_acq.user.username }} member.
|
||||||
|
|
||||||
For more information about the book, visit the book's unglue.it page at
|
For more information about the book, visit the book's unglue.it page at
|
||||||
https://{{ current_site.domain }}{% url 'work' acq.work.id %}
|
https://{{ current_site.domain }}{% url 'work' acq.work_id %}
|
||||||
|
|
||||||
{{ acq.lib_acq.user.username }} and the Unglue.it team
|
{{ acq.lib_acq.user.username }} and the Unglue.it team
|
|
@ -2,18 +2,18 @@
|
||||||
|
|
||||||
|
|
||||||
{% block comments_book %}
|
{% block comments_book %}
|
||||||
<a href="{% url 'work' acq.work.id %}"><img src="{{ acq.work.cover_image_small }}" alt="cover image for {{ acq.work.title }}" /></a>
|
<a href="{% url 'work' acq.work_id %}"><img src="{{ acq.work.cover_image_small }}" alt="cover image for {{ acq.work.title }}" /></a>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block comments_graphical %}
|
{% block comments_graphical %}
|
||||||
{{ acq.work.title }} is reserved for you from {{ acq.lib_acq.user.username }} until {{ acq.expires }}. Until then, you can borrow the ebook at <a href="{% url 'download' acq.work.id %}">the book's download page.</a>
|
{{ acq.work.title }} is reserved for you from {{ acq.lib_acq.user.username }} until {{ acq.expires }}. Until then, you can borrow the ebook at <a href="{% url 'download' acq.work_id %}">the book's download page.</a>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block comments_textual %}
|
{% block comments_textual %}
|
||||||
|
|
||||||
<p>This ebook is made available to you by {{ acq.lib_acq.user.username }} for your personal use only, and a personal license will be embedded in the ebook file. If you do not download the ebook before then, the ebook may be borrowed by another {{ acq.lib_acq.user.username }} member.</p>
|
<p>This ebook is made available to you by {{ acq.lib_acq.user.username }} for your personal use only, and a personal license will be embedded in the ebook file. If you do not download the ebook before then, the ebook may be borrowed by another {{ acq.lib_acq.user.username }} member.</p>
|
||||||
|
|
||||||
<p>For more information about the book, visit the <a href="{% url 'work' acq.work.id %}">book's unglue.it page</a>.
|
<p>For more information about the book, visit the <a href="{% url 'work' acq.work_id %}">book's unglue.it page</a>.
|
||||||
</p>
|
</p>
|
||||||
<p>{{ acq.lib_acq.user.username }} and the Unglue.it team
|
<p>{{ acq.lib_acq.user.username }} and the Unglue.it team
|
||||||
</p>
|
</p>
|
||||||
|
|
|
@ -8,7 +8,7 @@ Pledge summary
|
||||||
We will notify you when the unglued ebook is available for you to read. If you've requested special premiums, the campaign manager, {{ transaction.campaign.rightsholder }}, will be in touch with you via email to request any information needed to deliver your premium.
|
We will notify you when the unglued ebook is available for you to read. If you've requested special premiums, the campaign manager, {{ transaction.campaign.rightsholder }}, will be in touch with you via email to request any information needed to deliver your premium.
|
||||||
|
|
||||||
If you'd like to visit the campaign page, click here:
|
If you'd like to visit the campaign page, click here:
|
||||||
https://{{ current_site.domain }}{% url 'work' transaction.campaign.work.id %}
|
https://{{ current_site.domain }}{% url 'work' transaction.campaign.work_id %}
|
||||||
|
|
||||||
Thank you again for your support.
|
Thank you again for your support.
|
||||||
|
|
||||||
|
|
|
@ -3,11 +3,11 @@
|
||||||
{% load humanize %}
|
{% load humanize %}
|
||||||
|
|
||||||
{% block comments_book %}
|
{% block comments_book %}
|
||||||
<a href="{% url 'work' transaction.campaign.work.id %}"><img src="{{ transaction.campaign.work.cover_image_small }}" alt="cover image for {{ transaction.campaign.work.title }}" /></a>
|
<a href="{% url 'work' transaction.campaign.work_id %}"><img src="{{ transaction.campaign.work.cover_image_small }}" alt="cover image for {{ transaction.campaign.work.title }}" /></a>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block comments_graphical %}
|
{% block comments_graphical %}
|
||||||
Hooray! The campaign for <a href="{% url 'work' transaction.campaign.work.id %}">{{ transaction.campaign.work.title }}</a> has succeeded. Your credit card has been charged ${{ transaction.amount|floatformat:2|intcomma }}. Thank you again for your help.
|
Hooray! The campaign for <a href="{% url 'work' transaction.campaign.work_id %}">{{ transaction.campaign.work.title }}</a> has succeeded. Your credit card has been charged ${{ transaction.amount|floatformat:2|intcomma }}. Thank you again for your help.
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block comments_textual %}
|
{% block comments_textual %}
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
</p>
|
</p>
|
||||||
<p>We will notify you when the unglued ebook is available for you to read. If you've requested special premiums, the campaign manager, {{ transaction.campaign.rightsholder }}, will be in touch with you via email to request any information needed to deliver your premium.
|
<p>We will notify you when the unglued ebook is available for you to read. If you've requested special premiums, the campaign manager, {{ transaction.campaign.rightsholder }}, will be in touch with you via email to request any information needed to deliver your premium.
|
||||||
</p>
|
</p>
|
||||||
<p>For more information, visit the <a href="{% url 'work' transaction.campaign.work.id %}">campaign page</a>.
|
<p>For more information, visit the <a href="{% url 'work' transaction.campaign.work_id %}">campaign page</a>.
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<p>Thank you again for your support.
|
<p>Thank you again for your support.
|
||||||
|
|
|
@ -11,7 +11,7 @@ Transaction summary {% endifequal %}
|
||||||
{% include "notification/pledge_summary.txt" %}
|
{% include "notification/pledge_summary.txt" %}
|
||||||
|
|
||||||
If you'd like to visit the campaign page, click here:
|
If you'd like to visit the campaign page, click here:
|
||||||
https://{{ current_site.domain }}{% url 'work' transaction.campaign.work.id %}
|
https://{{ current_site.domain }}{% url 'work' transaction.campaign.work_id %}
|
||||||
|
|
||||||
Thank you again for your support.
|
Thank you again for your support.
|
||||||
|
|
||||||
|
|
|
@ -3,11 +3,11 @@
|
||||||
{% load humanize %}
|
{% load humanize %}
|
||||||
|
|
||||||
{% block comments_book %}
|
{% block comments_book %}
|
||||||
<a href="{% url 'work' transaction.campaign.work.id %}"><img src="{{ transaction.campaign.work.cover_image_small }}" alt="cover image for {{ transaction.campaign.work.title }}" /></a>
|
<a href="{% url 'work' transaction.campaign.work_id %}"><img src="{{ transaction.campaign.work.cover_image_small }}" alt="cover image for {{ transaction.campaign.work.title }}" /></a>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block comments_graphical %}
|
{% block comments_graphical %}
|
||||||
{% ifequal transaction.campaign.type 1 %}The campaign for <a href="{% url 'work' transaction.campaign.work.id %}">{{ transaction.campaign.work.title }}</a> has succeeded. However, our attempt to charge your pledge for ${{ transaction.amount|floatformat:2|intcomma }} to your credit card failed ({{transaction.error}}). Will you help us fix that?{% else %}Our attempt to charge a purchase of ${{ transaction.amount|floatformat:2|intcomma }} to your credit card failed ({{transaction.error}}).{% endifequal %}
|
{% ifequal transaction.campaign.type 1 %}The campaign for <a href="{% url 'work' transaction.campaign.work_id %}">{{ transaction.campaign.work.title }}</a> has succeeded. However, our attempt to charge your pledge for ${{ transaction.amount|floatformat:2|intcomma }} to your credit card failed ({{transaction.error}}). Will you help us fix that?{% else %}Our attempt to charge a purchase of ${{ transaction.amount|floatformat:2|intcomma }} to your credit card failed ({{transaction.error}}).{% endifequal %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block comments_textual %}
|
{% block comments_textual %}
|
||||||
|
@ -33,7 +33,7 @@
|
||||||
Amount of purchase: {{ transaction.amount|floatformat:2|intcomma }}<br />
|
Amount of purchase: {{ transaction.amount|floatformat:2|intcomma }}<br />
|
||||||
</p>
|
</p>
|
||||||
{% endifequal %}
|
{% endifequal %}
|
||||||
<p>For more information, visit the <a href="{% url 'work' transaction.campaign.work.id %}">campaign page</a>.
|
<p>For more information, visit the <a href="{% url 'work' transaction.campaign.work_id %}">campaign page</a>.
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<p>Thank you again for your support.
|
<p>Thank you again for your support.
|
||||||
|
|
|
@ -11,7 +11,7 @@ Your new pledge summary
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
If you'd like to visit the campaign page or make changes, click here:
|
If you'd like to visit the campaign page or make changes, click here:
|
||||||
https://{{current_site.domain}}{% url 'work' transaction.campaign.work.id %}
|
https://{{current_site.domain}}{% url 'work' transaction.campaign.work_id %}
|
||||||
|
|
||||||
Thank you again for your support.
|
Thank you again for your support.
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
{% load humanize %}
|
{% load humanize %}
|
||||||
|
|
||||||
{% block comments_book %}
|
{% block comments_book %}
|
||||||
<a href="{% url 'work' transaction.campaign.work.id %}"><img src="{{ transaction.campaign.work.cover_image_small }}" alt="cover image for {{ transaction.campaign.work.title }}" /></a>
|
<a href="{% url 'work' transaction.campaign.work_id %}"><img src="{{ transaction.campaign.work.cover_image_small }}" alt="cover image for {{ transaction.campaign.work.title }}" /></a>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block comments_graphical %}
|
{% block comments_graphical %}
|
||||||
|
|
|
@ -10,7 +10,7 @@ You will also be acknowledged as follows:
|
||||||
- You will be listed in the ebook as a Bibliophile using the name "{{ transaction.extra.ack_name }}" with a link to your Unglue.it supporter page.{% endifequal %}{% endif %}{% ifequal transaction.tier 3 %}{% if transaction.extra.ack_dedication %}
|
- You will be listed in the ebook as a Bibliophile using the name "{{ transaction.extra.ack_name }}" with a link to your Unglue.it supporter page.{% endifequal %}{% endif %}{% ifequal transaction.tier 3 %}{% if transaction.extra.ack_dedication %}
|
||||||
- The following dedication will be included in the ebook:
|
- The following dedication will be included in the ebook:
|
||||||
{{ transaction.extra.ack_dedication }}{% else %}
|
{{ transaction.extra.ack_dedication }}{% else %}
|
||||||
- You were eligible to include a dedication in the unglued ebook, but did not choose to do so. If you like, you can change this at https://{{ current_site.domain }}{% url 'pledge_modify' work_id=transaction.campaign.work.id %}.
|
- You were eligible to include a dedication in the unglued ebook, but did not choose to do so. If you like, you can change this at https://{{ current_site.domain }}{% url 'pledge_modify' work_id=transaction.campaign.work_id %}.
|
||||||
{% endif %}{% endifequal %}{% else %}
|
{% endif %}{% endifequal %}{% else %}
|
||||||
Amount charged: ${{ transaction.amount|floatformat:2|intcomma }}
|
Amount charged: ${{ transaction.amount|floatformat:2|intcomma }}
|
||||||
|
|
||||||
|
|
|
@ -6,16 +6,16 @@ Pledge summary
|
||||||
|
|
||||||
You can help even more by sharing this campaign with your friends.
|
You can help even more by sharing this campaign with your friends.
|
||||||
|
|
||||||
Facebook: https://www.facebook.com/sharer.php?u=https://{{ current_site.domain }}{% url 'work' transaction.campaign.work.id %}
|
Facebook: https://www.facebook.com/sharer.php?u=https://{{ current_site.domain }}{% url 'work' transaction.campaign.work_id %}
|
||||||
|
|
||||||
Twitter: https://twitter.com/intent/tweet?url=https://{{ current_site.domain }}{% url 'work' transaction.campaign.work.id %}&text=I%27m%20ungluing%20{{ title|urlencode }}%20at%20%40unglueit.%20Join%20me%21"
|
Twitter: https://twitter.com/intent/tweet?url=https://{{ current_site.domain }}{% url 'work' transaction.campaign.work_id %}&text=I%27m%20ungluing%20{{ title|urlencode }}%20at%20%40unglueit.%20Join%20me%21"
|
||||||
|
|
||||||
You can also embed a widget for {{ transaction.campaign.work.title }} in your web site by copy/pasting the following:
|
You can also embed a widget for {{ transaction.campaign.work.title }} in your web site by copy/pasting the following:
|
||||||
<iframe src="https://{{ current_site.domain }}/api/widget/{{ transaction.campaign.work.first_isbn_13 }}/" width="152" height="325" frameborder="0"></iframe>
|
<iframe src="https://{{ current_site.domain }}/api/widget/{{ transaction.campaign.work.first_isbn_13 }}/" width="152" height="325" frameborder="0"></iframe>
|
||||||
|
|
||||||
Or the best idea: talk about it with those you love. We'll need lots of help from lots of people to make this a success.
|
Or the best idea: talk about it with those you love. We'll need lots of help from lots of people to make this a success.
|
||||||
|
|
||||||
If you want to change your pledge, just use the button at https://{{ current_site.domain }}{% url 'work' transaction.campaign.work.id %}
|
If you want to change your pledge, just use the button at https://{{ current_site.domain }}{% url 'work' transaction.campaign.work_id %}
|
||||||
|
|
||||||
If you have any problems with your pledge, don't hesitate to contact us at support@gluejar.com
|
If you have any problems with your pledge, don't hesitate to contact us at support@gluejar.com
|
||||||
|
|
||||||
|
|
|
@ -3,19 +3,19 @@
|
||||||
{% load humanize %}
|
{% load humanize %}
|
||||||
|
|
||||||
{% block comments_book %}
|
{% block comments_book %}
|
||||||
<a href="{% url 'work' transaction.campaign.work.id %}?tab=2"><img src="{{ transaction.campaign.work.cover_image_thumbnail }}" alt="cover image for {{ transaction.campaign.work.title }}" /></a>
|
<a href="{% url 'work' transaction.campaign.work_id %}?tab=2"><img src="{{ transaction.campaign.work.cover_image_thumbnail }}" alt="cover image for {{ transaction.campaign.work.title }}" /></a>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block comments_graphical %}
|
{% block comments_graphical %}
|
||||||
You've just pledged ${{ transaction.amount|floatformat:2|intcomma }} to <a href="{% url 'work' transaction.campaign.work.id %}">{{ transaction.campaign.work.title }}</a>.
|
You've just pledged ${{ transaction.amount|floatformat:2|intcomma }} to <a href="{% url 'work' transaction.campaign.work_id %}">{{ transaction.campaign.work.title }}</a>.
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block comments_textual %}
|
{% block comments_textual %}
|
||||||
<p>Thank you, {{ transaction.user.username }}!</p>
|
<p>Thank you, {{ transaction.user.username }}!</p>
|
||||||
<p>You've just pledged ${{ transaction.amount|floatformat:2|intcomma }} to <a href="{% url 'work' transaction.campaign.work.id %}">{{ transaction.campaign.work.title }}</a>. If it reaches its goal of ${{ transaction.campaign.target|intcomma }} by {{ transaction.campaign.deadline|date:"M d Y"}}, it will be unglued for all to enjoy.</p>
|
<p>You've just pledged ${{ transaction.amount|floatformat:2|intcomma }} to <a href="{% url 'work' transaction.campaign.work_id %}">{{ transaction.campaign.work.title }}</a>. If it reaches its goal of ${{ transaction.campaign.target|intcomma }} by {{ transaction.campaign.deadline|date:"M d Y"}}, it will be unglued for all to enjoy.</p>
|
||||||
<p>You can help even more by sharing this campaign with your friends!</p>
|
<p>You can help even more by sharing this campaign with your friends!</p>
|
||||||
|
|
||||||
{% url 'work' transaction.campaign.work.id as work_url %}
|
{% url 'work' transaction.campaign.work_id as work_url %}
|
||||||
{% include "notification/sharing_block.html" %}
|
{% include "notification/sharing_block.html" %}
|
||||||
|
|
||||||
<p>Thanks for being part of Unglue.it.</p>
|
<p>Thanks for being part of Unglue.it.</p>
|
||||||
|
|
|
@ -10,19 +10,19 @@ https://{{ current_site.domain }}{% url 'receive_gift' gift.acq.nonce %}
|
||||||
You can send the url yourself if there's been any problem with the email.
|
You can send the url yourself if there's been any problem with the email.
|
||||||
|
|
||||||
{% else %}If you have not already done so, download your ebook at
|
{% else %}If you have not already done so, download your ebook at
|
||||||
https://{{ current_site.domain }}{% url 'download' transaction.campaign.work.id %}
|
https://{{ current_site.domain }}{% url 'download' transaction.campaign.work_id %}
|
||||||
|
|
||||||
{% endif %}{% endifequal %}{% ifequal transaction.campaign.type 2 %}Thanks to you and other ungluers, {{ transaction.campaign.work.title }} will be eventually be released to the world in an unglued ebook edition. Thanks to your purchase, the ungluing date advanced {{ transaction.offer.days_per_copy|floatformat }}{% ifnotequal transaction.extra.copies 1 %} x {{ transaction.extra.copies }}{% endifnotequal %} days to {{ transaction.campaign.cc_date }}.
|
{% endif %}{% endifequal %}{% ifequal transaction.campaign.type 2 %}Thanks to you and other ungluers, {{ transaction.campaign.work.title }} will be eventually be released to the world in an unglued ebook edition. Thanks to your purchase, the ungluing date advanced {{ transaction.offer.days_per_copy|floatformat }}{% ifnotequal transaction.extra.copies 1 %} x {{ transaction.extra.copies }}{% endifnotequal %} days to {{ transaction.campaign.cc_date }}.
|
||||||
{% ifequal transaction.offer.license 1 %}{% if not gift %}
|
{% ifequal transaction.offer.license 1 %}{% if not gift %}
|
||||||
This ebook is licensed to you personally, and your personal license has been embedded in the ebook file. You may download as many times as you need to, but you can't make copies for the use of others until the ungluing date. You can make that date come sooner by encouraging your friends to buy a copy.
|
This ebook is licensed to you personally, and your personal license has been embedded in the ebook file. You may download as many times as you need to, but you can't make copies for the use of others until the ungluing date. You can make that date come sooner by encouraging your friends to buy a copy.
|
||||||
{% endif %}{% else %}
|
{% endif %}{% else %}
|
||||||
This ebook {% ifnotequal transaction.extra.copies 1 %}({{ transaction.extra.copies }} copies){% endifnotequal %} is licensed to your library and its license has been embedded in the ebook file. If you'd like to be the first to use it, please get your copy now at
|
This ebook {% ifnotequal transaction.extra.copies 1 %}({{ transaction.extra.copies }} copies){% endifnotequal %} is licensed to your library and its license has been embedded in the ebook file. If you'd like to be the first to use it, please get your copy now at
|
||||||
https://{{ current_site.domain }}{% url 'borrow' transaction.campaign.work.id %}
|
https://{{ current_site.domain }}{% url 'borrow' transaction.campaign.work_id %}
|
||||||
After an hour, the ebook will be available to all of your library's users on a one-user-per two weeks basis until the ungluing date, when it will be free to all. You can make that date come sooner by encouraging your friends to buy a copy.{% endifequal %}{% endifequal %}{% ifequal transaction.campaign.type 3 %}The creators of {{ transaction.campaign.work.title }} would like to thank you for showing your appreciation for making it free.{% endifequal %}
|
After an hour, the ebook will be available to all of your library's users on a one-user-per two weeks basis until the ungluing date, when it will be free to all. You can make that date come sooner by encouraging your friends to buy a copy.{% endifequal %}{% endifequal %}{% ifequal transaction.campaign.type 3 %}The creators of {{ transaction.campaign.work.title }} would like to thank you for showing your appreciation for making it free.{% endifequal %}
|
||||||
|
|
||||||
|
|
||||||
For more information about the book, visit the book's unglue.it page at
|
For more information about the book, visit the book's unglue.it page at
|
||||||
https://{{ current_site.domain }}{% url 'work' transaction.campaign.work.id %}
|
https://{{ current_site.domain }}{% url 'work' transaction.campaign.work_id %}
|
||||||
|
|
||||||
Thank you again for your support.
|
Thank you again for your support.
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
{% load humanize %}
|
{% load humanize %}
|
||||||
|
|
||||||
{% block comments_book %}
|
{% block comments_book %}
|
||||||
<a href="{% url 'work' transaction.campaign.work.id %}"><img src="{{ transaction.campaign.work.cover_image_small }}" alt="cover image for {{ transaction.campaign.work.title }}" /></a>
|
<a href="{% url 'work' transaction.campaign.work_id %}"><img src="{{ transaction.campaign.work.cover_image_small }}" alt="cover image for {{ transaction.campaign.work.title }}" /></a>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block comments_graphical %}
|
{% block comments_graphical %}
|
||||||
|
@ -31,7 +31,7 @@ https://{{ current_site.domain }}{% url 'receive_gift' gift.acq.nonce %}
|
||||||
You can send the url yourself if there's been any problem with the email.
|
You can send the url yourself if there's been any problem with the email.
|
||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
If you have not already done so, download your ebook at <a href="{% url 'download' transaction.campaign.work.id %}">the book's download page.</a>
|
If you have not already done so, download your ebook at <a href="{% url 'download' transaction.campaign.work_id %}">the book's download page.</a>
|
||||||
{% endif %}{% endifequal %}
|
{% endif %}{% endifequal %}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -43,14 +43,14 @@ If you have not already done so, download your ebook at <a href="{% url 'downloa
|
||||||
{% ifequal transaction.offer.license 1 %}{% if not gift %}
|
{% ifequal transaction.offer.license 1 %}{% if not gift %}
|
||||||
<p>This ebook is licensed to you personally, and your personal license has been embedded in the ebook file. You may download as many times as you need to, but you can't make copies for the use of others until the ungluing date. You can make that date come sooner by encouraging your friends to buy a copy.</p>
|
<p>This ebook is licensed to you personally, and your personal license has been embedded in the ebook file. You may download as many times as you need to, but you can't make copies for the use of others until the ungluing date. You can make that date come sooner by encouraging your friends to buy a copy.</p>
|
||||||
{% endif %}{% else %}
|
{% endif %}{% else %}
|
||||||
<p>This ebook {% ifnotequal transaction.extra.copies 1 %}({{ transaction.extra.copies }} copies){% endifnotequal %} is licensed to your library and its license has been embedded in the ebook file. If you'd like to be the first to use it, please <a href="{% url 'borrow' transaction.campaign.work.id %}">get your copy now</a>. After an hour, the ebook will be available to all of your library's users on a one-user-per two weeks basis until the ungluing date, when it will be free to all. You can make that date come sooner by encouraging your friends to buy a copy.</p>
|
<p>This ebook {% ifnotequal transaction.extra.copies 1 %}({{ transaction.extra.copies }} copies){% endifnotequal %} is licensed to your library and its license has been embedded in the ebook file. If you'd like to be the first to use it, please <a href="{% url 'borrow' transaction.campaign.work_id %}">get your copy now</a>. After an hour, the ebook will be available to all of your library's users on a one-user-per two weeks basis until the ungluing date, when it will be free to all. You can make that date come sooner by encouraging your friends to buy a copy.</p>
|
||||||
{% endifequal %}
|
{% endifequal %}
|
||||||
{% endifequal %}
|
{% endifequal %}
|
||||||
{% ifequal transaction.campaign.type 3 %}
|
{% ifequal transaction.campaign.type 3 %}
|
||||||
<p>The creators of <i>{{ transaction.campaign.work.title }}</i> would like to thank you for showing your appreciation for making it free.
|
<p>The creators of <i>{{ transaction.campaign.work.title }}</i> would like to thank you for showing your appreciation for making it free.
|
||||||
</p>
|
</p>
|
||||||
{% endifequal %}
|
{% endifequal %}
|
||||||
<p>For more information about the book, visit the <a href="{% url 'work' transaction.campaign.work.id %}">book's unglue.it page</a>.
|
<p>For more information about the book, visit the <a href="{% url 'work' transaction.campaign.work_id %}">book's unglue.it page</a>.
|
||||||
</p>
|
</p>
|
||||||
<p>Thank you again for your support.
|
<p>Thank you again for your support.
|
||||||
</p>
|
</p>
|
||||||
|
|
|
@ -16,7 +16,7 @@ Unglue.it is a website whose purpose is to help ebooks become free. Thanks to "{
|
||||||
|
|
||||||
|
|
||||||
For more information about the book, visit the book's unglue.it page at
|
For more information about the book, visit the book's unglue.it page at
|
||||||
https://{{ current_site.domain }}{% url 'work' gift.acq.work.id %}
|
https://{{ current_site.domain }}{% url 'work' gift.acq.work_id %}
|
||||||
|
|
||||||
We hope enjoy your new ebook, and we hope you like Unglue.it!
|
We hope enjoy your new ebook, and we hope you like Unglue.it!
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
{% load humanize %}
|
{% load humanize %}
|
||||||
|
|
||||||
{% block comments_book %}
|
{% block comments_book %}
|
||||||
<a href="{% url 'work' gift.acq.work.id %}"><img src="{{ gift.acq.work.cover_image_small }}" alt="cover image for {{ gift.acq.work.title }}" /></a>
|
<a href="{% url 'work' gift.acq.work_id %}"><img src="{{ gift.acq.work.cover_image_small }}" alt="cover image for {{ gift.acq.work.title }}" /></a>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block comments_graphical %}
|
{% block comments_graphical %}
|
||||||
|
@ -22,10 +22,10 @@ To pick up <i>{{ gift.acq.work.title }}</i>, the ebook that <a href="{% url 'sup
|
||||||
The ebook will be licensed to you personally, and your license has been embedded in the ebook file. You may download as many times as you need to, but you can't make copies for the use of others until the ungluing date. You can make that date come sooner by encouraging your friends to buy a copy.
|
The ebook will be licensed to you personally, and your license has been embedded in the ebook file. You may download as many times as you need to, but you can't make copies for the use of others until the ungluing date. You can make that date come sooner by encouraging your friends to buy a copy.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
Thanks to <a href="{% url 'supporter' gift.giver %}">{{ gift.giver }}</a> and other ungluers, <a href="{% url 'work' gift.acq.work.id %}">{{ gift.acq.work.title }}</a> will be eventually be released to the world in an unglued ebook edition.
|
Thanks to <a href="{% url 'supporter' gift.giver %}">{{ gift.giver }}</a> and other ungluers, <a href="{% url 'work' gift.acq.work_id %}">{{ gift.acq.work.title }}</a> will be eventually be released to the world in an unglued ebook edition.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
For more information about the book, visit the book's <a href="{% url 'work' gift.acq.work.id %}">unglue.it page</a>
|
For more information about the book, visit the book's <a href="{% url 'work' gift.acq.work_id %}">unglue.it page</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
|
|
|
@ -16,7 +16,7 @@ The ebook will be licensed to you personally, and the license will be embedded i
|
||||||
Unglue.it is a website whose purpose is to help ebooks become free. Thanks to "{{ gift.giver }}" and other "ungluers", "{{ gift.acq.work.title }}" will be eventually be released in an "unglued" ebook edition, i.e. free to everyone. Purchases of "{{ gift.acq.work.title }}" are helping to make that free edition financially possible.
|
Unglue.it is a website whose purpose is to help ebooks become free. Thanks to "{{ gift.giver }}" and other "ungluers", "{{ gift.acq.work.title }}" will be eventually be released in an "unglued" ebook edition, i.e. free to everyone. Purchases of "{{ gift.acq.work.title }}" are helping to make that free edition financially possible.
|
||||||
|
|
||||||
For more information about the book, visit the book's unglue.it page at
|
For more information about the book, visit the book's unglue.it page at
|
||||||
https://{{ current_site.domain }}{% url 'work' gift.acq.work.id %}
|
https://{{ current_site.domain }}{% url 'work' gift.acq.work_id %}
|
||||||
|
|
||||||
We hope enjoy your new ebook, and we hope you like Unglue.it!
|
We hope enjoy your new ebook, and we hope you like Unglue.it!
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
{% load humanize %}
|
{% load humanize %}
|
||||||
|
|
||||||
{% block comments_book %}
|
{% block comments_book %}
|
||||||
<a href="{% url 'work' gift.acq.work.id %}"><img src="{{ gift.acq.work.cover_image_small }}" alt="cover image for {{ gift.acq.work.title }}" /></a>
|
<a href="{% url 'work' gift.acq.work_id %}"><img src="{{ gift.acq.work.cover_image_small }}" alt="cover image for {{ gift.acq.work.title }}" /></a>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block comments_graphical %}
|
{% block comments_graphical %}
|
||||||
|
@ -22,10 +22,10 @@ To pick up <i>{{ gift.acq.work.title }}</i>, the ebook that <a href="{% url 'sup
|
||||||
The ebook will be licensed to you personally, and your license has been embedded in the ebook file. You may download as many times as you need to, but you can't make copies for the use of others until the ungluing date. You can make that date come sooner by encouraging your friends to buy a copy.
|
The ebook will be licensed to you personally, and your license has been embedded in the ebook file. You may download as many times as you need to, but you can't make copies for the use of others until the ungluing date. You can make that date come sooner by encouraging your friends to buy a copy.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
Thanks to <a href="{% url 'supporter' gift.giver %}">{{ gift.giver }}</a> and other ungluers, <a href="{% url 'work' gift.acq.work.id %}">{{ gift.acq.work.title }}</a> will be eventually be released to the world in an unglued ebook edition.
|
Thanks to <a href="{% url 'supporter' gift.giver %}">{{ gift.giver }}</a> and other ungluers, <a href="{% url 'work' gift.acq.work_id %}">{{ gift.acq.work.title }}</a> will be eventually be released to the world in an unglued ebook edition.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
For more information about the book, visit the book's <a href="{% url 'work' gift.acq.work.id %}">unglue.it page</a>
|
For more information about the book, visit the book's <a href="{% url 'work' gift.acq.work_id %}">unglue.it page</a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
{% load humanize %}
|
{% load humanize %}
|
||||||
|
|
||||||
{% block comments_book %}
|
{% block comments_book %}
|
||||||
<a href="{% url 'work' gift.acq.work.id %}"><img src="{{ gift.acq.work.cover_image_small }}" alt="cover image for {{ gift.acq.work.title }}" /></a>
|
<a href="{% url 'work' gift.acq.work_id %}"><img src="{{ gift.acq.work.cover_image_small }}" alt="cover image for {{ gift.acq.work.title }}" /></a>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block comments_graphical %}
|
{% block comments_graphical %}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
{% load humanize %}
|
{% load humanize %}
|
||||||
|
|
||||||
{% block comments_book %}
|
{% block comments_book %}
|
||||||
<a href="{% url 'work' gift.acq.work.id %}"><img src="{{ gift.acq.work.cover_image_small }}" alt="cover image for {{ gift.acq.work.title }}" /></a>
|
<a href="{% url 'work' gift.acq.work_id %}"><img src="{{ gift.acq.work.cover_image_small }}" alt="cover image for {{ gift.acq.work.title }}" /></a>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block comments_graphical %}
|
{% block comments_graphical %}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
You are now free to start a campaign to sell or unglue your work. If you're logged in, you will see the option to open a campaign at https://{{ current_site.domain }}/rightsholders . (You can also find this page by clicking on "Rights Holder Tools" at the bottom of any Unglue.it page.)
|
You are now free to start a campaign to sell or unglue your work. If you're logged in, you will see the option to open a campaign at https://{{ current_site.domain }}/rightsholders . (You can also find this page by clicking on "Rights Holder Tools" at the bottom of any Unglue.it page.)
|
||||||
|
|
||||||
To run a campaign, you'll need to set up campaign parameters. You'll also need to write a pitch. For Pledge-to-Unglue and Buy-to-Unglue campaigns, this will appear in the Description tab on your book's page (https://{{ current_site.domain }}{% url 'work' claim.work.id %}). Think about who your book's audience is, and remind them why they'll love this book -- your pitch is not a catalog page! We encourage video, audio, and links to make your pitch come alive. For Thanks-for-Ungluing, your pitch will occur when the user clicks a Download button. You should emphasize how the ungluer's support enables you to keep doing what you do. Feel free to email us (rights@gluejar.com) if you need any help with this.
|
To run a campaign, you'll need to set up campaign parameters. You'll also need to write a pitch. For Pledge-to-Unglue and Buy-to-Unglue campaigns, this will appear in the Description tab on your book's page (https://{{ current_site.domain }}{% url 'work' claim.work_id %}). Think about who your book's audience is, and remind them why they'll love this book -- your pitch is not a catalog page! We encourage video, audio, and links to make your pitch come alive. For Thanks-for-Ungluing, your pitch will occur when the user clicks a Download button. You should emphasize how the ungluer's support enables you to keep doing what you do. Feel free to email us (rights@gluejar.com) if you need any help with this.
|
||||||
|
|
||||||
If you're running a Buy-to-Unglue or Thanks-for-Ungluing Campaign, now is the time to upload your digital files. For Buy-to-Unglue, you need to decide on revenue targets and pricing for individual and library licenses.
|
If you're running a Buy-to-Unglue or Thanks-for-Ungluing Campaign, now is the time to upload your digital files. For Buy-to-Unglue, you need to decide on revenue targets and pricing for individual and library licenses.
|
||||||
|
|
||||||
|
@ -14,10 +14,10 @@ Finally, think about how you're going to publicize your campaign: social media,
|
||||||
We're thrilled to be working with you.
|
We're thrilled to be working with you.
|
||||||
{% endifequal %}
|
{% endifequal %}
|
||||||
{% ifequal claim.status 'pending' %}
|
{% ifequal claim.status 'pending' %}
|
||||||
{{ claim.rights_holder }}'s claim to {{ claim.work.title }} (https://{{ current_site.domain }}{% url 'work' claim.work.id %}) on Unglue.it has been entered. Our team will examine the claim and get back to you soon.
|
{{ claim.rights_holder }}'s claim to {{ claim.work.title }} (https://{{ current_site.domain }}{% url 'work' claim.work_id %}) on Unglue.it has been entered. Our team will examine the claim and get back to you soon.
|
||||||
{% endifequal %}
|
{% endifequal %}
|
||||||
{% ifequal claim.status 'release' %}
|
{% ifequal claim.status 'release' %}
|
||||||
{{ claim.rights_holder }}'s claim to {{ claim.work.title }} (https://{{ current_site.domain }}{% url 'work' claim.work.id %}) on Unglue.it has been released. email us (rights@gluejar.com) if you have any questions about this.
|
{{ claim.rights_holder }}'s claim to {{ claim.work.title }} (https://{{ current_site.domain }}{% url 'work' claim.work_id %}) on Unglue.it has been released. email us (rights@gluejar.com) if you have any questions about this.
|
||||||
{% endifequal %}
|
{% endifequal %}
|
||||||
|
|
||||||
The Unglue.it team
|
The Unglue.it team
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
|
|
||||||
{% block comments_book %}
|
{% block comments_book %}
|
||||||
<a href="{% url 'work' claim.work.id %}"><img src="{{ claim.work.cover_image_small }}" alt="cover image for {{ claim.work.title }}" /></a>
|
<a href="{% url 'work' claim.work_id %}"><img src="{{ claim.work.cover_image_small }}" alt="cover image for {{ claim.work.title }}" /></a>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block comments_graphical %}
|
{% block comments_graphical %}
|
||||||
|
@ -17,7 +17,7 @@
|
||||||
<br /><br />
|
<br /><br />
|
||||||
You are now free to start a campaign to sell or unglue your work. If you're logged in, you can <a href="{% url 'rightsholders' %}">open a campaign</a>. (You can also find this page by clicking on "Rights Holder Tools" at the bottom of any Unglue.it page.)
|
You are now free to start a campaign to sell or unglue your work. If you're logged in, you can <a href="{% url 'rightsholders' %}">open a campaign</a>. (You can also find this page by clicking on "Rights Holder Tools" at the bottom of any Unglue.it page.)
|
||||||
<br /><br />
|
<br /><br />
|
||||||
To run a campaign, you'll need to set up campaign parameters. You'll also need to write a pitch. For Pledge-to-Unglue and Buy-to-Unglue campaigns, this will appear in the Description tab on your book's <a href="{% url 'work' claim.work.id %}">work page</a>. Think about who your book's audience is, and remind them why they'll love this book -- your pitch is not a catalog page! We encourage video, audio, and links to make your pitch come alive. For Thanks-for-Ungluing, your pitch will occur when the user clicks a Download button. You should emphasize how the ungluer's support enables you to keep doing what you do. Feel free to email us (rights@gluejar.com) if you need any help with this.
|
To run a campaign, you'll need to set up campaign parameters. You'll also need to write a pitch. For Pledge-to-Unglue and Buy-to-Unglue campaigns, this will appear in the Description tab on your book's <a href="{% url 'work' claim.work_id %}">work page</a>. Think about who your book's audience is, and remind them why they'll love this book -- your pitch is not a catalog page! We encourage video, audio, and links to make your pitch come alive. For Thanks-for-Ungluing, your pitch will occur when the user clicks a Download button. You should emphasize how the ungluer's support enables you to keep doing what you do. Feel free to email us (rights@gluejar.com) if you need any help with this.
|
||||||
<br /><br />
|
<br /><br />
|
||||||
If you're running a Buy-to-Unglue or Thanks-for-Ungluing Campaign, now is the time to upload your digital files. For Buy-to-Unglue, you need to decide on revenue targets and pricing for individual and library licenses.
|
If you're running a Buy-to-Unglue or Thanks-for-Ungluing Campaign, now is the time to upload your digital files. For Buy-to-Unglue, you need to decide on revenue targets and pricing for individual and library licenses.
|
||||||
<br /><br />
|
<br /><br />
|
||||||
|
@ -28,9 +28,9 @@ Finally, think about how you're going to publicize your campaign: social media,
|
||||||
We're thrilled to be working with you.
|
We're thrilled to be working with you.
|
||||||
{% endifequal %}
|
{% endifequal %}
|
||||||
{% ifequal claim.status 'pending' %}
|
{% ifequal claim.status 'pending' %}
|
||||||
The claim for <a href="{% url 'work' claim.work.id %}">{{ claim.work.title }}</a> will be examined, and we'll email you. <a href="{% url 'feedback' %}?page={{request.build_absolute_uri|urlencode:""}}">Contact us</a> if you need any help.
|
The claim for <a href="{% url 'work' claim.work_id %}">{{ claim.work.title }}</a> will be examined, and we'll email you. <a href="{% url 'feedback' %}?page={{request.build_absolute_uri|urlencode:""}}">Contact us</a> if you need any help.
|
||||||
{% endifequal %}
|
{% endifequal %}
|
||||||
{% ifequal claim.status 'release' %}
|
{% ifequal claim.status 'release' %}
|
||||||
The claim for <a href="{% url 'work' claim.work.id %}">{{ claim.work.title }}</a> has been released. Contact us at rights@gluejar.com if you have questions.
|
The claim for <a href="{% url 'work' claim.work_id %}">{{ claim.work.title }}</a> has been released. Contact us at rights@gluejar.com if you have questions.
|
||||||
{% endifequal %}
|
{% endifequal %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -2,22 +2,22 @@
|
||||||
|
|
||||||
You can help!
|
You can help!
|
||||||
|
|
||||||
Pledge toward ungluing. https://{{ current_site.domain }}{% url 'pledge' work_id=campaign.work.id %}
|
Pledge toward ungluing. https://{{ current_site.domain }}{% url 'pledge' work_id=campaign.work_id %}
|
||||||
{% endifequal %}{% ifequal campaign.type 2 %}Great, you wished for it, and now there is a campaign for {{ campaign.work.title }} to be unglued. Someday, the book will be released under a Creative Commons license for everyone to enjoy. Every copy purchased until then brings that day {{ campaign.day_per_copy|floatformat }} days sooner.
|
{% endifequal %}{% ifequal campaign.type 2 %}Great, you wished for it, and now there is a campaign for {{ campaign.work.title }} to be unglued. Someday, the book will be released under a Creative Commons license for everyone to enjoy. Every copy purchased until then brings that day {{ campaign.day_per_copy|floatformat }} days sooner.
|
||||||
|
|
||||||
You can help!
|
You can help!
|
||||||
|
|
||||||
Buy a copy to help unglue the book. https://{{ current_site.domain }}{% url 'purchase' work_id=campaign.work.id %}
|
Buy a copy to help unglue the book. https://{{ current_site.domain }}{% url 'purchase' work_id=campaign.work_id %}
|
||||||
|
|
||||||
{% endifequal %}{% ifequal campaign.type 3 %}There is a new "Thanks for Ungluing" campaign for {{ campaign.work.title }} one of your Creative Commons license favorites.
|
{% endifequal %}{% ifequal campaign.type 3 %}There is a new "Thanks for Ungluing" campaign for {{ campaign.work.title }} one of your Creative Commons license favorites.
|
||||||
|
|
||||||
Join us in thanking the creators! Download a copy and leave a contribution. https://{{ current_site.domain }}{% url 'download' work_id=campaign.work.id %}
|
Join us in thanking the creators! Download a copy and leave a contribution. https://{{ current_site.domain }}{% url 'download' work_id=campaign.work_id %}
|
||||||
|
|
||||||
{% endifequal %}
|
{% endifequal %}
|
||||||
|
|
||||||
Tell your friends -- there are handy share options on the campaign page. There's even a widget you can put on your blog or home page. https://{{ current_site.domain }}{% url 'work' campaign.work.id %}
|
Tell your friends -- there are handy share options on the campaign page. There's even a widget you can put on your blog or home page. https://{{ current_site.domain }}{% url 'work' campaign.work_id %}
|
||||||
|
|
||||||
Join the discussion: share why you love {{ campaign.work.title }} and the world will too. https://{{ current_site.domain }}{% url 'work' campaign.work.id %}?tab=2
|
Join the discussion: share why you love {{ campaign.work.title }} and the world will too. https://{{ current_site.domain }}{% url 'work' campaign.work_id %}?tab=2
|
||||||
|
|
||||||
Thank you!
|
Thank you!
|
||||||
|
|
||||||
|
|
|
@ -3,24 +3,24 @@
|
||||||
{% load humanize %}
|
{% load humanize %}
|
||||||
|
|
||||||
{% block comments_book %}
|
{% block comments_book %}
|
||||||
<a href="{% url 'work' campaign.work.id %}"><img src="{{ campaign.work.cover_image_small }}" alt="cover image for {{ campaign.work.title }}" /></a>
|
<a href="{% url 'work' campaign.work_id %}"><img src="{{ campaign.work.cover_image_small }}" alt="cover image for {{ campaign.work.title }}" /></a>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block comments_graphical %}
|
{% block comments_graphical %}
|
||||||
<span>The rights holder, {{ campaign.rightsholder }}, has launched a campaign for <a href="{% url 'work' campaign.work.id %}">{{ campaign.work.title }}</a>!</span>
|
<span>The rights holder, {{ campaign.rightsholder }}, has launched a campaign for <a href="{% url 'work' campaign.work_id %}">{{ campaign.work.title }}</a>!</span>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block comments_textual %}
|
{% block comments_textual %}
|
||||||
{% ifequal campaign.type 1 %}
|
{% ifequal campaign.type 1 %}
|
||||||
<div>Congratulations! You wished for a campaign, and here it is. If ungluers like you pledge {{ campaign.target|intcomma }} by {{ campaign.deadline|date:"M d, Y" }}, <I>{{ campaign.work.title }}</i> will be released under a <a href="https://creativecommons.org">Creative Commons</a> license for all to enjoy.</div>
|
<div>Congratulations! You wished for a campaign, and here it is. If ungluers like you pledge {{ campaign.target|intcomma }} by {{ campaign.deadline|date:"M d, Y" }}, <I>{{ campaign.work.title }}</i> will be released under a <a href="https://creativecommons.org">Creative Commons</a> license for all to enjoy.</div>
|
||||||
<div>You can help! <a href="{% url 'pledge' campaign.work.id %}">Pledge</a> any amount, and use the sharing options on the <a href="{% url 'work' campaign.work.id %}">campaign page</a> to tell your friends.</a></div>
|
<div>You can help! <a href="{% url 'pledge' campaign.work_id %}">Pledge</a> any amount, and use the sharing options on the <a href="{% url 'work' campaign.work_id %}">campaign page</a> to tell your friends.</a></div>
|
||||||
{% endifequal %}
|
{% endifequal %}
|
||||||
{% ifequal campaign.type 2 %}
|
{% ifequal campaign.type 2 %}
|
||||||
<div>Great! You wished for a campaign, and here it is. Someday, the book will be released under a <a href="https://creativecommons.org">Creative Commons license</a> for everyone to enjoy. Every copy purchased brings that day {{ campaign.days_per_copy|floatformat }} days sooner.</div>
|
<div>Great! You wished for a campaign, and here it is. Someday, the book will be released under a <a href="https://creativecommons.org">Creative Commons license</a> for everyone to enjoy. Every copy purchased brings that day {{ campaign.days_per_copy|floatformat }} days sooner.</div>
|
||||||
<div>You can help! <a href="{% url 'purchase' campaign.work.id %}">Purchase</a> a copy, and use the sharing options on the <a href="{% url 'work' campaign.work.id %}">campaign page</a> to tell your friends.</a></div>
|
<div>You can help! <a href="{% url 'purchase' campaign.work_id %}">Purchase</a> a copy, and use the sharing options on the <a href="{% url 'work' campaign.work_id %}">campaign page</a> to tell your friends.</a></div>
|
||||||
{% endifequal %}
|
{% endifequal %}
|
||||||
{% ifequal campaign.type 3 %}
|
{% ifequal campaign.type 3 %}
|
||||||
<div>There is a new "Thanks for Ungluing" campaign for {{ campaign.work.title }} one of your Creative Commons license favorites.</div>
|
<div>There is a new "Thanks for Ungluing" campaign for {{ campaign.work.title }} one of your Creative Commons license favorites.</div>
|
||||||
<div>Please join us! <a href="{% url 'download' campaign.work.id %}">Download</a> a copy, leave a contribution, and use the sharing options on the <a href="{% url 'work' campaign.work.id %}">campaign page</a> to tell your friends.</a></div>
|
<div>Please join us! <a href="{% url 'download' campaign.work_id %}">Download</a> a copy, leave a contribution, and use the sharing options on the <a href="{% url 'work' campaign.work_id %}">campaign page</a> to tell your friends.</a></div>
|
||||||
{% endifequal %}
|
{% endifequal %}
|
||||||
{% endblock %}
|
{% endblock %}
|
|
@ -1,11 +1,11 @@
|
||||||
{% load humanize %}{% if campaign.left > 0 %} The campaign to unglue a book you've faved, {{ campaign.work.title}}, is almost out of time. We need to raise ${{ campaign.left|intcomma }} more by {{ campaign.deadline }} in order to give this book to the world.
|
{% load humanize %}{% if campaign.left > 0 %} The campaign to unglue a book you've faved, {{ campaign.work.title}}, is almost out of time. We need to raise ${{ campaign.left|intcomma }} more by {{ campaign.deadline }} in order to give this book to the world.
|
||||||
|
|
||||||
{% if pledged %}
|
{% if pledged %}
|
||||||
Your pledge is helping {{ campaign.work.title }} to reach its goal, but we can only unglue this book if the campaign succeeds. You can help your pledge go farther by sharing the campaign ({{ domain }}{% url 'work' work_id=campaign.work.id %}) with your friends through your favorite media: tweet, Facebook, Tumblr, blog, G+, Pinterest, email, carrier pigeon, or good old-fashioned conversation.
|
Your pledge is helping {{ campaign.work.title }} to reach its goal, but we can only unglue this book if the campaign succeeds. You can help your pledge go farther by sharing the campaign ({{ domain }}{% url 'work' work_id=campaign.work_id %}) with your friends through your favorite media: tweet, Facebook, Tumblr, blog, G+, Pinterest, email, carrier pigeon, or good old-fashioned conversation.
|
||||||
{% else %}
|
{% else %}
|
||||||
If you've been meaning to get around to pledging, now's your chance. Any amount helps. You can chip in towards giving this book to the world at {{ domain }}{% url 'pledge' work_id=campaign.work.id %} .
|
If you've been meaning to get around to pledging, now's your chance. Any amount helps. You can chip in towards giving this book to the world at {{ domain }}{% url 'pledge' work_id=campaign.work_id %} .
|
||||||
|
|
||||||
You can also help by sharing the campaign ({{ domain }}{% url 'work' work_id=campaign.work.id %}) with your friends through your favorite media: tweet, Facebook, Tumblr, blog, G+, Pinterest, email, carrier pigeon, or good old-fashioned conversation.
|
You can also help by sharing the campaign ({{ domain }}{% url 'work' work_id=campaign.work_id %}) with your friends through your favorite media: tweet, Facebook, Tumblr, blog, G+, Pinterest, email, carrier pigeon, or good old-fashioned conversation.
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
Thank you!
|
Thank you!
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
{% if pledged %}
|
{% if pledged %}
|
||||||
Your pledge is helping us give this book to the world. Thank you! When the campaign closes, we'll be in touch about how and when you'll receive your premiums.
|
Your pledge is helping us give this book to the world. Thank you! When the campaign closes, we'll be in touch about how and when you'll receive your premiums.
|
||||||
{% else %}
|
{% else %}
|
||||||
If you wanted to support this campaign, this is your last chance. Pledge by midnight (Eastern US time) if you want to help the campaign or receive any premiums: {{ domain }}{% url 'pledge' work_id=campaign.work.id %}
|
If you wanted to support this campaign, this is your last chance. Pledge by midnight (Eastern US time) if you want to help the campaign or receive any premiums: {{ domain }}{% url 'pledge' work_id=campaign.work_id %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
Thanks to ungluers like you, we'll soon be able to give this book to the world together. Hooray!
|
Thanks to ungluers like you, we'll soon be able to give this book to the world together. Hooray!
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
|
|
||||||
{% block comments_book %}
|
{% block comments_book %}
|
||||||
<a href="{% url 'work' campaign.work.id %}"><img src="{{ campaign.work.cover_image_small }}" alt="cover image for {{ campaign.work.title }}" /></a>
|
<a href="{% url 'work' campaign.work_id %}"><img src="{{ campaign.work.cover_image_small }}" alt="cover image for {{ campaign.work.title }}" /></a>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block comments_graphical %}
|
{% block comments_graphical %}
|
||||||
|
@ -16,10 +16,10 @@
|
||||||
Your pledge is helping us reach that goal. Will you help again by sharing this campaign with your friends?
|
Your pledge is helping us reach that goal. Will you help again by sharing this campaign with your friends?
|
||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
If you've been meaning to pledge, <a href="{% url 'pledge' work_id=campaign.work.id %}">now's your chance</a>. You can also help by sharing this campaign with your friends.
|
If you've been meaning to pledge, <a href="{% url 'pledge' work_id=campaign.work_id %}">now's your chance</a>. You can also help by sharing this campaign with your friends.
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% url 'work' campaign.work.id as work_url %}
|
{% url 'work' campaign.work_id as work_url %}
|
||||||
{% include "notification/sharing_block.html" %}
|
{% include "notification/sharing_block.html" %}
|
||||||
|
|
||||||
Thank you!
|
Thank you!
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
{% load humanize %}The campaign to unglue a book you've faved, {{ campaign.work.title}}, is close to succeeding! We only need to raise ${{ campaign.left|intcomma }} more by {{ campaign.deadline }} in order to give this book to the world.
|
{% load humanize %}The campaign to unglue a book you've faved, {{ campaign.work.title}}, is close to succeeding! We only need to raise ${{ campaign.left|intcomma }} more by {{ campaign.deadline }} in order to give this book to the world.
|
||||||
|
|
||||||
{% if pledged %}
|
{% if pledged %}
|
||||||
Your pledge of {{ amount|intcomma }} is helping {{ campaign.work.title }} to reach its goal, but we can only unglue this book if the campaign succeeds. You can tip the balance by sharing the campaign (https://{{ current_site.domain }}{% url 'work' work_id=campaign.work.id %}) with your friends through your favorite media: tweet, Facebook, Tumblr, blog, G+, Pinterest, email, carrier pigeon, or good old-fashioned conversation.
|
Your pledge of {{ amount|intcomma }} is helping {{ campaign.work.title }} to reach its goal, but we can only unglue this book if the campaign succeeds. You can tip the balance by sharing the campaign (https://{{ current_site.domain }}{% url 'work' work_id=campaign.work_id %}) with your friends through your favorite media: tweet, Facebook, Tumblr, blog, G+, Pinterest, email, carrier pigeon, or good old-fashioned conversation.
|
||||||
{% else %}
|
{% else %}
|
||||||
We need your pledge to reach this target. Any amount helps. You can chip in towards giving this book to the world at https://{{ current_site.domain }}{% url 'pledge' work_id=campaign.work.id %} .
|
We need your pledge to reach this target. Any amount helps. You can chip in towards giving this book to the world at https://{{ current_site.domain }}{% url 'pledge' work_id=campaign.work_id %} .
|
||||||
|
|
||||||
You can also help by sharing the campaign (https://{{ current_site.domain }}{% url 'work' work_id=campaign.work.id %}) with your friends through your favorite media: tweet, Facebook, Tumblr, blog, G+, Pinterest, email, carrier pigeon, or good old-fashioned conversation.
|
You can also help by sharing the campaign (https://{{ current_site.domain }}{% url 'work' work_id=campaign.work_id %}) with your friends through your favorite media: tweet, Facebook, Tumblr, blog, G+, Pinterest, email, carrier pigeon, or good old-fashioned conversation.
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
Thank you!
|
Thank you!
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
{% load humanize %}
|
{% load humanize %}
|
||||||
|
|
||||||
{% block comments_book %}
|
{% block comments_book %}
|
||||||
<a href="{% url 'work' campaign.work.id %}"><img src="{{ campaign.work.cover_image_small }}" alt="cover image for {{ campaign.work.title }}" /></a>
|
<a href="{% url 'work' campaign.work_id %}"><img src="{{ campaign.work.cover_image_small }}" alt="cover image for {{ campaign.work.title }}" /></a>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block comments_graphical %}
|
{% block comments_graphical %}
|
||||||
|
@ -15,10 +15,10 @@
|
||||||
{% if pledged %}
|
{% if pledged %}
|
||||||
Your pledge is helping us reach the campaign's target price of {{ campaign.target }}. Will you help again by sharing this campaign with your friends?
|
Your pledge is helping us reach the campaign's target price of {{ campaign.target }}. Will you help again by sharing this campaign with your friends?
|
||||||
{% else %}
|
{% else %}
|
||||||
You can help us give this book to the world by <a href="{% url 'pledge' work_id=campaign.work.id %}">pledging</a> or by sharing this campaign with your friends.
|
You can help us give this book to the world by <a href="{% url 'pledge' work_id=campaign.work_id %}">pledging</a> or by sharing this campaign with your friends.
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% url 'work' campaign.work.id as work_url %}
|
{% url 'work' campaign.work_id as work_url %}
|
||||||
{% include "notification/sharing_block.html" %}
|
{% include "notification/sharing_block.html" %}
|
||||||
|
|
||||||
Thank you!
|
Thank you!
|
||||||
|
|
|
@ -3,6 +3,6 @@
|
||||||
Premium: {{ premium.description }}
|
Premium: {{ premium.description }}
|
||||||
Minimum pledge: {{ premium.amount|intcomma }}
|
Minimum pledge: {{ premium.amount|intcomma }}
|
||||||
|
|
||||||
If you'd like to claim the last one, pledge here: https://{{ current_site.domain }}{% url 'pledge' work_id=campaign.work.id %}
|
If you'd like to claim the last one, pledge here: https://{{ current_site.domain }}{% url 'pledge' work_id=campaign.work_id %}
|
||||||
|
|
||||||
{{ campaign.rightsholder }} (rights holder for {{ campaign.work.title }}) and the Unglue.it team
|
{{ campaign.rightsholder }} (rights holder for {{ campaign.work.title }}) and the Unglue.it team
|
|
@ -3,7 +3,7 @@
|
||||||
{% load humanize %}
|
{% load humanize %}
|
||||||
|
|
||||||
{% block comments_book %}
|
{% block comments_book %}
|
||||||
<a href="{% url 'work' campaign.work.id %}"><img src="{{ campaign.work.cover_image_small }}" alt="cover image for {{ campaign.work.title }}" /></a>
|
<a href="{% url 'work' campaign.work_id %}"><img src="{{ campaign.work.cover_image_small }}" alt="cover image for {{ campaign.work.title }}" /></a>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block comments_graphical %}
|
{% block comments_graphical %}
|
||||||
|
@ -16,5 +16,5 @@
|
||||||
Premium: {{ premium.description }}
|
Premium: {{ premium.description }}
|
||||||
Minimum pledge: {{ premium.amount|intcomma }}
|
Minimum pledge: {{ premium.amount|intcomma }}
|
||||||
|
|
||||||
If you'd like to claim the last one, pledge here: https://{{ current_site.domain }}{% url 'pledge' work_id=campaign.work.id %}
|
If you'd like to claim the last one, pledge here: https://{{ current_site.domain }}{% url 'pledge' work_id=campaign.work_id %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
{% load humanize %}Good news! The rights holder, {{ campaign.rightsholder }}, has lowered the target price to ${{ campaign.target|intcomma }} for {{ campaign.work.title }}. Now we only need to raise ${{ campaign.left|intcomma }} by {{ campaign.deadline }} in order to give this book to the world.
|
{% load humanize %}Good news! The rights holder, {{ campaign.rightsholder }}, has lowered the target price to ${{ campaign.target|intcomma }} for {{ campaign.work.title }}. Now we only need to raise ${{ campaign.left|intcomma }} by {{ campaign.deadline }} in order to give this book to the world.
|
||||||
|
|
||||||
{% if pledged %}
|
{% if pledged %}
|
||||||
Your pledge of {{ amount|intcomma }} is now going even farther toward helping {{ campaign.work.title }} to reach its goal. Still, we can only unglue this book if the campaign succeeds. You can help by sharing the campaign (https://{{ current_site.domain }}{% url 'work' work_id=campaign.work.id %}) with your friends through your favorite media: tweet, Facebook, Tumblr, blog, G+, Pinterest, email, carrier pigeon, or good old-fashioned conversation.
|
Your pledge of {{ amount|intcomma }} is now going even farther toward helping {{ campaign.work.title }} to reach its goal. Still, we can only unglue this book if the campaign succeeds. You can help by sharing the campaign (https://{{ current_site.domain }}{% url 'work' work_id=campaign.work_id %}) with your friends through your favorite media: tweet, Facebook, Tumblr, blog, G+, Pinterest, email, carrier pigeon, or good old-fashioned conversation.
|
||||||
{% else %}
|
{% else %}
|
||||||
The target may be lower, but we still need your help to reach it. Pledges of any amount help. You can chip in towards giving this book to the world at https://{{ current_site.domain }}{% url 'pledge' work_id=campaign.work.id %} .
|
The target may be lower, but we still need your help to reach it. Pledges of any amount help. You can chip in towards giving this book to the world at https://{{ current_site.domain }}{% url 'pledge' work_id=campaign.work_id %} .
|
||||||
|
|
||||||
You can also help by sharing the campaign (https://{{ current_site.domain }}{% url 'work' work_id=campaign.work.id %}) with your friends through your favorite media: tweet, Facebook, Tumblr, blog, G+, Pinterest, email, carrier pigeon, or good old-fashioned conversation.
|
You can also help by sharing the campaign (https://{{ current_site.domain }}{% url 'work' work_id=campaign.work_id %}) with your friends through your favorite media: tweet, Facebook, Tumblr, blog, G+, Pinterest, email, carrier pigeon, or good old-fashioned conversation.
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
Thank you!
|
Thank you!
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
{% load humanize %}
|
{% load humanize %}
|
||||||
|
|
||||||
{% block comments_book %}
|
{% block comments_book %}
|
||||||
<a href="{% url 'work' campaign.work.id %}"><img src="{{ campaign.work.cover_image_small }}" alt="cover image for {{ campaign.work.title }}" /></a>
|
<a href="{% url 'work' campaign.work_id %}"><img src="{{ campaign.work.cover_image_small }}" alt="cover image for {{ campaign.work.title }}" /></a>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block comments_graphical %}
|
{% block comments_graphical %}
|
||||||
|
@ -14,9 +14,9 @@
|
||||||
{% if pledged %}
|
{% if pledged %}
|
||||||
Your pledge of {{ amount|intcomma }} is now going even farther toward helping {{ campaign.work.title }} to reach its goal. Still, we can only unglue this book if the campaign succeeds. You can help again by sharing this campaign:
|
Your pledge of {{ amount|intcomma }} is now going even farther toward helping {{ campaign.work.title }} to reach its goal. Still, we can only unglue this book if the campaign succeeds. You can help again by sharing this campaign:
|
||||||
{% else %}
|
{% else %}
|
||||||
The target may be lower, but we still need your help to reach it. Pledges of any amount help. You can chip in towards giving this book to the world at https://{{ current_site.domain }}{% url 'pledge' campaign.work.id %} . You can also help by sharing this campaign:
|
The target may be lower, but we still need your help to reach it. Pledges of any amount help. You can chip in towards giving this book to the world at https://{{ current_site.domain }}{% url 'pledge' campaign.work_id %} . You can also help by sharing this campaign:
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% url 'work' campaign.work.id as work_url %}
|
{% url 'work' campaign.work_id as work_url %}
|
||||||
{% include "notification/sharing_block.html" %}
|
{% include "notification/sharing_block.html" %}
|
||||||
{% endblock %}
|
{% endblock %}
|
|
@ -1,4 +1,4 @@
|
||||||
{% if pledged %}You pledged toward it{% else %}You put it on your list{% endif %}, and now the campaign for {{ campaign.work.title}} (https://{{current_site.domain}}{% url 'work' campaign.work.id %}) has succeeded.
|
{% if pledged %}You pledged toward it{% else %}You put it on your list{% endif %}, and now the campaign for {{ campaign.work.title}} (https://{{current_site.domain}}{% url 'work' campaign.work_id %}) has succeeded.
|
||||||
{% ifequal campaign.type 1 %}
|
{% ifequal campaign.type 1 %}
|
||||||
You will notified when an Unglued ebook edition is available, within 90 days.
|
You will notified when an Unglued ebook edition is available, within 90 days.
|
||||||
{% if pledged %}
|
{% if pledged %}
|
||||||
|
|
|
@ -2,11 +2,11 @@
|
||||||
|
|
||||||
|
|
||||||
{% block comments_book %}
|
{% block comments_book %}
|
||||||
<a href="{% url 'work' campaign.work.id %}"><img src="{{ campaign.work.cover_image_small }}" alt="cover image for {{ campaign.work.title }}" /></a>
|
<a href="{% url 'work' campaign.work_id %}"><img src="{{ campaign.work.cover_image_small }}" alt="cover image for {{ campaign.work.title }}" /></a>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block comments_graphical %}
|
{% block comments_graphical %}
|
||||||
The campaign to unglue <a href="{% url 'work' campaign.work.id %}">{{ campaign.work.title }}</a> has succeeded!
|
The campaign to unglue <a href="{% url 'work' campaign.work_id %}">{{ campaign.work.title }}</a> has succeeded!
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block comments_textual %}
|
{% block comments_textual %}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
Alas. The campaign to unglue {{ campaign.work.title }} (https://{{current_site.domain}}{% url 'work' campaign.work.id %}) has not succeeded.
|
Alas. The campaign to unglue {{ campaign.work.title }} (https://{{current_site.domain}}{% url 'work' campaign.work_id %}) has not succeeded.
|
||||||
|
|
||||||
If you pledged toward this work, your pledge will expire shortly and your credit card will not be charged, nor will you receive any premiums.
|
If you pledged toward this work, your pledge will expire shortly and your credit card will not be charged, nor will you receive any premiums.
|
||||||
|
|
||||||
|
|
|
@ -2,11 +2,11 @@
|
||||||
|
|
||||||
|
|
||||||
{% block comments_book %}
|
{% block comments_book %}
|
||||||
<a href="{% url 'work' campaign.work.id %}"><img src="{{ campaign.work.cover_image_small }}" alt="cover image for {{ campaign.work.title }}" /></a>
|
<a href="{% url 'work' campaign.work_id %}"><img src="{{ campaign.work.cover_image_small }}" alt="cover image for {{ campaign.work.title }}" /></a>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block comments_graphical %}
|
{% block comments_graphical %}
|
||||||
Alas. The campaign to unglue <a href="{% url 'work' campaign.work.id %}">{{ campaign.work.title }}</a> did not succeed.
|
Alas. The campaign to unglue <a href="{% url 'work' campaign.work_id %}">{{ campaign.work.title }}</a> did not succeed.
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block comments_textual %}
|
{% block comments_textual %}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
Amazon Payments has informed us that they will no longer process pledge payments for new crowdfunding companies, including Unglue.it. Therefore the campaign to unglue {{ campaign.work.title }} (https://{{current_site.domain}}{% url 'work' campaign.work.id %}) has been closed.
|
Amazon Payments has informed us that they will no longer process pledge payments for new crowdfunding companies, including Unglue.it. Therefore the campaign to unglue {{ campaign.work.title }} (https://{{current_site.domain}}{% url 'work' campaign.work_id %}) has been closed.
|
||||||
|
|
||||||
If you pledged toward this work, your pledge will expire shortly and your credit card will not be charged, nor will you receive any premiums.
|
If you pledged toward this work, your pledge will expire shortly and your credit card will not be charged, nor will you receive any premiums.
|
||||||
|
|
||||||
|
|
|
@ -2,11 +2,11 @@
|
||||||
|
|
||||||
|
|
||||||
{% block comments_book %}
|
{% block comments_book %}
|
||||||
<a href="{% url 'work' campaign.work.id %}"><img src="{{ campaign.work.cover_image_small }}" alt="cover image for {{ campaign.work.title }}" /></a>
|
<a href="{% url 'work' campaign.work_id %}"><img src="{{ campaign.work.cover_image_small }}" alt="cover image for {{ campaign.work.title }}" /></a>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block comments_graphical %}
|
{% block comments_graphical %}
|
||||||
Amazon has shut off payment processing for new crowdfunding companies. Therefore the campaign to unglue <a href="{% url 'work' campaign.work.id %}">{{ campaign.work.title }}</a> has been closed.
|
Amazon has shut off payment processing for new crowdfunding companies. Therefore the campaign to unglue <a href="{% url 'work' campaign.work_id %}">{{ campaign.work.title }}</a> has been closed.
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block comments_textual %}
|
{% block comments_textual %}
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
There's new information about a work on your wishlist! {{ campaign.rightsholder }}, the rights holder for {{ campaign.work.title}}, has updated the campaign. See the details at https://{{current_site.domain}}{% url 'work' campaign.work.id %}.
|
There's new information about a work on your wishlist! {{ campaign.rightsholder }}, the rights holder for {{ campaign.work.title}}, has updated the campaign. See the details at https://{{current_site.domain}}{% url 'work' campaign.work_id %}.
|
||||||
|
|
||||||
{{ campaign.rightsholder }} and the Unglue.it team
|
{{ campaign.rightsholder }} and the Unglue.it team
|
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
|
|
||||||
{% block comments_book %}
|
{% block comments_book %}
|
||||||
<a href="{% url 'work' campaign.work.id %}"><img src="{{ campaign.work.cover_image_small }}" alt="cover image for {{ cmapaign.work.title }}" /></a>
|
<a href="{% url 'work' campaign.work_id %}"><img src="{{ campaign.work.cover_image_small }}" alt="cover image for {{ cmapaign.work.title }}" /></a>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block comments_graphical %}
|
{% block comments_graphical %}
|
||||||
The rights holder, {{ campaign.rightsholder }}, has updated the campaign to unglue {{ campaign.work.title }}. For details, see the <a href="{% url 'work' campaign.work.id %}">campaign page</a>.
|
The rights holder, {{ campaign.rightsholder }}, has updated the campaign to unglue {{ campaign.work.title }}. For details, see the <a href="{% url 'work' campaign.work_id %}">campaign page</a>.
|
||||||
{% endblock %}
|
{% endblock %}
|
|
@ -2,7 +2,7 @@ Hooray! A rights holder, {{ rightsholder }}, has claimed {{ claim.work.title }}
|
||||||
|
|
||||||
What does this mean for you? Rights holders are the people who are legally authorized to license works. This means they're the only people who can run campaigns on Unglue.it.
|
What does this mean for you? Rights holders are the people who are legally authorized to license works. This means they're the only people who can run campaigns on Unglue.it.
|
||||||
|
|
||||||
{{ rightsholder }} may be running a campaign soon, or later, but isn't obligated to. Want to make that campaign happen? Leave a comment (https://{{current_site.domain}}{% url 'work' campaign.work.id %}?tab=2) and tell your friends: make sure {{ rightsholder }} knows how much you want to give this book to the world.
|
{{ rightsholder }} may be running a campaign soon, or later, but isn't obligated to. Want to make that campaign happen? Leave a comment (https://{{current_site.domain}}{% url 'work' campaign.work_id %}?tab=2) and tell your friends: make sure {{ rightsholder }} knows how much you want to give this book to the world.
|
||||||
|
|
||||||
Thanks for your help!
|
Thanks for your help!
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
|
|
||||||
{% block comments_book %}
|
{% block comments_book %}
|
||||||
<a href="{% url 'work' claim.work.id %}"><img src="{{ claim.work.cover_image_small }}" alt="cover image for {{ claim.work.title }}" /></a>
|
<a href="{% url 'work' claim.work_id %}"><img src="{{ claim.work.cover_image_small }}" alt="cover image for {{ claim.work.title }}" /></a>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block comments_graphical %}
|
{% block comments_graphical %}
|
||||||
|
@ -12,9 +12,9 @@
|
||||||
{% block comments_textual %}
|
{% block comments_textual %}
|
||||||
What does this mean for you? Rights holders are the people who are legally authorized to license works. This means they're the only people who can run campaigns on Unglue.it.
|
What does this mean for you? Rights holders are the people who are legally authorized to license works. This means they're the only people who can run campaigns on Unglue.it.
|
||||||
|
|
||||||
{{ rightsholder }} may be running a campaign soon, or later, but isn't obligated to. Want to make that campaign happen? <a href="https://{{current_site.domain}}{% url 'work' claim.work.id %}?tab=2">Leave a comment</a> and tell your friends:
|
{{ rightsholder }} may be running a campaign soon, or later, but isn't obligated to. Want to make that campaign happen? <a href="https://{{current_site.domain}}{% url 'work' claim.work_id %}?tab=2">Leave a comment</a> and tell your friends:
|
||||||
|
|
||||||
{% url 'work' claim.work.id as work_url %}
|
{% url 'work' claim.work_id as work_url %}
|
||||||
{% include "notification/sharing_block.html" %}
|
{% include "notification/sharing_block.html" %}
|
||||||
|
|
||||||
Make sure {{ rightsholder }} knows how much you want to give this book to the world.
|
Make sure {{ rightsholder }} knows how much you want to give this book to the world.
|
||||||
|
|
|
@ -50,7 +50,7 @@ If you're an author, publisher, or other rights holder, you can participate more
|
||||||
<h2 id="managed_campaigns">Campaigns You Manage</h2>
|
<h2 id="managed_campaigns">Campaigns You Manage</h2>
|
||||||
<dl>
|
<dl>
|
||||||
{% for campaign in campaigns %}
|
{% for campaign in campaigns %}
|
||||||
<dt><a href="{% url 'work' work_id=campaign.work.id %}">{{campaign.name }}</a></dt>
|
<dt><a href="{% url 'work' work_id=campaign.work_id %}">{{campaign.name }}</a></dt>
|
||||||
<dd>
|
<dd>
|
||||||
<div class="work_campaigns clearfix">
|
<div class="work_campaigns clearfix">
|
||||||
<div class="campaign_info">
|
<div class="campaign_info">
|
||||||
|
@ -66,7 +66,7 @@ If you're an author, publisher, or other rights holder, you can participate more
|
||||||
Created: {{ campaign.created }}<br />
|
Created: {{ campaign.created }}<br />
|
||||||
${{ campaign.current_total }} sold. ${{ campaign.target }} to go. Ungluing Date: {{ campaign.cc_date }}<br />
|
${{ campaign.current_total }} sold. ${{ campaign.target }} to go. Ungluing Date: {{ campaign.cc_date }}<br />
|
||||||
{% with campaign.work.preferred_edition as edition %}
|
{% with campaign.work.preferred_edition as edition %}
|
||||||
<a href="{% url 'new_edition' edition.work.id edition.id %}"> Edit </a> the preferred edition<br />
|
<a href="{% url 'new_edition' edition.work_id edition.id %}"> Edit </a> the preferred edition<br />
|
||||||
You can also <a href="{% url 'edition_uploads' edition.id %}"> Load a file</a> for this edition.<br />
|
You can also <a href="{% url 'edition_uploads' edition.id %}"> Load a file</a> for this edition.<br />
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
{% endifequal %}
|
{% endifequal %}
|
||||||
|
@ -76,7 +76,7 @@ If you're an author, publisher, or other rights holder, you can participate more
|
||||||
Created: {{ campaign.created }}<br />
|
Created: {{ campaign.created }}<br />
|
||||||
${{ campaign.current_total }} raised from {{ campaign.supporters_count }} ungluers, {{ campaign.anon_count }} others.
|
${{ campaign.current_total }} raised from {{ campaign.supporters_count }} ungluers, {{ campaign.anon_count }} others.
|
||||||
{% with campaign.work.preferred_edition as edition %}
|
{% with campaign.work.preferred_edition as edition %}
|
||||||
<a href="{% url 'new_edition' edition.work.id edition.id %}"> Edit </a> the preferred edition<br />
|
<a href="{% url 'new_edition' edition.work_id edition.id %}"> Edit </a> the preferred edition<br />
|
||||||
You can also <a href="{% url 'edition_uploads' edition.id %}"> Load a file</a> for this edition.<br />
|
You can also <a href="{% url 'edition_uploads' edition.id %}"> Load a file</a> for this edition.<br />
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
{% endifequal %}
|
{% endifequal %}
|
||||||
|
@ -104,7 +104,7 @@ If you're an author, publisher, or other rights holder, you can participate more
|
||||||
<h2 id="open_campaigns">Works You Have Claimed</h2>
|
<h2 id="open_campaigns">Works You Have Claimed</h2>
|
||||||
<dl>
|
<dl>
|
||||||
{% for claim in claims %}
|
{% for claim in claims %}
|
||||||
<dt>Title: <a href="{% url 'work' work_id=claim.work.id %}">{{claim.work.title }}</a> (work #{{ claim.work.id }})</dt>
|
<dt>Title: <a href="{% url 'work' work_id=claim.work_id %}">{{claim.work.title }}</a> (work #{{ claim.work_id }})</dt>
|
||||||
<dd>Author: {{claim.work.authors_short }}
|
<dd>Author: {{claim.work.authors_short }}
|
||||||
<br />On Behalf of: {{ claim.rights_holder.rights_holder_name }}
|
<br />On Behalf of: {{ claim.rights_holder.rights_holder_name }}
|
||||||
<br />PSA #: {{ claim.rights_holder.id }}
|
<br />PSA #: {{ claim.rights_holder.id }}
|
||||||
|
@ -189,7 +189,7 @@ If you're an author, publisher, or other rights holder, you can participate more
|
||||||
<div class="work_campaigns">
|
<div class="work_campaigns">
|
||||||
<ul>
|
<ul>
|
||||||
{% for ebook in claim.work.ebooks_all %}
|
{% for ebook in claim.work.ebooks_all %}
|
||||||
<li> edition #{{ebook.edition.id}} {{ ebook.format }} {% if not ebook.active %}(inactive){% endif %}
|
<li> edition #{{ebook.edition_id}} {{ ebook.format }} {% if not ebook.active %}(inactive){% endif %}
|
||||||
{{ ebook.download_count }} downloads
|
{{ ebook.download_count }} downloads
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
|
@ -54,7 +54,7 @@
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<dl>
|
<dl>
|
||||||
{% for claim, claim_form in pending %}
|
{% for claim, claim_form in pending %}
|
||||||
<dt>Title: <a href="{% url 'work' work_id=claim.work.id %}">{{claim.work.title }}</a></dt>
|
<dt>Title: <a href="{% url 'work' work_id=claim.work_id %}">{{claim.work.title }}</a></dt>
|
||||||
<dd>Author: {{claim.work.authors_short }}</dd>
|
<dd>Author: {{claim.work.authors_short }}</dd>
|
||||||
<dd>By: {{ claim.user.username }}</dd>
|
<dd>By: {{ claim.user.username }}</dd>
|
||||||
<dd>On Behalf of: {{ claim.rights_holder.rights_holder_name }}</dd>
|
<dd>On Behalf of: {{ claim.rights_holder.rights_holder_name }}</dd>
|
||||||
|
@ -72,7 +72,7 @@
|
||||||
<h3> Active Claims: {{ active_data.count }} </h3>
|
<h3> Active Claims: {{ active_data.count }} </h3>
|
||||||
<dl>
|
<dl>
|
||||||
{% for claim in active_data %}
|
{% for claim in active_data %}
|
||||||
<dt>Title: <a href="{% url 'work' work_id=claim.work.id %}">{{claim.work.title }}</a></dt>
|
<dt>Title: <a href="{% url 'work' work_id=claim.work_id %}">{{claim.work.title }}</a></dt>
|
||||||
<dd>Author: {{claim.work.authors_short }}</dd>
|
<dd>Author: {{claim.work.authors_short }}</dd>
|
||||||
<dd>By: {{ claim.user.username }}</dd>
|
<dd>By: {{ claim.user.username }}</dd>
|
||||||
<dd>On Behalf of: {{ claim.rights_holder.rights_holder_name }}</dd>
|
<dd>On Behalf of: {{ claim.rights_holder.rights_holder_name }}</dd>
|
||||||
|
|
|
@ -650,7 +650,7 @@ def googlebooks(request, googlebooks_id):
|
||||||
return HttpResponseNotFound("failed looking up googlebooks id %s" % googlebooks_id)
|
return HttpResponseNotFound("failed looking up googlebooks id %s" % googlebooks_id)
|
||||||
if not edition:
|
if not edition:
|
||||||
return HttpResponseNotFound("invalid googlebooks id")
|
return HttpResponseNotFound("invalid googlebooks id")
|
||||||
work_url = reverse('work', kwargs={'work_id': edition.work.id})
|
work_url = reverse('work', kwargs={'work_id': edition.work_id})
|
||||||
|
|
||||||
# process waiting add request
|
# process waiting add request
|
||||||
if not request.user.is_anonymous() and request.session.has_key("add_wishlist"):
|
if not request.user.is_anonymous() and request.session.has_key("add_wishlist"):
|
||||||
|
@ -1273,7 +1273,7 @@ class FundView(FormView):
|
||||||
data.update(
|
data.update(
|
||||||
{'preapproval_amount':self.transaction.needed_amount,
|
{'preapproval_amount':self.transaction.needed_amount,
|
||||||
'username':self.request.user.username if self.request.user.is_authenticated() else None,
|
'username':self.request.user.username if self.request.user.is_authenticated() else None,
|
||||||
'work_id':self.transaction.campaign.work.id if self.transaction.campaign else None,
|
'work_id':self.transaction.campaign.work_id if self.transaction.campaign else None,
|
||||||
'title':self.transaction.campaign.work.title if self.transaction.campaign else COMPANY_TITLE}
|
'title':self.transaction.campaign.work.title if self.transaction.campaign else COMPANY_TITLE}
|
||||||
)
|
)
|
||||||
return kwargs
|
return kwargs
|
||||||
|
@ -1466,7 +1466,7 @@ class FundCompleteView(TemplateView):
|
||||||
if self.user_is_ok():
|
if self.user_is_ok():
|
||||||
return self.render_to_response(context)
|
return self.render_to_response(context)
|
||||||
else:
|
else:
|
||||||
return HttpResponseRedirect(reverse('work', kwargs={'work_id': self.transaction.campaign.work.id}))
|
return HttpResponseRedirect(reverse('work', kwargs={'work_id': self.transaction.campaign.work_id}))
|
||||||
else:
|
else:
|
||||||
return redirect_to_login(request.get_full_path())
|
return redirect_to_login(request.get_full_path())
|
||||||
else:
|
else:
|
||||||
|
@ -1479,7 +1479,7 @@ class FundCompleteView(TemplateView):
|
||||||
# to handle anonymous donors- leakage not an issue
|
# to handle anonymous donors- leakage not an issue
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
return self.request.user.id == self.transaction.user.id
|
return self.request.user.id == self.transaction.user_id
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1625,7 +1625,7 @@ class PledgeCancelView(FormView):
|
||||||
from regluit.payment.signals import pledge_modified
|
from regluit.payment.signals import pledge_modified
|
||||||
pledge_modified.send(sender=self, transaction=transaction, up_or_down="canceled")
|
pledge_modified.send(sender=self, transaction=transaction, up_or_down="canceled")
|
||||||
logger.info("pledge_modified notice for cancellation: sender {0}, transaction {1}".format(self, transaction))
|
logger.info("pledge_modified notice for cancellation: sender {0}, transaction {1}".format(self, transaction))
|
||||||
return HttpResponseRedirect(reverse('work', kwargs={'work_id': campaign.work.id}))
|
return HttpResponseRedirect(reverse('work', kwargs={'work_id': campaign.work_id}))
|
||||||
else:
|
else:
|
||||||
logger.error("Attempt to cancel transaction id {0} failed".format(transaction.id))
|
logger.error("Attempt to cancel transaction id {0} failed".format(transaction.id))
|
||||||
return HttpResponse("Our attempt to cancel your transaction failed. We have logged this error.")
|
return HttpResponse("Our attempt to cancel your transaction failed. We have logged this error.")
|
||||||
|
@ -1731,7 +1731,7 @@ def new_survey(request, work_id):
|
||||||
if form.is_valid():
|
if form.is_valid():
|
||||||
if not work and form.work:
|
if not work and form.work:
|
||||||
for my_work in my_works:
|
for my_work in my_works:
|
||||||
print '{} {}'.format(my_work.id, form.work.id)
|
print '{} {}'.format(my_work.id, form.work_id)
|
||||||
if my_work == form.work:
|
if my_work == form.work:
|
||||||
work = form.work
|
work = form.work
|
||||||
break
|
break
|
||||||
|
@ -1760,7 +1760,7 @@ def rh_tools(request):
|
||||||
return render(request, "rh_tools.html")
|
return render(request, "rh_tools.html")
|
||||||
for claim in claims:
|
for claim in claims:
|
||||||
if claim.can_open_new:
|
if claim.can_open_new:
|
||||||
if request.method == 'POST' and request.POST.has_key('cl_%s-work' % claim.id) and int(request.POST['cl_%s-work' % claim.id]) == claim.work.id :
|
if request.method == 'POST' and request.POST.has_key('cl_%s-work' % claim.id) and int(request.POST['cl_%s-work' % claim.id]) == claim.work_id :
|
||||||
claim.campaign_form = OpenCampaignForm(data = request.POST, prefix = 'cl_'+str(claim.id),)
|
claim.campaign_form = OpenCampaignForm(data = request.POST, prefix = 'cl_'+str(claim.id),)
|
||||||
if claim.campaign_form.is_valid():
|
if claim.campaign_form.is_valid():
|
||||||
new_campaign = claim.campaign_form.save(commit=False)
|
new_campaign = claim.campaign_form.save(commit=False)
|
||||||
|
@ -2680,7 +2680,7 @@ def ask_rh(request, campaign_id):
|
||||||
campaign = get_object_or_404(models.Campaign, id=campaign_id)
|
campaign = get_object_or_404(models.Campaign, id=campaign_id)
|
||||||
return feedback(request, recipient=campaign.email, template="ask_rh.html",
|
return feedback(request, recipient=campaign.email, template="ask_rh.html",
|
||||||
message_template="ask_rh.txt",
|
message_template="ask_rh.txt",
|
||||||
redirect_url = reverse('work', args=[campaign.work.id]),
|
redirect_url = reverse('work', args=[campaign.work_id]),
|
||||||
extra_context={'campaign':campaign, 'subject':campaign })
|
extra_context={'campaign':campaign, 'subject':campaign })
|
||||||
|
|
||||||
def feedback(request, recipient='support@gluejar.com', template='feedback.html', message_template='feedback.txt', extra_context=None, redirect_url=None):
|
def feedback(request, recipient='support@gluejar.com', template='feedback.html', message_template='feedback.txt', extra_context=None, redirect_url=None):
|
||||||
|
@ -3018,7 +3018,7 @@ def receive_gift(request, nonce):
|
||||||
if gift.used:
|
if gift.used:
|
||||||
if request.user.is_authenticated():
|
if request.user.is_authenticated():
|
||||||
#check that user hasn't redeemed the gift themselves
|
#check that user hasn't redeemed the gift themselves
|
||||||
if (gift.acq.user.id == request.user.id) and not gift.acq.expired:
|
if (gift.acq.user_id == request.user.id) and not gift.acq.expired:
|
||||||
return HttpResponseRedirect(reverse('display_gift', args=[gift.id,'existing']))
|
return HttpResponseRedirect(reverse('display_gift', args=[gift.id,'existing']))
|
||||||
return render(request, 'gift_error.html', context)
|
return render(request, 'gift_error.html', context)
|
||||||
if request.user.is_authenticated():
|
if request.user.is_authenticated():
|
||||||
|
@ -3069,7 +3069,7 @@ def display_gift(request, gift_id, message):
|
||||||
gift = models.Gift.objects.get(id=gift_id)
|
gift = models.Gift.objects.get(id=gift_id)
|
||||||
except models.Gift.DoesNotExist:
|
except models.Gift.DoesNotExist:
|
||||||
return render(request, 'gift_error.html',)
|
return render(request, 'gift_error.html',)
|
||||||
if request.user.id != gift.acq.user.id :
|
if request.user.id != gift.acq.user_id :
|
||||||
return HttpResponse("this is not your gift")
|
return HttpResponse("this is not your gift")
|
||||||
redeemed_gift = request.session.get('gift_nonce', None) == gift.acq.nonce
|
redeemed_gift = request.session.get('gift_nonce', None) == gift.acq.nonce
|
||||||
context = {'gift': gift, 'work': gift.acq.work , 'message':message }
|
context = {'gift': gift, 'work': gift.acq.work , 'message':message }
|
||||||
|
|
|
@ -163,7 +163,7 @@ def new_edition(request, by=None):
|
||||||
|
|
||||||
return HttpResponseRedirect(
|
return HttpResponseRedirect(
|
||||||
reverse('new_edition', kwargs={
|
reverse('new_edition', kwargs={
|
||||||
'work_id': edition.work.id,
|
'work_id': edition.work_id,
|
||||||
'edition_id': edition.id
|
'edition_id': edition.id
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
@ -310,7 +310,7 @@ def edit_edition(request, work_id, edition_id, by=None):
|
||||||
bisacsh = bisacsh.parent
|
bisacsh = bisacsh.parent
|
||||||
for subject_name in edition.new_subjects:
|
for subject_name in edition.new_subjects:
|
||||||
add_subject(subject_name, work)
|
add_subject(subject_name, work)
|
||||||
work_url = reverse('work', kwargs={'work_id': edition.work.id})
|
work_url = reverse('work', kwargs={'work_id': edition.work_id})
|
||||||
cover_file = form.cleaned_data.get("coverfile", None)
|
cover_file = form.cleaned_data.get("coverfile", None)
|
||||||
if cover_file:
|
if cover_file:
|
||||||
# save it
|
# save it
|
||||||
|
|
Loading…
Reference in New Issue