Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added "date_end" to be shown in gallery month overview. #148

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions prosopopee/prosopopee.py
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,7 @@ def create_cover(gallery_name, gallery_settings, gallery_path):
"link": gallery_name + "/",
"sub_title": gallery_settings.get("sub_title", ""),
"date": gallery_settings.get("date", ""),
"date_end": gallery_settings.get("date_end", ""),
"tags": gallery_settings.get("tags", ""),
"cover_type": cover_image_type,
"cover": cover_image_url,
Expand Down
3 changes: 2 additions & 1 deletion prosopopee/themes/exposure/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
<div class="gallery-title">
<h2>{{ gallery.title }}</h2>
{% if gallery.sub_title %}<h3>{{ gallery.sub_title }}</h3>{% endif %}
{% if settings.show_date and gallery.date %}<div class="gallery-datetime">{{ gallery.date|local_date("dd MMMM yyyy") }}</div>{% endif %}
{% if settings.show_date and gallery.date and gallery.date_end %}<div class="gallery-datetime">{{ gallery.date|local_date("dd MMMM yyyy") }} - {{ gallery.date_end|local_date("dd MMMM yyyy") }}</div>{% endif %}
{% if settings.show_date and gallery.date and not gallery.date_end %}<div class="gallery-datetime">{{ gallery.date|local_date("dd MMMM yyyy") }}</div>{% endif %}
{% if gallery.tags %}<div class="gallery-tag">IN {% for tag in gallery.tags -%} <span> {{ tag }}</span> {% endfor -%}</div>{% endif %}
</div>
</a>
Expand Down
3 changes: 2 additions & 1 deletion prosopopee/themes/light/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
<div class="gallery-title">
<h2>{{ gallery.title }}</h2>
{% if gallery.sub_title %}<h3>{{ gallery.sub_title }}</h3>{% endif %}
{% if settings.show_date and gallery.date %}<div class="gallery-datetime">{{ gallery.date|local_date("dd MMMM yyyy") }}</div>{% endif %}
{% if settings.show_date and gallery.date and gallery.date_end %}<div class="gallery-datetime">{{ gallery.date|local_date("dd MMMM yyyy") }} - {{ gallery.date_end|local_date("dd MMMM yyyy") }}</div>{% endif %}
{% if settings.show_date and gallery.date and not gallery.date_end %}<div class="gallery-datetime">{{ gallery.date|local_date("dd MMMM yyyy") }}</div>{% endif %}
{% if gallery.tags %}<div class="gallery-tag">IN {% for tag in gallery.tags %} <span> {{ tag }}</span> {% endfor %}</div>{% endif %}
</div>
</a>
Expand Down
3 changes: 2 additions & 1 deletion prosopopee/themes/material/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
<div class="gallery-title">
<h2>{{ gallery.title }}</h2>
{% if gallery.sub_title %}<h3>{{ gallery.sub_title }}</h3>{% endif %}
{% if settings.show_date and gallery.date %}<div class="gallery-datetime">{{ gallery.date|local_date("dd MMMM yyyy") }}</div>{% endif %}
{% if settings.show_date and gallery.date and gallery.date_end %}<div class="gallery-datetime">{{ gallery.date|local_date("dd MMMM yyyy") }} - {{ gallery.date_end|local_date("dd MMMM yyyy") }}</div>{% endif %}
{% if settings.show_date and gallery.date and not gallery.date_end %}<div class="gallery-datetime">{{ gallery.date|local_date("dd MMMM yyyy") }}</div>{% endif %}
{% if gallery.tags %}<div class="gallery-tag">IN {% for tag in gallery.tags -%} <span> {{ tag }}</span> {% endfor -%}</div>{% endif %}
</div>
</a>
Expand Down