-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #130 from neon-jungle/generic-index
Generic index
- Loading branch information
Showing
14 changed files
with
98 additions
and
180 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
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,5 +1,5 @@ | ||
[metadata] | ||
description-file = README.rst | ||
description_file = README.rst | ||
|
||
[bdist_wheel] | ||
universal = 1 | ||
|
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 |
---|---|---|
|
@@ -10,14 +10,14 @@ | |
|
||
setup( | ||
name="wagtailvideos", | ||
version="6.1.2", | ||
version="7.0.0", | ||
description="A wagtail module for uploading and displaying videos in various codecs.", | ||
long_description=readme, | ||
author="Neon Jungle", | ||
author_email="[email protected]", | ||
url="https://github.com/neon-jungle/wagtailvideos", | ||
install_requires=[ | ||
"wagtail>=5.2", | ||
"wagtail>=6.1", | ||
"Django>=3.2", | ||
"bcp47==0.0.4", | ||
"wagtail-modeladmin>=2.0.0" | ||
|
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,43 +1,11 @@ | ||
{% extends "wagtailadmin/base.html" %} | ||
{% extends "wagtailadmin/generic/index.html" %} | ||
{% load i18n %} | ||
|
||
{% block titletag %}{% trans "Videos" %}{% endblock %} | ||
{% block extra_js %} | ||
{{ block.super }} | ||
<script> | ||
window.headerSearch = { | ||
url: "{% url 'wagtailvideos:index' %}", | ||
termInput: "#id_q", | ||
targetOutput: "#image-results" | ||
} | ||
|
||
$(function() { | ||
$('#collection_chooser_collection_id').change(function() { | ||
this.form.submit(); | ||
}) | ||
}); | ||
</script> | ||
{% endblock %} | ||
|
||
{% block content %} | ||
{% trans "Videos" as video_str %} | ||
|
||
{% trans "Add a video" as add_video_str %} | ||
{% url "wagtailvideos:add_multiple" as add_link %} | ||
{% include "wagtailadmin/shared/header.html" with title=video_str add_link="wagtailvideos:add_multiple" action_url=add_link icon="media" add_text=add_video_str action_text=add_video_str search_url="wagtailvideos:index" %} | ||
|
||
<div class="nice-padding"> | ||
{% if collections %} | ||
<form class="image-search search-bar" action="{% url 'wagtailvideos:index' %}" method="GET"> | ||
<ul class="fields"> | ||
{% include "wagtailadmin/shared/collection_chooser.html" %} | ||
</ul> | ||
</form> | ||
{% endif %} | ||
|
||
<div id="image-results"> | ||
{% include "wagtailvideos/videos/results.html" %} | ||
</div> | ||
</div> | ||
{% block slim_header %} | ||
|
||
{% trans "Add a video" as add_video_str %} | ||
{% include "wagtailadmin/shared/headers/slim_header.html" with title=video_str breadcrumbs_items=breadcrumbs_items icon_name="media" search_url=index_results_url search_form=search_form filters=filters buttons=header_buttons only %} | ||
{% endblock %} |
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
Oops, something went wrong.