mirror of
https://github.com/TrentSPalmer/trentpalmerdotorg.git
synced 2024-11-22 09:31:29 -08:00
add license/attribution for ebook to feeds
This commit is contained in:
parent
27893d3afa
commit
70cc8d9f5d
@ -62,11 +62,11 @@ class Feed(UUIDAsIDModel):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def license_name(self):
|
def license_name(self):
|
||||||
return(get_license_info(self.image_license))[0]
|
return(get_license_info(self.license))[0]
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def license_url(self):
|
def license_url(self):
|
||||||
return(get_license_info(self.image_license))[1]
|
return(get_license_info(self.license))[1]
|
||||||
|
|
||||||
def save(self, *args, **kwargs):
|
def save(self, *args, **kwargs):
|
||||||
if not self.slug:
|
if not self.slug:
|
||||||
|
@ -36,7 +36,19 @@
|
|||||||
<a href="{{ i.image_attribution_url }}">{{ i.image_attribution }}</a>
|
<a href="{{ i.image_attribution_url }}">{{ i.image_attribution }}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
is licensed <a href="{{ i.image_license_url }}">{{ i.image_license_name }}</a>
|
is licensed <a href="{{ i.image_license_url }}">{{ i.image_license_name }}</a>
|
||||||
{{ i.image_license_jurisdiction }}.<hr class="my-1">
|
{{ i.image_license_jurisdiction }}.
|
||||||
|
<hr class="my-1">
|
||||||
|
<a href="{{ i.ebook_url }}">{{ i.ebook_title }}</a> by
|
||||||
|
<a href="{{ i.author_url }}">{{ i.author }}</a>
|
||||||
|
is licensed <a href="{{ i.license_url }}">{{ i.license_name }}</a>
|
||||||
|
{{ i.license_jurisdiction }}.
|
||||||
|
{% if i.translator != '' %}
|
||||||
|
Translated by <a href="{{ i.translator_url }}">{{ i.translator }}</a>.
|
||||||
|
{% endif %}
|
||||||
|
{% if i.intro_author != '' %}
|
||||||
|
Intro by <a href="{{ i.intro_author_url }}">{{ i.intro_author }}</a>.
|
||||||
|
{% endif %}
|
||||||
|
<hr class="my-1">
|
||||||
</div>
|
</div>
|
||||||
<p class="text-justify mt-2 mb-0">{{ i.description }}</p>
|
<p class="text-justify mt-2 mb-0">{{ i.description }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user