-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove album slideshow view, add album grid view, add photoswipe ligh…
…tbox to album grid view (image and video support for now), add plyr video player to file detail page, remove unused js deps
- Loading branch information
Showing
23 changed files
with
566 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
recursive-include static-src * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{% extends "album_detail.html" %} | ||
{% load humanize static %} | ||
{% block extra_head %} | ||
<link rel="stylesheet" href="{% static 'css/vendor/photoswipe-v5.4.4.css' %}"> | ||
{% endblock extra_head %} | ||
|
||
{% block album_detail %} | ||
<div class="pswp-gallery pswp-gallery--single-column" id="gallery"> | ||
{% for file in filter.qs %} | ||
|
||
{% if file.filetype == "image" %} | ||
<a href="{{ file.original.url }}" data-pswp-width="{{ file.width }}" data-pswp-height="{{ file.height }}" data-pswp-type="image" data-pswp-srcset="{% render_source_set field_file=file.original file_type="WEBP" max_width=4000 cols=12 %}">{% thumbnail file.thumbnail.source filetype=file.filetype width=200 ratio="1/1" %}</a> | ||
|
||
{% elif file.filetype == "video" %} | ||
{# Set max video player size to 1280x1024 #} | ||
<a href="{{ file.original.url }}" data-pswp-type="video" data-pswp-width="1280" data-pswp-height="1024">{% thumbnail file.thumbnail.source filetype=file.filetype width=200 ratio="16/9" %}</a> | ||
|
||
{% else %} | ||
<a href="{{ file.original.url }}"> | ||
{% thumbnail file.thumbnail.source filetype=file.filetype width=200 ratio="1/1" %} | ||
</a> | ||
{% endif %} | ||
{% endfor %} | ||
</div> | ||
<script type="module" src="{% static 'js/photoswipe.js' %}"></script> | ||
{% endblock album_detail %} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
<figure> | ||
<audio controls src="{{ url }}" preload="metadata"></audio><br> | ||
<a href="{{ url }}">Download audio</a> | ||
</figure> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
<figure> | ||
<video controls src="{{ url }}" preload="metadata"></video><br> | ||
<a href="{{ url }}">Download video</a> | ||
<video id="player" controls src="{{ url }}" preload="metadata"></video><br> | ||
</figure> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<title>{{ image.title }}</title> | ||
</head> | ||
<body> | ||
{% render_file image.original img_alt=file.title img_loading="lazy" img_class="img-fluid" lg=9 sm=12 %} | ||
</body> | ||
</html> |
Oops, something went wrong.