From eeaddb27560d723ca7d61359744ceb2709fccd2d Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Tue, 15 Oct 2024 21:01:31 +0100 Subject: Renamed from pyblackbird_cc to alphabetlearning - everywhere --- pyblackbird_cc/templates/resources/admin_bar.html | 21 ---- .../resources/create_featured_resource.html | 26 ----- .../templates/resources/hx_download_button.html | 3 - .../resources/resource_card_featured.html | 49 --------- .../resources/resource_card_standard.html | 56 ----------- .../templates/resources/resource_create.html | 22 ----- .../templates/resources/resource_detail.html | 82 --------------- .../templates/resources/resource_list.html | 110 --------------------- .../resources/resource_metadata_update.html | 25 ----- .../templates/resources/update_pdfs.html | 27 ----- .../templates/resources/update_thumbnails.html | 29 ------ 11 files changed, 450 deletions(-) delete mode 100644 pyblackbird_cc/templates/resources/admin_bar.html delete mode 100644 pyblackbird_cc/templates/resources/create_featured_resource.html delete mode 100644 pyblackbird_cc/templates/resources/hx_download_button.html delete mode 100644 pyblackbird_cc/templates/resources/resource_card_featured.html delete mode 100644 pyblackbird_cc/templates/resources/resource_card_standard.html delete mode 100644 pyblackbird_cc/templates/resources/resource_create.html delete mode 100644 pyblackbird_cc/templates/resources/resource_detail.html delete mode 100644 pyblackbird_cc/templates/resources/resource_list.html delete mode 100644 pyblackbird_cc/templates/resources/resource_metadata_update.html delete mode 100644 pyblackbird_cc/templates/resources/update_pdfs.html delete mode 100644 pyblackbird_cc/templates/resources/update_thumbnails.html (limited to 'pyblackbird_cc/templates/resources') diff --git a/pyblackbird_cc/templates/resources/admin_bar.html b/pyblackbird_cc/templates/resources/admin_bar.html deleted file mode 100644 index ddb8e00..0000000 --- a/pyblackbird_cc/templates/resources/admin_bar.html +++ /dev/null @@ -1,21 +0,0 @@ - {# admin block #} - {% if request.user.is_authenticated and request.user.is_staff %} -
-
Admin bar
-

- Only you will see this bar - normal users will not see it. It allows us to - include buttons for adding new resources, etc. -

-
- Add a new resource -
- Logged in as - {{ request.user.email }} -
-
- {% csrf_token %} - -
-
-
- {% endif %} diff --git a/pyblackbird_cc/templates/resources/create_featured_resource.html b/pyblackbird_cc/templates/resources/create_featured_resource.html deleted file mode 100644 index 19022fc..0000000 --- a/pyblackbird_cc/templates/resources/create_featured_resource.html +++ /dev/null @@ -1,26 +0,0 @@ -{% extends "base.html" %} - -{% load static %} - -{% block title %} - Add featured resource -{% endblock title %} -{% block content %} - {% if messages %} - - {% endif %} - {% if request.user.is_authenticated and request.user.is_staff %} -
-
-

Configure featured resources

-

You can select three resources to be "featured" on the main page

-
-
- {% else %} -

You must be a super-user to access this page.

- {% endif %} -{% endblock content %} diff --git a/pyblackbird_cc/templates/resources/hx_download_button.html b/pyblackbird_cc/templates/resources/hx_download_button.html deleted file mode 100644 index 1c956a5..0000000 --- a/pyblackbird_cc/templates/resources/hx_download_button.html +++ /dev/null @@ -1,3 +0,0 @@ -

- Download the resource -

diff --git a/pyblackbird_cc/templates/resources/resource_card_featured.html b/pyblackbird_cc/templates/resources/resource_card_featured.html deleted file mode 100644 index 8a92729..0000000 --- a/pyblackbird_cc/templates/resources/resource_card_featured.html +++ /dev/null @@ -1,49 +0,0 @@ -{% load static %} -{% load markdown_extras %} - -
- {{ resource.thumbnail_filename }} -
- -
- {{ resource.age_range }} - {% if resource.main_resource_category_name == "English as a Foreign Language (EFL)" %} - EFL - {% else %} - {{ resource.main_resource_category_name }} - {% endif %} - {% if request.user.is_authenticated and request.user.is_staff %} - Feature slot: {{ resource.feature_slot }} - {% endif %} -
- {% if resource.card_description %} -
-

{{ resource.card_description | markdown | safe }}

-
- {% else %} -

{{ resource.description | markdown | safe }}

- {% endif %} -
-

1 credit

- -
-
- - {% if request.user.is_authenticated and request.user.is_staff %} - - {% endif %} -
diff --git a/pyblackbird_cc/templates/resources/resource_card_standard.html b/pyblackbird_cc/templates/resources/resource_card_standard.html deleted file mode 100644 index f8a557b..0000000 --- a/pyblackbird_cc/templates/resources/resource_card_standard.html +++ /dev/null @@ -1,56 +0,0 @@ -{% load static %} -{% load markdown_extras %} - - - -
-
-
- {{ resource.thumbnail_filename }} -
-
-
- -
- {{ resource.age_range }} - {% if resource.main_resource_category_name == "English as a Foreign Language (EFL)" %} - EFL - {% else %} - {{ resource.main_resource_category_name }} - {% endif %} - {% if request.user.is_authenticated and request.user.is_staff %} - Feature slot: {{ resource.feature_slot }} - {% endif %} -
-
-

{{ resource.card_description }}

-
-
-

1 credit

- -
-
-
- {% if request.user.is_authenticated and request.user.is_staff %} - - {% endif %} -
- -
diff --git a/pyblackbird_cc/templates/resources/resource_create.html b/pyblackbird_cc/templates/resources/resource_create.html deleted file mode 100644 index d428e46..0000000 --- a/pyblackbird_cc/templates/resources/resource_create.html +++ /dev/null @@ -1,22 +0,0 @@ -{% extends "base.html" %} - -{% load static %} -{% load crispy_forms_tags %} - -{# {% block extra_css %}#} -{# #} -{# {% endblock %}#} -{% block content %} -
-
-

Upload a new resource

-

{% lorem %}

-
- {% csrf_token %} - {% crispy form form.helper %} -
-
-
-{% endblock content %} diff --git a/pyblackbird_cc/templates/resources/resource_detail.html b/pyblackbird_cc/templates/resources/resource_detail.html deleted file mode 100644 index 6c6ceda..0000000 --- a/pyblackbird_cc/templates/resources/resource_detail.html +++ /dev/null @@ -1,82 +0,0 @@ -{% extends 'base.html' %} - -{% load markdown_extras %} - -{% block content %} - -
-
- {% for tn_url, tn_filename in resource.thumbnails %} -
- {{ tn_filename }} -
- {% endfor %} -
-
-
-
-

{{ resource.name }}

-
-
-
-
-

{{ resource.main_resource_category }}

-
-
-

{{ resource.age_range }}

-
-
- -
- {% if resource.pdf_filenames|length > 1 %} -

Contains {{ resource.pdf_filenames|length }} PDF files.

- {% else %} -

Contains {{ resource.pdf_filenames|length }} PDF file.

- {% endif %} -
-
-

£1.50 (or 1 credit)

-
- -
- -
-
-

Product summary

-

{{resource.card_description}}

-
-
-
-
-
- -
-
-
-
-
- - - -
- {% for snapshot_filename, snapshot_urls in resource.snapshot_urls.items %} - {% for snapshot_url in snapshot_urls %} -
- {{ snapshot_name }} -
- {% endfor %} - {% endfor %} -
- - -
-
-

Product detail

- {{ resource.description | markdown | safe }} -
-
- -{% endblock content %} - diff --git a/pyblackbird_cc/templates/resources/resource_list.html b/pyblackbird_cc/templates/resources/resource_list.html deleted file mode 100644 index fdd0394..0000000 --- a/pyblackbird_cc/templates/resources/resource_list.html +++ /dev/null @@ -1,110 +0,0 @@ -{% extends "base.html" %} -{% load static %} -{% load markdown_extras %} -{% block title %} - Alphabet Learning - Resource List -{% endblock title %} -{% block content %} - -
- {% include "resources/admin_bar.html" %} -
- - {# featured resources #} - {% if featured_resources %} -
-
Featured resources
-
- -
- {% for featured_resource in featured_resources %} - {% if featured_resources|length == 1 %} -
- {% elif featured_resources|length == 2 %} -
- {% elif featured_resources|length == 3 %} -
- {% endif %} - {% include "resources/resource_card_featured.html" with resource=featured_resource %} -
- {% endfor %} -
- {% else %} -

There are no featured resources

- {% endif %} - - {# standard resources #} -
-
-
Standard resources
-
-
- - - - - -
- {% for resource in page_obj.object_list %} -
- {% include "resources/resource_card_standard.html" with resource=resource %} -
- {% endfor %} -
- - {# Pagination #} - {% if page_obj.has_other_pages %} -
-
- -
-
- {% endif %} -{% endblock content %} diff --git a/pyblackbird_cc/templates/resources/resource_metadata_update.html b/pyblackbird_cc/templates/resources/resource_metadata_update.html deleted file mode 100644 index 2c6daa1..0000000 --- a/pyblackbird_cc/templates/resources/resource_metadata_update.html +++ /dev/null @@ -1,25 +0,0 @@ -{% extends "base.html" %} - -{% load static %} -{% load crispy_forms_tags %} - -{% block title %} - Joanna Lemon Learning - Update Resource -{% endblock title %} -{# {% block extra_css %}#} -{# #} -{# {% endblock %}#} -{% block content %} -
-
-

Update this resource

-

{% lorem %}

-
- {% csrf_token %} - {% crispy form form.helper %} - {# now for the submit button #} -
-
-
-{% endblock content %} diff --git a/pyblackbird_cc/templates/resources/update_pdfs.html b/pyblackbird_cc/templates/resources/update_pdfs.html deleted file mode 100644 index b490b4f..0000000 --- a/pyblackbird_cc/templates/resources/update_pdfs.html +++ /dev/null @@ -1,27 +0,0 @@ -{% extends "base.html" %} -{% load static %} -{% load crispy_forms_tags %} - -{% block content %} -
-
-

Update PDFs for {{ resource.name }} resource

- -

The current PDFs for this resource are:

- -
    - {% for pdf in resource.get_pdf_file_names %} -
  • {{ pdf }}
  • - {% endfor %} -
- -
- {% csrf_token %} - {% crispy form form.helper %} -
-
-
- - -{% endblock %} diff --git a/pyblackbird_cc/templates/resources/update_thumbnails.html b/pyblackbird_cc/templates/resources/update_thumbnails.html deleted file mode 100644 index e473a00..0000000 --- a/pyblackbird_cc/templates/resources/update_thumbnails.html +++ /dev/null @@ -1,29 +0,0 @@ -{% extends "base.html" %} -{% load static %} -{% load crispy_forms_tags %} - -{% block content %} -
-
-

Update feature images for {{ resource.name }} resource

- -

The current thumbnails for this resource are:

- -
    - {% for t in resource.thumbnail_filenames %} -
  • {{ t }}
  • - {% endfor %} -
- -
- {% csrf_token %} - {% crispy form form.helper %} -
- - -
-
- - -{% endblock %} -- cgit v1.2.3