From e6501f415e599f303d21d23ad254241446725415 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Fri, 4 Dec 2020 14:20:34 -0500 Subject: fixed syntax errors in image templates --- TODO | 2 ++ design/templates/lib/img_blok.html | 2 +- design/templates/lib/img_cluster.html | 2 +- design/templates/lib/img_pic960.html | 2 +- design/templates/lib/img_picfull.html | 2 +- design/templates/lib/img_pictall.html | 4 ++-- design/templates/lib/img_picwide.html | 2 +- design/templates/lib/img_product.html | 2 +- 8 files changed, 10 insertions(+), 8 deletions(-) diff --git a/TODO b/TODO index 744a938..bae6ad9 100644 --- a/TODO +++ b/TODO @@ -40,3 +40,5 @@ SELECT setval('media_luximagesize_id_seq', (SELECT MAX(id) FROM media_luximagesi ALTER TABLE media_luximage ALTER COLUMN id SET DEFAULT nextval('media_luximage_id_seq'::regclass); SELECT setval('media_luximage_id_seq', (SELECT MAX(id) FROM media_luximage)+1); + +ALTER TABLE posts_post DROP CONSTRAINT posts_post_featured_image_id_93b44ab4_fk_photos_luximage_id; diff --git a/design/templates/lib/img_blok.html b/design/templates/lib/img_blok.html index b7ed58b..2d0e947 100644 --- a/design/templates/lib/img_blok.html +++ b/design/templates/lib/img_blok.html @@ -2,7 +2,7 @@ {% if caption or exif or image.photo_credit_source %} {%else%}{%if not is_cluster %}
{%endif%}{%endif%} - {{image.alt}} photographed by {% if image.photo_credit_source %}{{image.photo_credit_source}}{%else%}luxagraf{%endif%} + {{image.alt}} photographed by {% if image.photo_credit_source %}{{image.photo_credit_source}}{%else%}luxagraf{%endif%} {% if caption or exif or image.photo_credit_source %}
{% endif %}{% if caption %}{{image.caption|safe}}{% endif %}{% if exif %} | Camera: {{image.exif_make}} {{image.exif_model}} with {{image.exif_lens}}{% endif %}{% if image.photo_credit_source %}{%if caption or exif %} | {%endif%}image by {% if image.photo_credit_url %}{%endif%}{%endif%}{% if caption or exif or image.photo_credit_source %}
{%else%}{%if not is_cluster %}
{%endif%} diff --git a/design/templates/lib/img_cluster.html b/design/templates/lib/img_cluster.html index e425727..48b9b99 100644 --- a/design/templates/lib/img_cluster.html +++ b/design/templates/lib/img_cluster.html @@ -2,7 +2,7 @@ {% if caption or exif %}
{%endif%} - {%if image.alt %}{{image.alt}}{%else%}{{image.title}}{%endif%} photographed by {% if image.photo_credit_source %}{{image.photo_credit_source}}{%else%}luxagraf{%endif%} + {%if image.alt %}{{image.alt}}{%else%}{{image.title}}{%endif%} photographed by {% if image.photo_credit_source %}{{image.photo_credit_source}}{%else%}luxagraf{%endif%} {% if caption or exif %}
{% endif %}{% if caption %}{{image.caption|safe}}{% endif %}{% if exif %} | Camera: {{image.exif_make}} {{image.exif_model}} with {{image.exif_lens}}{% endif %}{% if caption or exif %}
{% endif %} diff --git a/design/templates/lib/img_pic960.html b/design/templates/lib/img_pic960.html index faee439..1915ce6 100644 --- a/design/templates/lib/img_pic960.html +++ b/design/templates/lib/img_pic960.html @@ -2,7 +2,7 @@ {% if caption or exif or image.photo_credit_source %} {%else%}{%if not is_cluster %}
{%endif%}{%endif%} - {{image.alt}} photographed by {% if image.photo_credit_source %}{{image.photo_credit_source}}{%else%}luxagraf{%endif%} + {{image.alt}} photographed by {% if image.photo_credit_source %}{{image.photo_credit_source}}{%else%}luxagraf{%endif%} {% if caption or exif or image.photo_credit_source %}
{% endif %}{% if caption %}{{image.caption|safe}}{% endif %}{% if exif %} | Camera: {{image.exif_make}} {{image.exif_model}} with {{image.exif_lens}}{% endif %}{% if image.photo_credit_source %}{%if caption or exif %} | {%endif%}image by {% if image.photo_credit_url %}{%endif%}{%endif%}{% if caption or exif or image.photo_credit_source %}
{%else%}{%if not is_cluster %}
{%endif%} diff --git a/design/templates/lib/img_picfull.html b/design/templates/lib/img_picfull.html index 4a8c36d..15dd5f6 100644 --- a/design/templates/lib/img_picfull.html +++ b/design/templates/lib/img_picfull.html @@ -3,7 +3,7 @@ {% if caption or exif or image.photo_credit_source %} {%else%}{%if not is_cluster %}
{%endif%}{%endif%} - {{image.alt}} photographed by {% if image.photo_credit_source %}{{image.photo_credit_source}}{%else%}luxagraf{%endif%} + {{image.alt}} photographed by {% if image.photo_credit_source %}{{image.photo_credit_source}}{%else%}luxagraf{%endif%} {% if caption or exif or image.photo_credit_source %}
{% endif %}{% if caption %}{{image.caption|safe}}{% endif %}{% if exif %} | Camera: {{image.exif_make}} {{image.exif_model}} with {{image.exif_lens}}{% endif %}{% if image.photo_credit_source %}{%if caption or exif %} | {%endif%}image by {% if image.photo_credit_url %}{%endif%}{%endif%}{% if caption or exif or image.photo_credit_source %}
{%else%}{%if not is_cluster %}
{%endif%} diff --git a/design/templates/lib/img_pictall.html b/design/templates/lib/img_pictall.html index 98e8dc4..7d539e8 100644 --- a/design/templates/lib/img_pictall.html +++ b/design/templates/lib/img_pictall.html @@ -2,8 +2,8 @@ {% load get_image_width %} {% if caption %}
{%endif%} -{{image.alt}} photographed by {% if image.photo_credit_source %}{{image.photo_credit_source}}{%else%}luxagraf{%endif%} +{{image.alt}} photographed by {% if image.photo_credit_source %}{{image.photo_credit_source}}{%else%}luxagraf{%endif%} {% if caption %}
{{image.caption|safe}}
{% endif %} diff --git a/design/templates/lib/img_picwide.html b/design/templates/lib/img_picwide.html index 3709e37..2c9b17b 100644 --- a/design/templates/lib/img_picwide.html +++ b/design/templates/lib/img_picwide.html @@ -2,7 +2,7 @@ {% if caption or exif or image.photo_credit_source %} {%else%}{%if not is_cluster %}
{%endif%}{%endif%} - {{image.alt}} photographed by {% if image.photo_credit_source %}{{image.photo_credit_source}}{%else%}luxagraf{%endif%} + {{image.alt}} photographed by {% if image.photo_credit_source %}{{image.photo_credit_source}}{%else%}luxagraf{%endif%} {% if caption or exif or image.photo_credit_source %}
{% endif %}{% if caption %}{{image.caption|safe}}{% endif %}{% if exif %} | Camera: {{image.exif_make}} {{image.exif_model}} with {{image.exif_lens}}{% endif %}{% if image.photo_credit_source %}{%if caption or exif %} | {%endif%}image by {% if image.photo_credit_url %}{%endif%}{%endif%}{% if caption or exif or image.photo_credit_source %}
{%else%}{%if not is_cluster %}
{%endif%} diff --git a/design/templates/lib/img_product.html b/design/templates/lib/img_product.html index 4a8c36d..58dd43e 100644 --- a/design/templates/lib/img_product.html +++ b/design/templates/lib/img_product.html @@ -3,7 +3,7 @@ {% if caption or exif or image.photo_credit_source %} {%else%}{%if not is_cluster %}
{%endif%}{%endif%} - {{image.alt}} photographed by {% if image.photo_credit_source %}{{image.photo_credit_source}}{%else%}luxagraf{%endif%} + {{image.alt}} photographed by {% if image.photo_credit_source %}{{image.photo_credit_source}}{%else%}luxagraf{%endif%} {% if caption or exif or image.photo_credit_source %}
{% endif %}{% if caption %}{{image.caption|safe}}{% endif %}{% if exif %} | Camera: {{image.exif_make}} {{image.exif_model}} with {{image.exif_lens}}{% endif %}{% if image.photo_credit_source %}{%if caption or exif %} | {%endif%}image by {% if image.photo_credit_url %}{%endif%}{%endif%}{% if caption or exif or image.photo_credit_source %}
{%else%}{%if not is_cluster %}
{%endif%} -- cgit v1.2.3-70-g09d2