diff --git a/account/templates/_types/auth/_bookings_panel.html b/account/templates/_types/auth/_bookings_panel.html deleted file mode 100644 index 28f8280..0000000 --- a/account/templates/_types/auth/_bookings_panel.html +++ /dev/null @@ -1,44 +0,0 @@ -
-
- -

Bookings

- - {% if bookings %} -
- {% for booking in bookings %} -
-
-
-

{{ booking.name }}

-
- {{ booking.start_at.strftime('%d %b %Y, %H:%M') }} - {% if booking.end_at %} - – {{ booking.end_at.strftime('%H:%M') }} - {% endif %} - {% if booking.calendar_name %} - · {{ booking.calendar_name }} - {% endif %} - {% if booking.cost %} - · £{{ booking.cost }} - {% endif %} -
-
-
- {% if booking.state == 'confirmed' %} - confirmed - {% elif booking.state == 'provisional' %} - provisional - {% else %} - {{ booking.state }} - {% endif %} -
-
-
- {% endfor %} -
- {% else %} -

No bookings yet.

- {% endif %} - -
-
diff --git a/account/templates/_types/auth/_fragment_panel.html b/account/templates/_types/auth/_fragment_panel.html deleted file mode 100644 index f27345c..0000000 --- a/account/templates/_types/auth/_fragment_panel.html +++ /dev/null @@ -1 +0,0 @@ -{{ page_fragment_html | safe }} diff --git a/account/templates/_types/auth/_main_panel.html b/account/templates/_types/auth/_main_panel.html deleted file mode 100644 index e80fd12..0000000 --- a/account/templates/_types/auth/_main_panel.html +++ /dev/null @@ -1,49 +0,0 @@ -
-
- - {% if error %} -
- {{ error }} -
- {% endif %} - - {# Account header #} -
-
-

Account

- {% if g.user %} -

{{ g.user.email }}

- {% if g.user.name %} -

{{ g.user.name }}

- {% endif %} - {% endif %} -
-
- - -
-
- - {# Labels #} - {% set labels = g.user.labels if g.user is defined and g.user.labels is defined else [] %} - {% if labels %} -
-

Labels

-
- {% for label in labels %} - - {{ label.name }} - - {% endfor %} -
-
- {% endif %} - -
-
diff --git a/account/templates/_types/auth/_nav.html b/account/templates/_types/auth/_nav.html deleted file mode 100644 index ff5de92..0000000 --- a/account/templates/_types/auth/_nav.html +++ /dev/null @@ -1,7 +0,0 @@ -{% import 'macros/links.html' as links %} -{% call links.link(account_url('/newsletters/'), hx_select_search, select_colours, True, aclass=styles.nav_button) %} - newsletters -{% endcall %} -{% if account_nav_html %} - {{ account_nav_html | safe }} -{% endif %} diff --git a/account/templates/_types/auth/_newsletter_toggle.html b/account/templates/_types/auth/_newsletter_toggle.html deleted file mode 100644 index 700c402..0000000 --- a/account/templates/_types/auth/_newsletter_toggle.html +++ /dev/null @@ -1,17 +0,0 @@ -
- -
diff --git a/account/templates/_types/auth/_newsletters_panel.html b/account/templates/_types/auth/_newsletters_panel.html deleted file mode 100644 index ded4ee2..0000000 --- a/account/templates/_types/auth/_newsletters_panel.html +++ /dev/null @@ -1,46 +0,0 @@ -
-
- -

Newsletters

- - {% if newsletter_list %} -
- {% for item in newsletter_list %} -
-
-

{{ item.newsletter.name }}

- {% if item.newsletter.description %} -

{{ item.newsletter.description }}

- {% endif %} -
-
- {% if item.un %} - {% with un=item.un %} - {% include "_types/auth/_newsletter_toggle.html" %} - {% endwith %} - {% else %} - {# No subscription row yet — show an off toggle that will create one #} -
- -
- {% endif %} -
-
- {% endfor %} -
- {% else %} -

No newsletters available.

- {% endif %} - -
-
diff --git a/account/templates/_types/auth/_oob_elements.html b/account/templates/_types/auth/_oob_elements.html deleted file mode 100644 index cafb113..0000000 --- a/account/templates/_types/auth/_oob_elements.html +++ /dev/null @@ -1,29 +0,0 @@ -{% extends 'oob_elements.html' %} - -{# OOB elements for HTMX navigation - all elements that need updating #} - -{# Import shared OOB macros #} -{% from '_types/root/_oob_menu.html' import mobile_menu with context %} - -{# Header with app title - includes cart-mini, navigation, and market-specific header #} - -{% block oobs %} - - {% from '_types/root/_n/macros.html' import oob_header with context %} - {{oob_header('root-header-child', 'auth-header-child', '_types/auth/header/_header.html')}} - - {% from '_types/root/header/_header.html' import header_row with context %} - {{ header_row(oob=True) }} -{% endblock %} - - -{% block mobile_menu %} - {% include '_types/auth/_nav.html' %} -{% endblock %} - - -{% block content %} - {% include oob.main %} -{% endblock %} - - diff --git a/account/templates/_types/auth/_tickets_panel.html b/account/templates/_types/auth/_tickets_panel.html deleted file mode 100644 index 69f7596..0000000 --- a/account/templates/_types/auth/_tickets_panel.html +++ /dev/null @@ -1,44 +0,0 @@ -
-
- -

Tickets

- - {% if tickets %} -
- {% for ticket in tickets %} -
-
-
- - {{ ticket.entry_name }} - -
- {{ ticket.entry_start_at.strftime('%d %b %Y, %H:%M') }} - {% if ticket.calendar_name %} - · {{ ticket.calendar_name }} - {% endif %} - {% if ticket.ticket_type_name %} - · {{ ticket.ticket_type_name }} - {% endif %} -
-
-
- {% if ticket.state == 'checked_in' %} - checked in - {% elif ticket.state == 'confirmed' %} - confirmed - {% else %} - {{ ticket.state }} - {% endif %} -
-
-
- {% endfor %} -
- {% else %} -

No tickets yet.

- {% endif %} - -
-
diff --git a/account/templates/_types/auth/check_email.html b/account/templates/_types/auth/check_email.html deleted file mode 100644 index e4cea28..0000000 --- a/account/templates/_types/auth/check_email.html +++ /dev/null @@ -1,33 +0,0 @@ -{% extends "_types/root/index.html" %} -{% block content %} -
-
-

Check your email

- -

- If an account exists for - {{ email }}, - you’ll receive a link to sign in. It expires in 15 minutes. -

- - {% if email_error %} - - {% endif %} - -

- - ← Back - -

-
-
-{% endblock %} diff --git a/account/templates/_types/auth/header/_header.html b/account/templates/_types/auth/header/_header.html deleted file mode 100644 index c59a712..0000000 --- a/account/templates/_types/auth/header/_header.html +++ /dev/null @@ -1,12 +0,0 @@ -{% import 'macros/links.html' as links %} -{% macro header_row(oob=False) %} - {% call links.menu_row(id='auth-row', oob=oob) %} - {% call links.link(account_url('/'), hx_select_search ) %} - -
account
- {% endcall %} - {% call links.desktop_nav() %} - {% include "_types/auth/_nav.html" %} - {% endcall %} - {% endcall %} -{% endmacro %} \ No newline at end of file diff --git a/account/templates/_types/auth/index copy.html b/account/templates/_types/auth/index copy.html deleted file mode 100644 index cd4d6d3..0000000 --- a/account/templates/_types/auth/index copy.html +++ /dev/null @@ -1,18 +0,0 @@ -{% extends "_types/root/_index.html" %} - - -{% block root_header_child %} - {% from '_types/root/_n/macros.html' import index_row with context %} - {% call index_row('auth-header-child', '_types/auth/header/_header.html') %} - {% block auth_header_child %} - {% endblock %} - {% endcall %} -{% endblock %} - -{% block _main_mobile_menu %} - {% include "_types/auth/_nav.html" %} -{% endblock %} - -{% block content %} - {% include '_types/auth/_main_panel.html' %} -{% endblock %} diff --git a/account/templates/_types/auth/index.html b/account/templates/_types/auth/index.html deleted file mode 100644 index 3c66bf1..0000000 --- a/account/templates/_types/auth/index.html +++ /dev/null @@ -1,18 +0,0 @@ -{% extends oob.extends %} - - -{% block root_header_child %} - {% from '_types/root/_n/macros.html' import index_row with context %} - {% call index_row(oob.child_id, oob.header) %} - {% block auth_header_child %} - {% endblock %} - {% endcall %} -{% endblock %} - -{% block _main_mobile_menu %} - {% include oob.nav %} -{% endblock %} - -{% block content %} - {% include oob.main %} -{% endblock %} diff --git a/account/templates/_types/auth/login.html b/account/templates/_types/auth/login.html deleted file mode 100644 index b55ea99..0000000 --- a/account/templates/_types/auth/login.html +++ /dev/null @@ -1,46 +0,0 @@ -{% extends "_types/root/index.html" %} -{% block content %} -
-
-

Sign in

-

- Enter your email and we’ll email you a one-time sign-in link. -

- - {% if error %} -
- {{ error }} -
- {% endif %} - -
- -
- - -
- - -
-
-
-{% endblock %} diff --git a/account/templates/auth/check_email.html b/account/templates/auth/check_email.html deleted file mode 100644 index 5eb1b61..0000000 --- a/account/templates/auth/check_email.html +++ /dev/null @@ -1,19 +0,0 @@ -{% extends "_types/root/_index.html" %} -{% block meta %}{% endblock %} -{% block title %}Check your email — Rose Ash{% endblock %} -{% block content %} -
-

Check your email

-

- We sent a sign-in link to {{ email }}. -

-

- Click the link in the email to sign in. The link expires in 15 minutes. -

- {% if email_error %} -
- {{ email_error }} -
- {% endif %} -
-{% endblock %} diff --git a/account/templates/auth/device.html b/account/templates/auth/device.html deleted file mode 100644 index 9ed704e..0000000 --- a/account/templates/auth/device.html +++ /dev/null @@ -1,41 +0,0 @@ -{% extends "_types/root/_index.html" %} -{% block meta %}{% endblock %} -{% block title %}Authorize Device — Rose Ash{% endblock %} -{% block content %} -
-

Authorize device

-

Enter the code shown in your terminal to sign in.

- - {% if error %} -
- {{ error }} -
- {% endif %} - -
- -
- - -
- -
-
-{% endblock %} diff --git a/account/templates/auth/device_approved.html b/account/templates/auth/device_approved.html deleted file mode 100644 index ee052a9..0000000 --- a/account/templates/auth/device_approved.html +++ /dev/null @@ -1,9 +0,0 @@ -{% extends "_types/root/_index.html" %} -{% block meta %}{% endblock %} -{% block title %}Device Authorized — Rose Ash{% endblock %} -{% block content %} -
-

Device authorized

-

You can close this window and return to your terminal.

-
-{% endblock %} diff --git a/account/templates/auth/login.html b/account/templates/auth/login.html deleted file mode 100644 index 79031e5..0000000 --- a/account/templates/auth/login.html +++ /dev/null @@ -1,36 +0,0 @@ -{% extends "_types/root/_index.html" %} -{% block meta %}{% endblock %} -{% block title %}Login — Rose Ash{% endblock %} -{% block content %} -
-

Sign in

- - {% if error %} -
- {{ error }} -
- {% endif %} - -
- -
- - -
- -
-
-{% endblock %} diff --git a/blog/templates/_email/magic_link.html b/blog/templates/_email/magic_link.html deleted file mode 100644 index 3c1eac6..0000000 --- a/blog/templates/_email/magic_link.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - -
- - -
-

{{ site_name }}

-

Sign in to your account

-

- Click the button below to sign in. This link will expire in 15 minutes. -

-
- - Sign in - -
-

Or copy and paste this link into your browser:

-

- {{ link_url }} -

-
-

- If you did not request this email, you can safely ignore it. -

-
-
- - diff --git a/blog/templates/_email/magic_link.txt b/blog/templates/_email/magic_link.txt deleted file mode 100644 index 28a2efb..0000000 --- a/blog/templates/_email/magic_link.txt +++ /dev/null @@ -1,8 +0,0 @@ -Hello, - -Click this link to sign in: -{{ link_url }} - -This link will expire in 15 minutes. - -If you did not request this, you can ignore this email. diff --git a/blog/templates/_types/blog/_action_buttons.html b/blog/templates/_types/blog/_action_buttons.html deleted file mode 100644 index fe10ddd..0000000 --- a/blog/templates/_types/blog/_action_buttons.html +++ /dev/null @@ -1,64 +0,0 @@ -{# New Post/Page + Drafts toggle — shown in aside (desktop + mobile) #} -
- {% if has_access('blog.defpage_new_post') %} - {% set new_href = url_for('blog.defpage_new_post')|host %} - - New Post - - {% set new_page_href = url_for('blog.defpage_new_page')|host %} - - New Page - - {% endif %} - {% if g.user and (draft_count or drafts) %} - {% if drafts %} - {% set drafts_off_href = (current_local_href ~ {'drafts': None}|qs)|host %} - - Drafts - {{ draft_count }} - - {% else %} - {% set drafts_on_href = (current_local_href ~ {'drafts': '1'}|qs)|host %} - - Drafts - {{ draft_count }} - - {% endif %} - {% endif %} -
diff --git a/blog/templates/_types/blog/_card.html b/blog/templates/_types/blog/_card.html deleted file mode 100644 index 4d60c61..0000000 --- a/blog/templates/_types/blog/_card.html +++ /dev/null @@ -1,80 +0,0 @@ -{% import 'macros/stickers.html' as stick %} -
- {# ❤️ like button - OUTSIDE the link, aligned with image top #} - {% if g.user %} -
- {% set slug = post.slug %} - {% set liked = post.is_liked or False %} - {% set like_url = url_for('blog.post.like_toggle', slug=slug)|host %} - {% set item_type = 'post' %} - {% include "_types/browse/like/button.html" %} -
- {% endif %} - - {% set _href=url_for('blog.post.post_detail', slug=post.slug)|host %} - -
-

- {{ post.title }} -

- - {% if post.status == "draft" %} -
- Draft - {% if post.publish_requested %} - Publish requested - {% endif %} -
- {% if post.updated_at %} -

- Updated: {{ post.updated_at.strftime("%-d %b %Y at %H:%M") }} -

- {% endif %} - {% elif post.published_at %} -

- Published: {{ post.published_at.strftime("%-d %b %Y at %H:%M") }} -

- {% endif %} - -
- - {% if post.feature_image %} -
- -
- {% endif %} - {% if post.custom_excerpt %} -

- {{ post.custom_excerpt }} -

- {% else %} - {% if post.excerpt %} -

- {{ post.excerpt }} -

- {% endif %} - {% endif %} -
- - {# Card decorations — via fragments #} - {% if card_widgets_html %} - {% set _card_html = card_widgets_html.get(post.id|string, "") %} - {% if _card_html %}{{ _card_html | safe }}{% endif %} - {% endif %} - - {% include '_types/blog/_card/at_bar.html' %} - -
diff --git a/blog/templates/_types/blog/_card/at_bar.html b/blog/templates/_types/blog/_card/at_bar.html deleted file mode 100644 index f226d92..0000000 --- a/blog/templates/_types/blog/_card/at_bar.html +++ /dev/null @@ -1,19 +0,0 @@ -
- {% if post.tags %} -
-
in
- -
- {% endif %} -
- {% if post.authors %} -
-
by
- -
- {% endif %} -
diff --git a/blog/templates/_types/blog/_card/author.html b/blog/templates/_types/blog/_card/author.html deleted file mode 100644 index 7ddddf7..0000000 --- a/blog/templates/_types/blog/_card/author.html +++ /dev/null @@ -1,21 +0,0 @@ -{% macro author(author) %} - {% if author %} - {% if author.profile_image %} - {{ author.name }} - {% else %} -
- {# optional fallback circle with first letter -
- {{ author.name[:1] }} -
#} - {% endif %} - - - {{ author.name }} - - {% endif %} -{% endmacro %} \ No newline at end of file diff --git a/blog/templates/_types/blog/_card/authors.html b/blog/templates/_types/blog/_card/authors.html deleted file mode 100644 index 5b8911d..0000000 --- a/blog/templates/_types/blog/_card/authors.html +++ /dev/null @@ -1,32 +0,0 @@ -{# --- AUTHORS LIST STARTS HERE --- #} - {% if post.authors and post.authors|length %} - {% for a in post.authors %} - {% for author in authors if author.slug==a.slug %} -
  • - - {% if author.profile_image %} - {{ author.name }} - {% else %} - {# optional fallback circle with first letter #} -
    - {{ author.name[:1] }} -
    - {% endif %} - - - {{ author.name }} - -
    -
  • - {% endfor %} - {% endfor %} - {% endif %} - - {# --- AUTHOR LIST ENDS HERE --- #} \ No newline at end of file diff --git a/blog/templates/_types/blog/_card/tag.html b/blog/templates/_types/blog/_card/tag.html deleted file mode 100644 index 137cb0c..0000000 --- a/blog/templates/_types/blog/_card/tag.html +++ /dev/null @@ -1,19 +0,0 @@ -{% macro tag(tag) %} - {% if tag %} - {% if tag.feature_image %} - {{ tag.name }} - {% else %} -
    - {{ tag.name[:1] }} -
    - {% endif %} - - - {{ tag.name }} - - {% endif %} -{% endmacro %} \ No newline at end of file diff --git a/blog/templates/_types/blog/_card/tag_group.html b/blog/templates/_types/blog/_card/tag_group.html deleted file mode 100644 index 21c9974..0000000 --- a/blog/templates/_types/blog/_card/tag_group.html +++ /dev/null @@ -1,22 +0,0 @@ -{% macro tag_group(group) %} - {% if group %} - {% if group.feature_image %} - {{ group.name }} - {% else %} -
    - {{ group.name[:1] }} -
    - {% endif %} - - - {{ group.name }} - - {% endif %} -{% endmacro %} diff --git a/blog/templates/_types/blog/_card/tags.html b/blog/templates/_types/blog/_card/tags.html deleted file mode 100644 index 2ea7ad1..0000000 --- a/blog/templates/_types/blog/_card/tags.html +++ /dev/null @@ -1,17 +0,0 @@ -{% import '_types/blog/_card/tag.html' as dotag %} -{# --- TAG LIST STARTS HERE --- #} - {% if post.tags and post.tags|length %} - {% for t in post.tags %} - {% for tag in tags if tag.slug==t.slug %} -
  • - - {{dotag.tag(tag)}} - -
  • - {% endfor %} - {% endfor %} - {% endif %} - {# --- TAG LIST ENDS HERE --- #} \ No newline at end of file diff --git a/blog/templates/_types/blog/_card_tile.html b/blog/templates/_types/blog/_card_tile.html deleted file mode 100644 index 742d060..0000000 --- a/blog/templates/_types/blog/_card_tile.html +++ /dev/null @@ -1,59 +0,0 @@ -
    - {% set _href=url_for('blog.post.post_detail', slug=post.slug)|host %} - - {% if post.feature_image %} -
    - -
    - {% endif %} - -
    -

    - {{ post.title }} -

    - - {% if post.status == "draft" %} -
    - Draft - {% if post.publish_requested %} - Publish requested - {% endif %} -
    - {% if post.updated_at %} -

    - Updated: {{ post.updated_at.strftime("%-d %b %Y at %H:%M") }} -

    - {% endif %} - {% elif post.published_at %} -

    - Published: {{ post.published_at.strftime("%-d %b %Y at %H:%M") }} -

    - {% endif %} - - {% if post.custom_excerpt %} -

    - {{ post.custom_excerpt }} -

    - {% elif post.excerpt %} -

    - {{ post.excerpt }} -

    - {% endif %} -
    -
    - - {% include '_types/blog/_card/at_bar.html' %} -
    diff --git a/blog/templates/_types/blog/_cards.html b/blog/templates/_types/blog/_cards.html deleted file mode 100644 index 06d33fd..0000000 --- a/blog/templates/_types/blog/_cards.html +++ /dev/null @@ -1,42 +0,0 @@ -{% for post in posts %} - {% if view == 'tile' %} - {% include "_types/blog/_card_tile.html" %} - {% else %} - {% include "_types/blog/_card.html" %} - {% endif %} -{% endfor %} -{% if page < total_pages|int %} - - - - - -{% else %} -
    End of results
    -{% endif %} - diff --git a/blog/templates/_types/blog/_main_panel.html b/blog/templates/_types/blog/_main_panel.html deleted file mode 100644 index 4edbd36..0000000 --- a/blog/templates/_types/blog/_main_panel.html +++ /dev/null @@ -1,84 +0,0 @@ - - {# Content type tabs: Posts | Pages #} -
    - {% set posts_href = (url_for('blog.index'))|host %} - {% set pages_href = (url_for('blog.index') ~ '?type=pages')|host %} - Posts - Pages -
    - - {% if content_type == 'pages' %} - {# Pages listing #} -
    - {% set page_num = page %} - {% include "_types/blog/_page_cards.html" %} -
    -
    - {% else %} - - {# View toggle bar - desktop only #} - - - {# Cards container - list or grid based on view #} - {% if view == 'tile' %} -
    - {% include "_types/blog/_cards.html" %} -
    - {% else %} -
    - {% include "_types/blog/_cards.html" %} -
    - {% endif %} -
    - {% endif %}{# end content_type check #} diff --git a/blog/templates/_types/blog/_oob_elements.html b/blog/templates/_types/blog/_oob_elements.html deleted file mode 100644 index 2aa02cb..0000000 --- a/blog/templates/_types/blog/_oob_elements.html +++ /dev/null @@ -1,40 +0,0 @@ -{% extends 'oob_elements.html' %} - -{# OOB elements for HTMX navigation - all elements that need updating #} - -{# Import shared OOB macros #} -{% from '_types/root/header/_oob_.html' import root_header with context %} -{% from '_types/root/_oob_menu.html' import mobile_menu with context %} - - -{% block oobs %} - - {% from '_types/root/_n/macros.html' import oob_header with context %} - {{oob_header('root-header-child', 'blog-header-child', '_types/blog/header/_header.html')}} - - {% from '_types/root/header/_header.html' import header_row with context %} - {{ header_row(oob=True) }} -{% endblock %} - - - -{# Filter container - blog doesn't have child_summary but still needs this element #} -{% block filter %} - {% include "_types/blog/mobile/_filter/summary.html" %} -{% endblock %} - -{# Aside with filters #} -{% block aside %} - {% include "_types/blog/desktop/menu.html" %} -{% endblock %} - - -{% block mobile_menu %} - {% include '_types/root/_nav.html' %} - {% include '_types/root/_nav_panel.html' %} -{% endblock %} - - -{% block content %} - {% include '_types/blog/_main_panel.html' %} -{% endblock %} diff --git a/blog/templates/_types/blog/_page_card.html b/blog/templates/_types/blog/_page_card.html deleted file mode 100644 index 291ad61..0000000 --- a/blog/templates/_types/blog/_page_card.html +++ /dev/null @@ -1,56 +0,0 @@ -{# Single page card for pages listing #} -
    - {% set _href = url_for('blog.post.post_detail', slug=page.slug)|host %} - -
    -

    - {{ page.title }} -

    - - {# Feature badges #} - {% if page.features %} -
    - {% if page.features.get('calendar') %} - - Calendar - - {% endif %} - {% if page.features.get('market') %} - - Market - - {% endif %} -
    - {% endif %} - - {% if page.published_at %} -

    - Published: {{ page.published_at.strftime("%-d %b %Y at %H:%M") }} -

    - {% endif %} -
    - - {% if page.feature_image %} -
    - -
    - {% endif %} - {% if page.custom_excerpt or page.excerpt %} -

    - {{ page.custom_excerpt or page.excerpt }} -

    - {% endif %} -
    -
    diff --git a/blog/templates/_types/blog/_page_cards.html b/blog/templates/_types/blog/_page_cards.html deleted file mode 100644 index b2cfbbe..0000000 --- a/blog/templates/_types/blog/_page_cards.html +++ /dev/null @@ -1,19 +0,0 @@ -{# Page cards loop with pagination sentinel #} -{% for page in pages %} - {% include "_types/blog/_page_card.html" %} -{% endfor %} -{% if page_num < total_pages|int %} -
    -{% else %} - {% if pages %} -
    End of results
    - {% else %} -
    No pages found.
    - {% endif %} -{% endif %} diff --git a/blog/templates/_types/blog/admin/tag_groups/_edit_header.html b/blog/templates/_types/blog/admin/tag_groups/_edit_header.html deleted file mode 100644 index 2e31494..0000000 --- a/blog/templates/_types/blog/admin/tag_groups/_edit_header.html +++ /dev/null @@ -1,9 +0,0 @@ -{% import 'macros/links.html' as links %} -{% macro header_row(oob=False) %} - {% call links.menu_row(id='tag-groups-edit-row', oob=oob) %} - {% from 'macros/admin_nav.html' import admin_nav_item %} - {{ admin_nav_item(url_for('blog.tag_groups_admin.defpage_tag_group_edit', id=group.id), 'pencil', group.name, select_colours, aclass='') }} - {% call links.desktop_nav() %} - {% endcall %} - {% endcall %} -{% endmacro %} diff --git a/blog/templates/_types/blog/admin/tag_groups/_edit_main_panel.html b/blog/templates/_types/blog/admin/tag_groups/_edit_main_panel.html deleted file mode 100644 index 7d1fa96..0000000 --- a/blog/templates/_types/blog/admin/tag_groups/_edit_main_panel.html +++ /dev/null @@ -1,79 +0,0 @@ -
    - - {# --- Edit group form --- #} -
    - - -
    -
    - - -
    -
    -
    - - -
    -
    - - -
    -
    -
    - - -
    -
    - - {# --- Tag checkboxes --- #} -
    - -
    - {% for tag in all_tags %} - - {% endfor %} -
    -
    - -
    - -
    -
    - - {# --- Delete form --- #} -
    - - -
    - -
    diff --git a/blog/templates/_types/blog/admin/tag_groups/_edit_oob.html b/blog/templates/_types/blog/admin/tag_groups/_edit_oob.html deleted file mode 100644 index 116bc7b..0000000 --- a/blog/templates/_types/blog/admin/tag_groups/_edit_oob.html +++ /dev/null @@ -1,17 +0,0 @@ -{% extends 'oob_elements.html' %} - -{% block oobs %} - {% from '_types/root/_n/macros.html' import oob_header with context %} - {{oob_header('tag-groups-header-child', 'tag-groups-edit-child', '_types/blog/admin/tag_groups/_edit_header.html')}} - {{oob_header('root-settings-header-child', 'tag-groups-header-child', '_types/blog/admin/tag_groups/_header.html')}} - - {% from '_types/root/settings/header/_header.html' import header_row with context %} - {{header_row(oob=True)}} -{% endblock %} - -{% block mobile_menu %} -{% endblock %} - -{% block content %} - {% include '_types/blog/admin/tag_groups/_edit_main_panel.html' %} -{% endblock %} diff --git a/blog/templates/_types/blog/admin/tag_groups/_header.html b/blog/templates/_types/blog/admin/tag_groups/_header.html deleted file mode 100644 index 6abc3fd..0000000 --- a/blog/templates/_types/blog/admin/tag_groups/_header.html +++ /dev/null @@ -1,9 +0,0 @@ -{% import 'macros/links.html' as links %} -{% macro header_row(oob=False) %} - {% call links.menu_row(id='tag-groups-row', oob=oob) %} - {% from 'macros/admin_nav.html' import admin_nav_item %} - {{ admin_nav_item(url_for('blog.tag_groups_admin.defpage_tag_groups_page'), 'tags', 'Tag Groups', select_colours, aclass='') }} - {% call links.desktop_nav() %} - {% endcall %} - {% endcall %} -{% endmacro %} diff --git a/blog/templates/_types/blog/admin/tag_groups/_main_panel.html b/blog/templates/_types/blog/admin/tag_groups/_main_panel.html deleted file mode 100644 index 5749031..0000000 --- a/blog/templates/_types/blog/admin/tag_groups/_main_panel.html +++ /dev/null @@ -1,73 +0,0 @@ -
    - - {# --- Create new group form --- #} -
    - -

    New Group

    -
    - - - -
    - - -
    - - {# --- Existing groups list --- #} - {% if groups %} - - {% else %} -

    No tag groups yet.

    - {% endif %} - - {# --- Unassigned tags --- #} - {% if unassigned_tags %} -
    -

    Unassigned Tags ({{ unassigned_tags|length }})

    -
    - {% for tag in unassigned_tags %} - - {{ tag.name }} - - {% endfor %} -
    -
    - {% endif %} - -
    diff --git a/blog/templates/_types/blog/admin/tag_groups/_oob_elements.html b/blog/templates/_types/blog/admin/tag_groups/_oob_elements.html deleted file mode 100644 index cb00363..0000000 --- a/blog/templates/_types/blog/admin/tag_groups/_oob_elements.html +++ /dev/null @@ -1,16 +0,0 @@ -{% extends 'oob_elements.html' %} - -{% block oobs %} - {% from '_types/root/_n/macros.html' import oob_header with context %} - {{oob_header('root-settings-header-child', 'tag-groups-header-child', '_types/blog/admin/tag_groups/_header.html')}} - - {% from '_types/root/settings/header/_header.html' import header_row with context %} - {{header_row(oob=True)}} -{% endblock %} - -{% block mobile_menu %} -{% endblock %} - -{% block content %} - {% include '_types/blog/admin/tag_groups/_main_panel.html' %} -{% endblock %} diff --git a/blog/templates/_types/blog/admin/tag_groups/edit.html b/blog/templates/_types/blog/admin/tag_groups/edit.html deleted file mode 100644 index 5fefbc6..0000000 --- a/blog/templates/_types/blog/admin/tag_groups/edit.html +++ /dev/null @@ -1,13 +0,0 @@ -{% extends '_types/blog/admin/tag_groups/index.html' %} - -{% block tag_groups_header_child %} - {% from '_types/root/_n/macros.html' import header with context %} - {% call header() %} - {% from '_types/blog/admin/tag_groups/_edit_header.html' import header_row with context %} - {{ header_row() }} - {% endcall %} -{% endblock %} - -{% block content %} - {% include '_types/blog/admin/tag_groups/_edit_main_panel.html' %} -{% endblock %} diff --git a/blog/templates/_types/blog/admin/tag_groups/index.html b/blog/templates/_types/blog/admin/tag_groups/index.html deleted file mode 100644 index 680b051..0000000 --- a/blog/templates/_types/blog/admin/tag_groups/index.html +++ /dev/null @@ -1,20 +0,0 @@ -{% extends '_types/root/settings/index.html' %} - -{% block root_settings_header_child %} - {% from '_types/root/_n/macros.html' import header with context %} - {% call header() %} - {% from '_types/blog/admin/tag_groups/_header.html' import header_row with context %} - {{ header_row() }} -
    - {% block tag_groups_header_child %} - {% endblock %} -
    - {% endcall %} -{% endblock %} - -{% block content %} - {% include '_types/blog/admin/tag_groups/_main_panel.html' %} -{% endblock %} - -{% block _main_mobile_menu %} -{% endblock %} diff --git a/blog/templates/_types/blog/desktop/menu.html b/blog/templates/_types/blog/desktop/menu.html deleted file mode 100644 index 2c1afc4..0000000 --- a/blog/templates/_types/blog/desktop/menu.html +++ /dev/null @@ -1,19 +0,0 @@ -{% from 'macros/search.html' import search_desktop %} -{{ search_desktop(current_local_href, search, search_count, hx_select) }} -{% include '_types/blog/_action_buttons.html' %} -
    - {% include '_types/blog/desktop/menu/tag_groups.html' %} - {% include '_types/blog/desktop/menu/authors.html' %} -
    - -
    - -
    - - \ No newline at end of file diff --git a/blog/templates/_types/blog/desktop/menu/authors.html b/blog/templates/_types/blog/desktop/menu/authors.html deleted file mode 100644 index e33bb3b..0000000 --- a/blog/templates/_types/blog/desktop/menu/authors.html +++ /dev/null @@ -1,62 +0,0 @@ - {% import '_types/blog/_card/author.html' as doauthor %} - - {# Author filter bar #} - - diff --git a/blog/templates/_types/blog/desktop/menu/tag_groups.html b/blog/templates/_types/blog/desktop/menu/tag_groups.html deleted file mode 100644 index 672a372..0000000 --- a/blog/templates/_types/blog/desktop/menu/tag_groups.html +++ /dev/null @@ -1,70 +0,0 @@ - {# Tag group filter bar #} - diff --git a/blog/templates/_types/blog/desktop/menu/tags.html b/blog/templates/_types/blog/desktop/menu/tags.html deleted file mode 100644 index b23ea3c..0000000 --- a/blog/templates/_types/blog/desktop/menu/tags.html +++ /dev/null @@ -1,59 +0,0 @@ - {% import '_types/blog/_card/tag.html' as dotag %} - - {# Tag filter bar #} - - diff --git a/blog/templates/_types/blog/header/_header.html b/blog/templates/_types/blog/header/_header.html deleted file mode 100644 index 67325b9..0000000 --- a/blog/templates/_types/blog/header/_header.html +++ /dev/null @@ -1,7 +0,0 @@ - -{% import 'macros/links.html' as links %} -{% macro header_row(oob=False) %} - {% call links.menu_row(id='blog-row', oob=oob) %} -
    - {% endcall %} -{% endmacro %} \ No newline at end of file diff --git a/blog/templates/_types/blog/index.html b/blog/templates/_types/blog/index.html deleted file mode 100644 index 5978020..0000000 --- a/blog/templates/_types/blog/index.html +++ /dev/null @@ -1,37 +0,0 @@ -{% extends '_types/root/_index.html' %} - -{% block meta %} - {{ super() }} - -{% endblock %} - -{% block root_header_child %} - {% from '_types/root/_n/macros.html' import index_row with context %} - {% call index_row('root-blog-header', '_types/blog/header/_header.html') %} - {% block root_blog_header %} - {% endblock %} - {% endcall %} -{% endblock %} - - -{% block aside %} - {% include "_types/blog/desktop/menu.html" %} -{% endblock %} - -{% block filter %} - {% include "_types/blog/mobile/_filter/summary.html" %} -{% endblock %} - -{% block content %} - {% include '_types/blog/_main_panel.html' %} -{% endblock %} diff --git a/blog/templates/_types/blog/mobile/_filter/_hamburger.html b/blog/templates/_types/blog/mobile/_filter/_hamburger.html deleted file mode 100644 index 10e0b9c..0000000 --- a/blog/templates/_types/blog/mobile/_filter/_hamburger.html +++ /dev/null @@ -1,13 +0,0 @@ -
    - - - - - - - - -
    diff --git a/blog/templates/_types/blog/mobile/_filter/summary.html b/blog/templates/_types/blog/mobile/_filter/summary.html deleted file mode 100644 index 4ed013b..0000000 --- a/blog/templates/_types/blog/mobile/_filter/summary.html +++ /dev/null @@ -1,14 +0,0 @@ -{% import 'macros/layout.html' as layout %} - -{% call layout.details('/filter', 'md:hidden') %} - {% call layout.filter_summary("filter-summary-mobile", current_local_href, search, search_count, hx_select) %} - {% include '_types/blog/mobile/_filter/summary/tag_groups.html' %} - {% include '_types/blog/mobile/_filter/summary/authors.html' %} - {% endcall %} - {% include '_types/blog/_action_buttons.html' %} -
    - {% include '_types/blog/desktop/menu/tag_groups.html' %} - {% include '_types/blog/desktop/menu/authors.html' %} -
    -{% endcall %} - \ No newline at end of file diff --git a/blog/templates/_types/blog/mobile/_filter/summary/authors.html b/blog/templates/_types/blog/mobile/_filter/summary/authors.html deleted file mode 100644 index 32796d9..0000000 --- a/blog/templates/_types/blog/mobile/_filter/summary/authors.html +++ /dev/null @@ -1,31 +0,0 @@ -{% if selected_authors and selected_authors|length %} - -{% endif %} \ No newline at end of file diff --git a/blog/templates/_types/blog/mobile/_filter/summary/tag_groups.html b/blog/templates/_types/blog/mobile/_filter/summary/tag_groups.html deleted file mode 100644 index 7bf142e..0000000 --- a/blog/templates/_types/blog/mobile/_filter/summary/tag_groups.html +++ /dev/null @@ -1,33 +0,0 @@ -{% if selected_groups and selected_groups|length %} - -{% endif %} diff --git a/blog/templates/_types/blog/mobile/_filter/summary/tags.html b/blog/templates/_types/blog/mobile/_filter/summary/tags.html deleted file mode 100644 index df6169d..0000000 --- a/blog/templates/_types/blog/mobile/_filter/summary/tags.html +++ /dev/null @@ -1,31 +0,0 @@ -{% if selected_tags and selected_tags|length %} - -{% endif %} \ No newline at end of file diff --git a/blog/templates/_types/blog/not_found.html b/blog/templates/_types/blog/not_found.html deleted file mode 100644 index 4fe8cdd..0000000 --- a/blog/templates/_types/blog/not_found.html +++ /dev/null @@ -1,22 +0,0 @@ -{% extends '_types/root/_index.html' %} - -{% block content %} -
    -
    📝
    -

    Post Not Found

    -

    - The post "{{ slug }}" could not be found. -

    - - ← Back to Blog - -
    -{% endblock %} diff --git a/blog/templates/_types/blog_drafts/_main_panel.html b/blog/templates/_types/blog_drafts/_main_panel.html deleted file mode 100644 index 33ca692..0000000 --- a/blog/templates/_types/blog_drafts/_main_panel.html +++ /dev/null @@ -1,55 +0,0 @@ -
    - -
    -

    Drafts

    - {% set new_href = url_for('blog.defpage_new_post')|host %} - - New Post - -
    - - {% if drafts %} -
    - {% for draft in drafts %} - {% set edit_href = url_for('blog.post.admin.defpage_post_edit', slug=draft.slug)|host %} - -
    -
    -

    - {{ draft.title or "Untitled" }} -

    - {% if draft.excerpt %} -

    - {{ draft.excerpt }} -

    - {% endif %} - {% if draft.updated_at %} -

    - Updated: {{ draft.updated_at.strftime("%-d %b %Y at %H:%M") }} -

    - {% endif %} -
    - - Draft - -
    -
    - {% endfor %} -
    - {% else %} -

    No drafts yet.

    - {% endif %} - -
    diff --git a/blog/templates/_types/blog_drafts/_oob_elements.html b/blog/templates/_types/blog_drafts/_oob_elements.html deleted file mode 100644 index 8d9790b..0000000 --- a/blog/templates/_types/blog_drafts/_oob_elements.html +++ /dev/null @@ -1,12 +0,0 @@ -{% extends 'oob_elements.html' %} - -{% from '_types/root/_oob_menu.html' import mobile_menu with context %} - -{% block oobs %} - {% from '_types/blog/header/_header.html' import header_row with context %} - {{ header_row(oob=True) }} -{% endblock %} - -{% block content %} - {% include '_types/blog_drafts/_main_panel.html' %} -{% endblock %} diff --git a/blog/templates/_types/blog_drafts/index.html b/blog/templates/_types/blog_drafts/index.html deleted file mode 100644 index 6ce38f1..0000000 --- a/blog/templates/_types/blog_drafts/index.html +++ /dev/null @@ -1,11 +0,0 @@ -{% extends '_types/root/_index.html' %} - -{% block root_header_child %} - {% from '_types/root/_n/macros.html' import index_row with context %} - {% call index_row('root-blog-header', '_types/blog/header/_header.html') %} - {% endcall %} -{% endblock %} - -{% block content %} - {% include '_types/blog_drafts/_main_panel.html' %} -{% endblock %} diff --git a/blog/templates/_types/blog_new/_main_panel.html b/blog/templates/_types/blog_new/_main_panel.html deleted file mode 100644 index 6c3d264..0000000 --- a/blog/templates/_types/blog_new/_main_panel.html +++ /dev/null @@ -1,259 +0,0 @@ -{# ── Error banner ── #} -{% if save_error %} -
    - Save failed: {{ save_error }} -
    -{% endif %} - -
    - - - - - - {# ── Feature image ── #} -
    - {# Empty state: add link #} -
    - -
    - - {# Filled state: image preview + controls #} - - - {# Upload spinner overlay #} - - - {# Hidden file input #} - -
    - - {# ── Title ── #} - - - {# ── Excerpt ── #} - - - {# ── Editor mount point ── #} -
    - - {# ── Status + Save footer ── #} -
    - - - -
    -
    - -{# ── Koenig editor assets ── #} - - - - diff --git a/blog/templates/_types/blog_new/_oob_elements.html b/blog/templates/_types/blog_new/_oob_elements.html deleted file mode 100644 index 61e78f5..0000000 --- a/blog/templates/_types/blog_new/_oob_elements.html +++ /dev/null @@ -1,12 +0,0 @@ -{% extends 'oob_elements.html' %} - -{% from '_types/root/_oob_menu.html' import mobile_menu with context %} - -{% block oobs %} - {% from '_types/blog/header/_header.html' import header_row with context %} - {{ header_row(oob=True) }} -{% endblock %} - -{% block content %} - {% include '_types/blog_new/_main_panel.html' %} -{% endblock %} diff --git a/blog/templates/_types/blog_new/index.html b/blog/templates/_types/blog_new/index.html deleted file mode 100644 index 3c802d4..0000000 --- a/blog/templates/_types/blog_new/index.html +++ /dev/null @@ -1,11 +0,0 @@ -{% extends '_types/root/_index.html' %} - -{% block root_header_child %} - {% from '_types/root/_n/macros.html' import index_row with context %} - {% call index_row('root-blog-header', '_types/blog/header/_header.html') %} - {% endcall %} -{% endblock %} - -{% block content %} - {% include '_types/blog_new/_main_panel.html' %} -{% endblock %} diff --git a/blog/templates/_types/home/_oob_elements.html b/blog/templates/_types/home/_oob_elements.html deleted file mode 100644 index 03a4f17..0000000 --- a/blog/templates/_types/home/_oob_elements.html +++ /dev/null @@ -1,19 +0,0 @@ -{% extends 'oob_elements.html' %} - -{% from '_types/root/header/_oob.html' import root_header_start, root_header_end with context %} -{% from '_types/root/_oob_menu.html' import mobile_menu with context %} - -{% block oobs %} - {% from '_types/root/header/_header.html' import header_row with context %} - {{ header_row(oob=True) }} -{% endblock %} - -{% block content %} -
    -
    - {% if post.html %} - {{post.html|safe}} - {% endif %} -
    -
    -{% endblock %} diff --git a/blog/templates/_types/home/index.html b/blog/templates/_types/home/index.html deleted file mode 100644 index e5df191..0000000 --- a/blog/templates/_types/home/index.html +++ /dev/null @@ -1,14 +0,0 @@ -{% extends '_types/root/_index.html' %} -{% block meta %} - {% include '_types/post/_meta.html' %} -{% endblock %} - -{% block content %} -
    -
    - {% if post.html %} - {{post.html|safe}} - {% endif %} -
    -
    -{% endblock %} diff --git a/blog/templates/_types/menu_items/_form.html b/blog/templates/_types/menu_items/_form.html deleted file mode 100644 index e7248f4..0000000 --- a/blog/templates/_types/menu_items/_form.html +++ /dev/null @@ -1,125 +0,0 @@ - - - diff --git a/blog/templates/_types/menu_items/_list.html b/blog/templates/_types/menu_items/_list.html deleted file mode 100644 index 4d89aca..0000000 --- a/blog/templates/_types/menu_items/_list.html +++ /dev/null @@ -1,68 +0,0 @@ -
    - {% if menu_items %} -
    - {% for item in menu_items %} -
    - {# Drag handle #} -
    - -
    - - {# Page image #} - {% if item.feature_image %} - {{ item.label }} - {% else %} -
    - {% endif %} - - {# Page title #} -
    -
    {{ item.label }}
    -
    {{ item.slug }}
    -
    - - {# Sort order #} -
    - Order: {{ item.sort_order }} -
    - - {# Actions #} -
    - - -
    -
    - {% endfor %} -
    - {% else %} -
    - -

    No menu items yet. Add one to get started!

    -
    - {% endif %} -
    diff --git a/blog/templates/_types/menu_items/_main_panel.html b/blog/templates/_types/menu_items/_main_panel.html deleted file mode 100644 index b18df34..0000000 --- a/blog/templates/_types/menu_items/_main_panel.html +++ /dev/null @@ -1,20 +0,0 @@ -
    -
    - -
    - - {# Form container #} - - - {# Menu items list #} - -
    diff --git a/blog/templates/_types/menu_items/_nav_oob.html b/blog/templates/_types/menu_items/_nav_oob.html deleted file mode 100644 index 872b4a9..0000000 --- a/blog/templates/_types/menu_items/_nav_oob.html +++ /dev/null @@ -1,31 +0,0 @@ -{% set _app_slugs = {'cart': cart_url('/')} %} -{% set _first_seg = request.path.strip('/').split('/')[0] %} - diff --git a/blog/templates/_types/menu_items/_oob_elements.html b/blog/templates/_types/menu_items/_oob_elements.html deleted file mode 100644 index c242593..0000000 --- a/blog/templates/_types/menu_items/_oob_elements.html +++ /dev/null @@ -1,23 +0,0 @@ -{% extends 'oob_elements.html' %} - -{# OOB elements for HTMX navigation - all elements that need updating #} - -{# Import shared OOB macros #} - -{% block oobs %} - {% from '_types/root/_n/macros.html' import oob_header with context %} - {{oob_header('root-settings-header-child', 'menu_items-header-child', '_types/menu_items/header/_header.html')}} - - {% from '_types/root/settings/header/_header.html' import header_row with context %} - {{header_row(oob=True)}} - -{% endblock %} - -{% block mobile_menu %} -{#% include '_types/root/settings/_nav.html' %#} -{% endblock %} - -{% block content %} - {% include '_types/menu_items/_main_panel.html' %} -{% endblock %} - diff --git a/blog/templates/_types/menu_items/_page_search_results.html b/blog/templates/_types/menu_items/_page_search_results.html deleted file mode 100644 index 3cf0198..0000000 --- a/blog/templates/_types/menu_items/_page_search_results.html +++ /dev/null @@ -1,44 +0,0 @@ -{% if pages %} -
    - {% for post in pages %} -
    - - {# Page image #} - {% if post.feature_image %} - {{ post.title }} - {% else %} -
    - {% endif %} - - {# Page info #} -
    -
    {{ post.title }}
    -
    {{ post.slug }}
    -
    -
    - {% endfor %} - - {# Infinite scroll sentinel #} - {% if has_more %} -
    - Loading more... -
    - {% endif %} -
    -{% elif query %} -
    - No pages found matching "{{ query }}" -
    -{% endif %} diff --git a/blog/templates/_types/menu_items/header/_header.html b/blog/templates/_types/menu_items/header/_header.html deleted file mode 100644 index 8c3877b..0000000 --- a/blog/templates/_types/menu_items/header/_header.html +++ /dev/null @@ -1,9 +0,0 @@ -{% import 'macros/links.html' as links %} -{% macro header_row(oob=False) %} - {% call links.menu_row(id='menu_items-row', oob=oob) %} - {% from 'macros/admin_nav.html' import admin_nav_item %} - {{ admin_nav_item(url_for('menu_items.defpage_menu_items_page'), 'bars', 'Menu Items', select_colours, aclass='') }} - {% call links.desktop_nav() %} - {% endcall %} - {% endcall %} -{% endmacro %} diff --git a/blog/templates/_types/menu_items/index.html b/blog/templates/_types/menu_items/index.html deleted file mode 100644 index 5bcf7da..0000000 --- a/blog/templates/_types/menu_items/index.html +++ /dev/null @@ -1,20 +0,0 @@ -{% extends '_types/root/settings/index.html' %} - -{% block root_settings_header_child %} - {% from '_types/root/_n/macros.html' import header with context %} - {% call header() %} - {% from '_types/menu_items/header/_header.html' import header_row with context %} - {{ header_row() }} - - {% endcall %} -{% endblock %} - -{% block content %} - {% include '_types/menu_items/_main_panel.html' %} -{% endblock %} - -{% block _main_mobile_menu %} -{% endblock %} diff --git a/blog/templates/_types/post/_entry_container.html b/blog/templates/_types/post/_entry_container.html deleted file mode 100644 index 685243e..0000000 --- a/blog/templates/_types/post/_entry_container.html +++ /dev/null @@ -1,18 +0,0 @@ -
    -
    - {% include '_types/post/_entry_items.html' with context %} -
    -
    - - diff --git a/blog/templates/_types/post/_entry_items.html b/blog/templates/_types/post/_entry_items.html deleted file mode 100644 index 106af53..0000000 --- a/blog/templates/_types/post/_entry_items.html +++ /dev/null @@ -1,38 +0,0 @@ -{# Get entries from either direct variable or associated_entries dict #} -{% set entry_list = entries if entries is defined else (associated_entries.entries if associated_entries is defined else []) %} -{% set current_page = page if page is defined else (associated_entries.page if associated_entries is defined else 1) %} -{% set has_more_entries = has_more if has_more is defined else (associated_entries.has_more if associated_entries is defined else False) %} - -{% for entry in entry_list %} - {% set _entry_path = '/' + post.slug + '/' + entry.calendar_slug + '/' + entry.start_at.year|string + '/' + entry.start_at.month|string + '/' + entry.start_at.day|string + '/entries/' + entry.id|string + '/' %} - - {% if post.feature_image %} - {{ post.title }} - {% else %} -
    - {% endif %} -
    -
    {{ entry.name }}
    -
    - {{ entry.start_at.strftime('%b %d, %Y at %H:%M') }} - {% if entry.end_at %} – {{ entry.end_at.strftime('%H:%M') }}{% endif %} -
    -
    -
    -{% endfor %} - -{# Load more entries one at a time until container is full #} -{% if has_more_entries %} -
    -
    -{% endif %} diff --git a/blog/templates/_types/post/_main_panel.html b/blog/templates/_types/post/_main_panel.html deleted file mode 100644 index 9811740..0000000 --- a/blog/templates/_types/post/_main_panel.html +++ /dev/null @@ -1,65 +0,0 @@ -{# Main panel fragment for HTMX navigation - post/page article content #} -
    - {# Draft indicator + edit link (shown for both posts and pages) #} - {% if post.status == "draft" %} -
    - Draft - {% if post.publish_requested %} - Publish requested - {% endif %} - {% set is_admin = (g.get("rights") or {}).get("admin") %} - {% if is_admin or (g.user and post.user_id == g.user.id) %} - {% set edit_href = url_for('blog.post.admin.defpage_post_edit', slug=post.slug)|host %} - - Edit - - {% endif %} -
    - {% endif %} - - {% if not post.is_page %} - {# ── Blog post chrome: like button, excerpt, tags/authors ── #} - {% if g.user %} -
    - {% set slug = post.slug %} - {% set liked = post.is_liked or False %} - {% set like_url = url_for('blog.post.like_toggle', slug=slug)|host %} - {% set item_type = 'post' %} - {% include "_types/browse/like/button.html" %} -
    - {% endif %} - - {% if post.custom_excerpt %} -
    - {{post.custom_excerpt|safe}} -
    - {% endif %} - - {% endif %} - - {% if post.feature_image %} -
    - -
    - {% endif %} -
    - {% if post.html %} - {{post.html|safe}} - {% endif %} -
    -
    -
    diff --git a/blog/templates/_types/post/_meta.html b/blog/templates/_types/post/_meta.html deleted file mode 100644 index c4ef2ad..0000000 --- a/blog/templates/_types/post/_meta.html +++ /dev/null @@ -1,124 +0,0 @@ -{# --- social/meta_post.html --- #} -{# Context expected: - site, post, request -#} - -{# Visibility → robots #} -{% set is_public = (post.visibility == 'public') %} -{% set is_published = (post.status == 'published') %} -{% set robots_here = 'index,follow' if (is_public and is_published and not post.email_only) else 'noindex,nofollow' %} - -{# Compute canonical early so both this file and base can use it #} -{% set _site_url = site().url.rstrip('/') if site and site().url else '' %} -{% set _post_path = request.path if request else ('/posts/' ~ (post.slug or post.uuid)) %} -{% set canonical = post.canonical_url or (_site_url ~ _post_path if _site_url else (request.url if request else None)) %} - -{# Include common base (charset, viewport, robots default, RSS, Org/WebSite JSON-LD) #} -{% set robots_override = robots_here %} -{% include 'social/meta_base.html' %} - -{# ---- Titles / descriptions ---- #} -{% set og_title = post.og_title or base_title %} -{% set tw_title = post.twitter_title or base_title %} - -{# Description best-effort, trimmed #} -{% set desc_source = post.meta_description - or post.og_description - or post.twitter_description - or post.custom_excerpt - or post.excerpt - or (post.plaintext if post.plaintext else (post.html|striptags if post.html else '')) %} -{% set description = (desc_source|trim|replace('\n',' ')|replace('\r',' ')|striptags)|truncate(160, True, '…') %} - -{# Image priority #} -{% set image_url = post.og_image - or post.twitter_image - or post.feature_image - or (site().default_image if site and site().default_image else None) %} - -{# Dates #} -{% set published_iso = post.published_at.isoformat() if post.published_at else None %} -{% set updated_iso = post.updated_at.isoformat() if post.updated_at - else (post.created_at.isoformat() if post.created_at else None) %} - -{# Authors / tags #} -{% set primary_author = post.primary_author %} -{% set authors = post.authors or ([primary_author] if primary_author else []) %} -{% set tag_names = (post.tags or []) | map(attribute='name') | list %} -{% set is_article = not post.is_page %} - -{{ base_title }} - -{% if canonical %}{% endif %} - -{# ---- Open Graph ---- #} - - - - -{% if canonical %}{% endif %} -{% if image_url %}{% endif %} -{% if is_article and published_iso %}{% endif %} -{% if is_article and updated_iso %} - - -{% endif %} -{% if is_article and post.primary_tag and post.primary_tag.name %} - -{% endif %} -{% if is_article %} - {% for t in tag_names %} - - {% endfor %} -{% endif %} - -{# ---- Twitter ---- #} - -{% if site and site().twitter_site %}{% endif %} -{% if primary_author and primary_author.twitter %} - -{% endif %} - - -{% if image_url %}{% endif %} - -{# ---- JSON-LD author value (no list comprehensions) ---- #} -{% if authors and authors|length == 1 %} - {% set author_value = {"@type": "Person", "name": authors[0].name} %} -{% elif authors %} - {% set ns = namespace(arr=[]) %} - {% for a in authors %} - {% set _ = ns.arr.append({"@type": "Person", "name": a.name}) %} - {% endfor %} - {% set author_value = ns.arr %} -{% else %} - {% set author_value = none %} -{% endif %} - -{# ---- JSON-LD using combine for optionals ---- #} -{% set jsonld = { - "@context": "https://schema.org", - "@type": "BlogPosting" if is_article else "WebPage", - "mainEntityOfPage": canonical, - "headline": base_title, - "description": description, - "image": image_url, - "datePublished": published_iso, - "author": author_value, - "publisher": { - "@type": "Organization", - "name": site().title if site and site().title else "", - "logo": {"@type": "ImageObject", "url": site().logo if site and site().logo else image_url} - } -} %} - -{% if updated_iso %} - {% set jsonld = jsonld | combine({"dateModified": updated_iso}) %} -{% endif %} -{% if tag_names %} - {% set jsonld = jsonld | combine({"keywords": tag_names | join(", ")}) %} -{% endif %} - - diff --git a/blog/templates/_types/post/_nav.html b/blog/templates/_types/post/_nav.html deleted file mode 100644 index e93c7a6..0000000 --- a/blog/templates/_types/post/_nav.html +++ /dev/null @@ -1,15 +0,0 @@ -{% import 'macros/links.html' as links %} - {# Container nav from fragments (calendars, markets) #} - {% if container_nav_html %} -
    - {{ container_nav_html | safe }} -
    - {% endif %} - - {# Admin link #} - {% if post and has_access('blog.post.admin.defpage_post_admin') %} - {% call links.link(url_for('blog.post.admin.defpage_post_admin', slug=post.slug), hx_select_search, select_colours, True, aclass=styles.nav_button) %} - - {% endcall %} - {% endif %} diff --git a/blog/templates/_types/post/_oob_elements.html b/blog/templates/_types/post/_oob_elements.html deleted file mode 100644 index d8bda2c..0000000 --- a/blog/templates/_types/post/_oob_elements.html +++ /dev/null @@ -1,36 +0,0 @@ -{% extends 'oob_elements.html' %} - - -{# OOB elements for HTMX navigation - all elements that need updating #} -{# Import shared OOB macros #} -{% from '_types/root/header/_oob.html' import root_header_start, root_header_end with context %} -{% from '_types/root/_oob_menu.html' import mobile_menu with context %} - - - -{% block oobs %} - {% from '_types/root/header/_header.html' import header_row with context %} - {{ header_row(oob=True) }} -{% endblock %} - -{% from '_types/root/_n/macros.html' import header with context %} -{% call header(id='root-header-child', oob=True) %} - {% call header() %} - {% from '_types/post/header/_header.html' import header_row with context %} - {{header_row()}} -
    - -
    - {% endcall %} -{% endcall %} - - -{# Mobile menu #} - -{% block mobile_menu %} - {% include '_types/post/_nav.html' %} -{% endblock %} - -{% block content %} - {% include '_types/post/_main_panel.html' %} -{% endblock %} diff --git a/blog/templates/_types/post/admin/_associated_entries.html b/blog/templates/_types/post/admin/_associated_entries.html deleted file mode 100644 index d5538e4..0000000 --- a/blog/templates/_types/post/admin/_associated_entries.html +++ /dev/null @@ -1,50 +0,0 @@ -
    -

    Associated Entries

    - {% if associated_entry_ids %} -
    - {% for calendar in all_calendars %} - {% for entry in calendar.entries %} - {% if entry.id in associated_entry_ids and entry.deleted_at is none %} - - {% endif %} - {% endfor %} - {% endfor %} -
    - {% else %} -
    No entries associated yet. Browse calendars below to add entries.
    - {% endif %} -
    diff --git a/blog/templates/_types/post/admin/_calendar_view.html b/blog/templates/_types/post/admin/_calendar_view.html deleted file mode 100644 index 6e4518b..0000000 --- a/blog/templates/_types/post/admin/_calendar_view.html +++ /dev/null @@ -1,88 +0,0 @@ -
    - {# Month/year navigation #} -
    - -
    - - {# Calendar grid #} -
    - - -
    - {% for week in weeks %} - {% for day in week %} -
    -
    {{ day.date.day }}
    - - {# Entries for this day #} -
    - {% for e in month_entries %} - {% if e.start_at.date() == day.date %} - {% if e.id in associated_entry_ids %} - {# Associated entry - show with delete button #} -
    - {{ e.name }} - -
    - {% else %} - {# Non-associated entry - clickable to add #} - - {% endif %} - {% endif %} - {% endfor %} -
    -
    - {% endfor %} - {% endfor %} -
    -
    -
    diff --git a/blog/templates/_types/post/admin/_features_panel.html b/blog/templates/_types/post/admin/_features_panel.html deleted file mode 100644 index 12ac7f2..0000000 --- a/blog/templates/_types/post/admin/_features_panel.html +++ /dev/null @@ -1,112 +0,0 @@ -{# Feature toggles for PageConfig #} -
    -

    Page Features

    - -
    - - - -
    - - {# SumUp credentials — shown when calendar or market is enabled #} - {% if features.get('calendar') or features.get('market') %} -
    -

    - - SumUp Payment -

    -

    - Configure per-page SumUp credentials. Leave blank to use the global merchant account. -

    - -
    -
    - - -
    - -
    - - - {% if sumup_configured %} -

    Key is set. Leave blank to keep current key.

    - {% endif %} -
    - -
    - - -
    - - - - {% if sumup_configured %} - - Connected - - {% endif %} -
    -
    - {% endif %} -
    diff --git a/blog/templates/_types/post/admin/_main_panel.html b/blog/templates/_types/post/admin/_main_panel.html deleted file mode 100644 index 58d5238..0000000 --- a/blog/templates/_types/post/admin/_main_panel.html +++ /dev/null @@ -1,7 +0,0 @@ -{# Main panel fragment for HTMX navigation - post admin #} -
    -
    -
    diff --git a/blog/templates/_types/post/admin/_markets_panel.html b/blog/templates/_types/post/admin/_markets_panel.html deleted file mode 100644 index 511d97c..0000000 --- a/blog/templates/_types/post/admin/_markets_panel.html +++ /dev/null @@ -1,44 +0,0 @@ -
    -

    Markets

    - - {% if markets %} - - {% else %} -

    No markets yet.

    - {% endif %} - -
    - - -
    -
    diff --git a/blog/templates/_types/post/admin/_nav.html b/blog/templates/_types/post/admin/_nav.html deleted file mode 100644 index 41e2bef..0000000 --- a/blog/templates/_types/post/admin/_nav.html +++ /dev/null @@ -1,28 +0,0 @@ -{% import 'macros/links.html' as links %} - - - -{% call links.link(url_for('blog.post.admin.defpage_post_entries', slug=post.slug), hx_select_search, select_colours, True, aclass=styles.nav_button) %} - entries -{% endcall %} -{% call links.link(url_for('blog.post.admin.defpage_post_data', slug=post.slug), hx_select_search, select_colours, True, aclass=styles.nav_button) %} - data -{% endcall %} -{% call links.link(url_for('blog.post.admin.defpage_post_edit', slug=post.slug), hx_select_search, select_colours, True, aclass=styles.nav_button) %} - edit -{% endcall %} -{% call links.link(url_for('blog.post.admin.defpage_post_settings', slug=post.slug), hx_select_search, select_colours, True, aclass=styles.nav_button) %} - settings -{% endcall %} \ No newline at end of file diff --git a/blog/templates/_types/post/admin/_nav_entries.html b/blog/templates/_types/post/admin/_nav_entries.html deleted file mode 100644 index 04732b1..0000000 --- a/blog/templates/_types/post/admin/_nav_entries.html +++ /dev/null @@ -1,41 +0,0 @@ - - {# Left scroll arrow - desktop only #} - - - {# Widget-driven nav items container #} -
    -
    - {% for wdata in container_nav_widgets %} - {% with ctx=wdata.ctx %} - {% include wdata.widget.template with context %} - {% endwith %} - {% endfor %} -
    -
    - - - - {# Right scroll arrow - desktop only #} - diff --git a/blog/templates/_types/post/admin/_nav_entries_oob.html b/blog/templates/_types/post/admin/_nav_entries_oob.html deleted file mode 100644 index 60199fc..0000000 --- a/blog/templates/_types/post/admin/_nav_entries_oob.html +++ /dev/null @@ -1,34 +0,0 @@ -{# OOB swap for nav entries and calendars — blog's version using shared macro #} -{% from 'macros/nav_entries.html' import nav_entries_oob %} - -{% set has_items = (associated_entries and associated_entries.entries) or calendars %} -{% call nav_entries_oob(has_items) %} - {% if associated_entries and associated_entries.entries %} - {% for entry in associated_entries.entries %} - {% set _entry_path = '/' + post.slug + '/' +entry.calendar_slug + '/' + entry.start_at.year|string + '/' + entry.start_at.month|string + '/' + entry.start_at.day|string + '/entries/' + entry.id|string + '/' %} - -
    -
    -
    {{ entry.name }}
    -
    - {{ entry.start_at.strftime('%b %d, %Y at %H:%M') }} - {% if entry.end_at %} – {{ entry.end_at.strftime('%H:%M') }}{% endif %} -
    -
    -
    - {% endfor %} - {% endif %} - {% if calendars %} - {% for calendar in calendars %} - {% set local_href=events_url('/' + post.slug + '/' +calendar.slug + '/') %} - - -
    {{calendar.name}}
    -
    - {% endfor %} - {% endif %} -{% endcall %} diff --git a/blog/templates/_types/post/admin/_oob_elements.html b/blog/templates/_types/post/admin/_oob_elements.html deleted file mode 100644 index d397c68..0000000 --- a/blog/templates/_types/post/admin/_oob_elements.html +++ /dev/null @@ -1,22 +0,0 @@ -{% extends "oob_elements.html" %} -{# OOB elements for post admin page #} - -{# Import shared OOB macros #} -{% from '_types/root/header/_oob.html' import root_header_start, root_header_end with context %} -{% from '_types/root/_oob_menu.html' import mobile_menu with context %} - -{% block oobs %} - {% from '_types/root/_n/macros.html' import oob_header with context %} - {{oob_header('post-header-child', 'post-admin-header-child', '_types/post/admin/header/_header.html')}} - - {% from '_types/post/header/_header.html' import header_row with context %} - {{ header_row(oob=True) }} -{% endblock %} - -{% block mobile_menu %} - {% include '_types/post/admin/_nav.html' %} -{% endblock %} - -{% block content %} - {% include '_types/post/admin/_main_panel.html' %} -{% endblock %} \ No newline at end of file diff --git a/blog/templates/_types/post/admin/header/_header.html b/blog/templates/_types/post/admin/header/_header.html deleted file mode 100644 index 175548a..0000000 --- a/blog/templates/_types/post/admin/header/_header.html +++ /dev/null @@ -1,13 +0,0 @@ -{% import 'macros/links.html' as links %} -{% macro header_row(oob=False) %} - {% call links.menu_row(id='post-admin-row', oob=oob) %} - {% call links.link( - url_for('blog.post.admin.defpage_post_admin', slug=post.slug), - hx_select_search) %} - {{ links.admin() }} - {% endcall %} - {% call links.desktop_nav() %} - {% include '_types/post/admin/_nav.html' %} - {% endcall %} - {% endcall %} -{% endmacro %} \ No newline at end of file diff --git a/blog/templates/_types/post/admin/index.html b/blog/templates/_types/post/admin/index.html deleted file mode 100644 index 1a7cc45..0000000 --- a/blog/templates/_types/post/admin/index.html +++ /dev/null @@ -1,18 +0,0 @@ -{% extends '_types/post/index.html' %} -{% import 'macros/layout.html' as layout %} - -{% block post_header_child %} - {% from '_types/root/_n/macros.html' import index_row with context %} - {% call index_row('post-admin-header-child', '_types/post/admin/header/_header.html') %} - {% block post_admin_header_child %} - {% endblock %} - {% endcall %} -{% endblock %} - -{% block _main_mobile_menu %} - {% include '_types/post/admin/_nav.html' %} -{% endblock %} - -{% block content %} - {% include '_types/post/admin/_main_panel.html' %} -{% endblock %} diff --git a/blog/templates/_types/post/header/_header.html b/blog/templates/_types/post/header/_header.html deleted file mode 100644 index 143e79d..0000000 --- a/blog/templates/_types/post/header/_header.html +++ /dev/null @@ -1,28 +0,0 @@ -{% import 'macros/links.html' as links %} -{% macro header_row(oob=False) %} - {% call links.menu_row(id='post-row', oob=oob) %} - {% call links.link(url_for('blog.post.post_detail', slug=post.slug), hx_select_search ) %} - {% if post.feature_image %} - - {% endif %} - - {{ post.title | truncate(160, True, '…') }} - - {% endcall %} - {% call links.desktop_nav() %} - {% if page_cart_count is defined and page_cart_count > 0 %} - - - {{ page_cart_count }} - - {% endif %} - {% include '_types/post/_nav.html' %} - {% endcall %} - {% endcall %} -{% endmacro %} \ No newline at end of file diff --git a/blog/templates/_types/post/index.html b/blog/templates/_types/post/index.html deleted file mode 100644 index 56ed99c..0000000 --- a/blog/templates/_types/post/index.html +++ /dev/null @@ -1,25 +0,0 @@ -{% extends '_types/root/_index.html' %} -{% import 'macros/layout.html' as layout %} -{% block meta %} - {% include '_types/post/_meta.html' %} -{% endblock %} - -{% block root_header_child %} - {% from '_types/root/_n/macros.html' import index_row with context %} - {% call index_row('post-header-child', '_types/post/header/_header.html') %} - {% block post_header_child %} - {% endblock %} - {% endcall %} -{% endblock %} - -{% block _main_mobile_menu %} - {% include '_types/post/_nav.html' %} -{% endblock %} - - -{% block aside %} -{% endblock %} - -{% block content %} - {% include '_types/post/_main_panel.html' %} -{% endblock %} diff --git a/blog/templates/_types/post_data/_main_panel.html b/blog/templates/_types/post_data/_main_panel.html deleted file mode 100644 index 83dcc32..0000000 --- a/blog/templates/_types/post_data/_main_panel.html +++ /dev/null @@ -1,137 +0,0 @@ -{% macro render_scalar_table(obj) -%} -
    - - - - - - - - - {% for col in obj.__mapper__.columns %} - {% set key = col.key %} - {% set val = obj|attr(key) %} - {% if key != "_sa_instance_state" %} - - - - - {% endif %} - {% endfor %} - -
    FieldValue
    {{ key }} - {% if val is none %} - - {% elif val.__class__.__name__ in ["datetime", "date"] and val.isoformat is defined %} -
    {{ val.isoformat() }}
    - {% elif val is string %} -
    {{ val }}
    - {% else %} -
    {{ val }}
    - {% endif %} -
    -
    -{%- endmacro %} - -{% macro render_model(obj, depth=0, max_depth=2) -%} - {% if obj is none %} - - {% else %} -
    - {{ render_scalar_table(obj) }} - -
    - {% for rel in obj.__mapper__.relationships %} - {% set rel_name = rel.key %} - {% set loaded = rel.key in obj.__dict__ %} - {% if loaded %} - {% set value = obj|attr(rel_name) %} - {% else %} - {% set value = none %} - {% endif %} - -
    -
    - Relationship: {{ rel_name }} - - {{ 'many' if rel.uselist else 'one' }} → {{ rel.mapper.class_.__name__ }} - {% if not loaded %} • not loaded{% endif %} - -
    - -
    - {% if value is none %} - - - {% elif rel.uselist %} - {% set items = value or [] %} -
    {{ items|length }} item{{ '' if items|length == 1 else 's' }}
    - - {% if items %} -
    - - - - - - - - - {% for it in items %} - - - - - {% endfor %} - -
    #Summary
    {{ loop.index }} - {% set ident = [] %} - {% for k in ['id','ghost_id','uuid','slug','name','title'] if k in it.__mapper__.c %} - {% set v = (it|attr(k))|default('', true) %} - {% do ident.append(k ~ '=' ~ v) %} - {% endfor %} -
    {{ (ident|join(' • ')) or it|string }}
    - - {% if depth < max_depth %} -
    - {{ render_model(it, depth+1, max_depth) }} -
    - {% else %} -
    …max depth reached…
    - {% endif %} -
    -
    - {% endif %} - - {% else %} - {% set child = value %} - {% set ident = [] %} - {% for k in ['id','ghost_id','uuid','slug','name','title'] if k in child.__mapper__.c %} - {% set v = (child|attr(k))|default('', true) %} - {% do ident.append(k ~ '=' ~ v) %} - {% endfor %} -
    {{ (ident|join(' • ')) or child|string }}
    - - {% if depth < max_depth %} -
    - {{ render_model(child, depth+1, max_depth) }} -
    - {% else %} -
    …max depth reached…
    - {% endif %} - {% endif %} -
    -
    - {% endfor %} -
    -
    - {% endif %} -{%- endmacro %} - -
    -
    - Model: Post • Table: {{ original_post.__tablename__ }} -
    - {{ render_model(original_post, 0, 2) }} -
    - diff --git a/blog/templates/_types/post_data/_nav.html b/blog/templates/_types/post_data/_nav.html deleted file mode 100644 index f5c504d..0000000 --- a/blog/templates/_types/post_data/_nav.html +++ /dev/null @@ -1,2 +0,0 @@ -{% from 'macros/admin_nav.html' import placeholder_nav %} -{{ placeholder_nav() }} diff --git a/blog/templates/_types/post_data/_oob_elements.html b/blog/templates/_types/post_data/_oob_elements.html deleted file mode 100644 index 32fd0c7..0000000 --- a/blog/templates/_types/post_data/_oob_elements.html +++ /dev/null @@ -1,28 +0,0 @@ -{% extends 'oob_elements.html' %} - -{# OOB elements for HTMX navigation - all elements that need updating #} - -{# Import shared OOB macros #} -{% from '_types/root/_oob_menu.html' import mobile_menu with context %} - - -{% block oobs %} - - {% from '_types/root/_n/macros.html' import oob_header with context %} - {{oob_header('post-admin-header-child', 'post_data-header-child', '_types/post_data/header/_header.html')}} - - {% from '_types/post/admin/header/_header.html' import header_row with context %} - {{ header_row(oob=True) }} -{% endblock %} - - -{% block mobile_menu %} - {% include '_types/post_data/_nav.html' %} -{% endblock %} - - -{% block content %} - {% include "_types/post_data/_main_panel.html" %} -{% endblock %} - - diff --git a/blog/templates/_types/post_data/header/_header.html b/blog/templates/_types/post_data/header/_header.html deleted file mode 100644 index d3cfee0..0000000 --- a/blog/templates/_types/post_data/header/_header.html +++ /dev/null @@ -1,15 +0,0 @@ -{% import 'macros/links.html' as links %} -{% macro header_row(oob=False) %} - {% call links.menu_row(id='post_data-row', oob=oob) %} - - -
    data
    -
    - {% call links.desktop_nav() %} - {#% include '_types/post_data/_nav.html' %#} - {% endcall %} - {% endcall %} -{% endmacro %} - - - diff --git a/blog/templates/_types/post_data/index.html b/blog/templates/_types/post_data/index.html deleted file mode 100644 index 9c5ca96..0000000 --- a/blog/templates/_types/post_data/index.html +++ /dev/null @@ -1,24 +0,0 @@ -{% extends '_types/post/admin/index.html' %} - -{% block ___app_title %} - {% import 'macros/links.html' as links %} - {% call links.menu_row() %} - {% call links.link(url_for('blog.post.admin.defpage_post_data', slug=post.slug), hx_select_search) %} - -
    - data -
    - {% endcall %} - {% call links.desktop_nav() %} - {% include '_types/post_data/_nav.html' %} - {% endcall %} - {% endcall %} -{% endblock %} - -{% block _main_mobile_menu %} - {% include '_types/post_data/_nav.html' %} -{% endblock %} - -{% block content %} - {% include '_types/post_data/_main_panel.html' %} -{% endblock %} diff --git a/blog/templates/_types/post_edit/_main_panel.html b/blog/templates/_types/post_edit/_main_panel.html deleted file mode 100644 index 05d9251..0000000 --- a/blog/templates/_types/post_edit/_main_panel.html +++ /dev/null @@ -1,352 +0,0 @@ -{# ── Error banner ── #} -{% if save_error %} -
    - Save failed: {{ save_error }} -
    -{% endif %} - -
    - - - - - - - {# ── Feature image ── #} -
    - {# Empty state: add link #} -
    - -
    - - {# Filled state: image preview + controls #} -
    - - {# Delete button (top-right, visible on hover) #} - - - {# Caption input #} - -
    - - {# Upload spinner overlay #} - - - {# Hidden file input #} - -
    - - {# ── Title ── #} - - - {# ── Excerpt ── #} - - - {# ── Editor mount point ── #} -
    - - {# ── Initial Lexical JSON from Ghost ── #} - - - {# ── Status + Publish mode + Save footer ── #} - {% set already_emailed = ghost_post and ghost_post.email and ghost_post.email.status %} -
    - - - {# Publish mode — only relevant when publishing #} - - - {# Newsletter picker — only when email is involved #} - - - - - {% if save_success %} - Saved. - {% endif %} - {% if request.args.get('publish_requested') %} - Publish requested — an admin will review. - {% endif %} - {% if post and post.publish_requested %} - Publish requested - {% endif %} - {% if already_emailed %} - - Emailed{% if ghost_post.newsletter %} to {{ ghost_post.newsletter.name }}{% endif %} - - {% endif %} -
    - - {# ── Publish-mode show/hide logic ── #} - -
    - -{# ── Koenig editor assets ── #} - - - - diff --git a/blog/templates/_types/post_edit/_nav.html b/blog/templates/_types/post_edit/_nav.html deleted file mode 100644 index a0468f9..0000000 --- a/blog/templates/_types/post_edit/_nav.html +++ /dev/null @@ -1,5 +0,0 @@ -{% import 'macros/links.html' as links %} -{% call links.link(url_for('blog.post.admin.defpage_post_settings', slug=post.slug), hx_select_search, select_colours, True, aclass=styles.nav_button) %} - - settings -{% endcall %} diff --git a/blog/templates/_types/post_edit/_oob_elements.html b/blog/templates/_types/post_edit/_oob_elements.html deleted file mode 100644 index 694096c..0000000 --- a/blog/templates/_types/post_edit/_oob_elements.html +++ /dev/null @@ -1,19 +0,0 @@ -{% extends 'oob_elements.html' %} - -{% from '_types/root/_oob_menu.html' import mobile_menu with context %} - -{% block oobs %} - {% from '_types/root/_n/macros.html' import oob_header with context %} - {{oob_header('post-admin-header-child', 'post_edit-header-child', '_types/post_edit/header/_header.html')}} - - {% from '_types/post/admin/header/_header.html' import header_row with context %} - {{ header_row(oob=True) }} -{% endblock %} - -{% block mobile_menu %} - {% include '_types/post_edit/_nav.html' %} -{% endblock %} - -{% block content %} - {% include '_types/post_edit/_main_panel.html' %} -{% endblock %} diff --git a/blog/templates/_types/post_edit/header/_header.html b/blog/templates/_types/post_edit/header/_header.html deleted file mode 100644 index 0590c17..0000000 --- a/blog/templates/_types/post_edit/header/_header.html +++ /dev/null @@ -1,14 +0,0 @@ -{% import 'macros/links.html' as links %} -{% macro header_row(oob=False) %} - {% call links.menu_row(id='post_edit-row', oob=oob) %} - {% call links.link(url_for('blog.post.admin.defpage_post_edit', slug=post.slug), hx_select_search) %} - -
    - edit -
    - {% endcall %} - {% call links.desktop_nav() %} - {% include '_types/post_edit/_nav.html' %} - {% endcall %} - {% endcall %} -{% endmacro %} diff --git a/blog/templates/_types/post_edit/index.html b/blog/templates/_types/post_edit/index.html deleted file mode 100644 index b5c7212..0000000 --- a/blog/templates/_types/post_edit/index.html +++ /dev/null @@ -1,17 +0,0 @@ -{% extends '_types/post/admin/index.html' %} - -{% block post_admin_header_child %} - {% from '_types/root/_n/macros.html' import index_row with context %} - {% call index_row('post-admin-header-child', '_types/post_edit/header/_header.html') %} - {% block post_edit_header_child %} - {% endblock %} - {% endcall %} -{% endblock %} - -{% block _main_mobile_menu %} - {% include '_types/post_edit/_nav.html' %} -{% endblock %} - -{% block content %} - {% include '_types/post_edit/_main_panel.html' %} -{% endblock %} diff --git a/blog/templates/_types/post_entries/_main_panel.html b/blog/templates/_types/post_entries/_main_panel.html deleted file mode 100644 index ac2a4a7..0000000 --- a/blog/templates/_types/post_entries/_main_panel.html +++ /dev/null @@ -1,41 +0,0 @@ -
    - - {# Associated Entries List #} - {% include '_types/post/admin/_associated_entries.html' %} - - {# Calendars Browser #} -
    -

    Browse Calendars

    - {% for calendar in all_calendars %} -
    - - {% if calendar.post.feature_image %} - {{ calendar.post.title }} - {% else %} -
    - {% endif %} -
    -
    - - {{ calendar.name }} -
    -
    - {{ calendar.post.title }} -
    -
    -
    -
    -
    Loading calendar...
    -
    -
    - {% else %} -
    No calendars found.
    - {% endfor %} -
    -
    \ No newline at end of file diff --git a/blog/templates/_types/post_entries/_nav.html b/blog/templates/_types/post_entries/_nav.html deleted file mode 100644 index f5c504d..0000000 --- a/blog/templates/_types/post_entries/_nav.html +++ /dev/null @@ -1,2 +0,0 @@ -{% from 'macros/admin_nav.html' import placeholder_nav %} -{{ placeholder_nav() }} diff --git a/blog/templates/_types/post_entries/_oob_elements.html b/blog/templates/_types/post_entries/_oob_elements.html deleted file mode 100644 index 3ef5559..0000000 --- a/blog/templates/_types/post_entries/_oob_elements.html +++ /dev/null @@ -1,28 +0,0 @@ -{% extends 'oob_elements.html' %} - -{# OOB elements for HTMX navigation - all elements that need updating #} - -{# Import shared OOB macros #} -{% from '_types/root/_oob_menu.html' import mobile_menu with context %} - - -{% block oobs %} - - {% from '_types/root/_n/macros.html' import oob_header with context %} - {{oob_header('post-admin-header-child', 'post_entries-header-child', '_types/post_entries/header/_header.html')}} - - {% from '_types/post/admin/header/_header.html' import header_row with context %} - {{ header_row(oob=True) }} -{% endblock %} - - -{% block mobile_menu %} - {% include '_types/post_entries/_nav.html' %} -{% endblock %} - - -{% block content %} - {% include "_types/post_entries/_main_panel.html" %} -{% endblock %} - - diff --git a/blog/templates/_types/post_entries/header/_header.html b/blog/templates/_types/post_entries/header/_header.html deleted file mode 100644 index 997a150..0000000 --- a/blog/templates/_types/post_entries/header/_header.html +++ /dev/null @@ -1,17 +0,0 @@ -{% import 'macros/links.html' as links %} -{% macro header_row(oob=False) %} - {% call links.menu_row(id='post_entries-row', oob=oob) %} - {% call links.link(url_for('blog.post.admin.defpage_post_entries', slug=post.slug), hx_select_search) %} - -
    - entries -
    - {% endcall %} - {% call links.desktop_nav() %} - {% include '_types/post_entries/_nav.html' %} - {% endcall %} - {% endcall %} -{% endmacro %} - - - diff --git a/blog/templates/_types/post_entries/index.html b/blog/templates/_types/post_entries/index.html deleted file mode 100644 index 382d297..0000000 --- a/blog/templates/_types/post_entries/index.html +++ /dev/null @@ -1,19 +0,0 @@ -{% extends '_types/post/admin/index.html' %} - - - -{% block post_admin_header_child %} - {% from '_types/root/_n/macros.html' import index_row with context %} - {% call index_row('post-admin-header-child', '_types/post_entries/header/_header.html') %} - {% block post_entries_header_child %} - {% endblock %} - {% endcall %} -{% endblock %} - -{% block _main_mobile_menu %} - {% include '_types/post_entries/_nav.html' %} -{% endblock %} - -{% block content %} - {% include '_types/post_entries/_main_panel.html' %} -{% endblock %} diff --git a/blog/templates/_types/post_settings/_main_panel.html b/blog/templates/_types/post_settings/_main_panel.html deleted file mode 100644 index 038fab1..0000000 --- a/blog/templates/_types/post_settings/_main_panel.html +++ /dev/null @@ -1,198 +0,0 @@ -{# ── Post/Page Settings Form ── #} -{% set gp = ghost_post or {} %} -{% set _is_page = post.is_page if post else False %} - -{% macro field_label(text, field_for=None) %} - -{% endmacro %} - -{% macro text_input(name, value='', placeholder='', type='text', maxlength=None) %} - -{% endmacro %} - -{% macro textarea_input(name, value='', placeholder='', rows=3, maxlength=None) %} - -{% endmacro %} - -{% macro checkbox_input(name, checked=False, label='') %} - -{% endmacro %} - -{% macro section(title, open=False) %} -
    - - {{ title }} - -
    - {{ caller() }} -
    -
    -{% endmacro %} - -
    - - - -
    - - {# ── General ── #} - {% call section('General', open=True) %} -
    - {{ field_label('Slug', 'settings-slug') }} - {{ text_input('slug', gp.slug or '', 'page-slug' if _is_page else 'post-slug') }} -
    -
    - {{ field_label('Published at', 'settings-published_at') }} - -
    -
    - {{ checkbox_input('featured', gp.featured, 'Featured page' if _is_page else 'Featured post') }} -
    -
    - {{ field_label('Visibility', 'settings-visibility') }} - -
    -
    - {{ checkbox_input('email_only', gp.email_only, 'Email only') }} -
    - {% endcall %} - - {# ── Tags ── #} - {% call section('Tags') %} -
    - {{ field_label('Tags (comma-separated)', 'settings-tags') }} - {% set tag_names = gp.tags|map(attribute='name')|list|join(', ') if gp.tags else '' %} - {{ text_input('tags', tag_names, 'news, updates, featured') }} -

    Unknown tags will be created automatically.

    -
    - {% endcall %} - - {# ── Feature Image ── #} - {% call section('Feature Image') %} -
    - {{ field_label('Alt text', 'settings-feature_image_alt') }} - {{ text_input('feature_image_alt', gp.feature_image_alt or '', 'Describe the feature image') }} -
    - {% endcall %} - - {# ── SEO / Meta ── #} - {% call section('SEO / Meta') %} -
    - {{ field_label('Meta title', 'settings-meta_title') }} - {{ text_input('meta_title', gp.meta_title or '', 'SEO title', maxlength=300) }} -

    Recommended: 70 characters. Max: 300.

    -
    -
    - {{ field_label('Meta description', 'settings-meta_description') }} - {{ textarea_input('meta_description', gp.meta_description or '', 'SEO description', rows=2, maxlength=500) }} -

    Recommended: 156 characters.

    -
    -
    - {{ field_label('Canonical URL', 'settings-canonical_url') }} - {{ text_input('canonical_url', gp.canonical_url or '', 'https://example.com/original-post', type='url') }} -
    - {% endcall %} - - {# ── Facebook / OpenGraph ── #} - {% call section('Facebook / OpenGraph') %} -
    - {{ field_label('OG title', 'settings-og_title') }} - {{ text_input('og_title', gp.og_title or '') }} -
    -
    - {{ field_label('OG description', 'settings-og_description') }} - {{ textarea_input('og_description', gp.og_description or '', rows=2) }} -
    -
    - {{ field_label('OG image URL', 'settings-og_image') }} - {{ text_input('og_image', gp.og_image or '', 'https://...', type='url') }} -
    - {% endcall %} - - {# ── X / Twitter ── #} - {% call section('X / Twitter') %} -
    - {{ field_label('Twitter title', 'settings-twitter_title') }} - {{ text_input('twitter_title', gp.twitter_title or '') }} -
    -
    - {{ field_label('Twitter description', 'settings-twitter_description') }} - {{ textarea_input('twitter_description', gp.twitter_description or '', rows=2) }} -
    -
    - {{ field_label('Twitter image URL', 'settings-twitter_image') }} - {{ text_input('twitter_image', gp.twitter_image or '', 'https://...', type='url') }} -
    - {% endcall %} - - {# ── Advanced ── #} - {% call section('Advanced') %} -
    - {{ field_label('Custom template', 'settings-custom_template') }} - {{ text_input('custom_template', gp.custom_template or '', 'custom-page.hbs' if _is_page else 'custom-post.hbs') }} -
    - {% endcall %} - -
    - - {# ── Save footer ── #} -
    - - - {% if save_success %} - Saved. - {% endif %} -
    -
    diff --git a/blog/templates/_types/post_settings/_nav.html b/blog/templates/_types/post_settings/_nav.html deleted file mode 100644 index 01648aa..0000000 --- a/blog/templates/_types/post_settings/_nav.html +++ /dev/null @@ -1,5 +0,0 @@ -{% import 'macros/links.html' as links %} -{% call links.link(url_for('blog.post.admin.defpage_post_edit', slug=post.slug), hx_select_search, select_colours, True, aclass=styles.nav_button) %} - - edit -{% endcall %} diff --git a/blog/templates/_types/post_settings/_oob_elements.html b/blog/templates/_types/post_settings/_oob_elements.html deleted file mode 100644 index d2d6beb..0000000 --- a/blog/templates/_types/post_settings/_oob_elements.html +++ /dev/null @@ -1,19 +0,0 @@ -{% extends 'oob_elements.html' %} - -{% from '_types/root/_oob_menu.html' import mobile_menu with context %} - -{% block oobs %} - {% from '_types/root/_n/macros.html' import oob_header with context %} - {{oob_header('post-admin-header-child', 'post_settings-header-child', '_types/post_settings/header/_header.html')}} - - {% from '_types/post/admin/header/_header.html' import header_row with context %} - {{ header_row(oob=True) }} -{% endblock %} - -{% block mobile_menu %} - {% include '_types/post_settings/_nav.html' %} -{% endblock %} - -{% block content %} - {% include '_types/post_settings/_main_panel.html' %} -{% endblock %} diff --git a/blog/templates/_types/post_settings/header/_header.html b/blog/templates/_types/post_settings/header/_header.html deleted file mode 100644 index b5f9bf4..0000000 --- a/blog/templates/_types/post_settings/header/_header.html +++ /dev/null @@ -1,14 +0,0 @@ -{% import 'macros/links.html' as links %} -{% macro header_row(oob=False) %} - {% call links.menu_row(id='post_settings-row', oob=oob) %} - {% call links.link(url_for('blog.post.admin.defpage_post_settings', slug=post.slug), hx_select_search) %} - -
    - settings -
    - {% endcall %} - {% call links.desktop_nav() %} - {% include '_types/post_settings/_nav.html' %} - {% endcall %} - {% endcall %} -{% endmacro %} diff --git a/blog/templates/_types/post_settings/index.html b/blog/templates/_types/post_settings/index.html deleted file mode 100644 index 59835f4..0000000 --- a/blog/templates/_types/post_settings/index.html +++ /dev/null @@ -1,17 +0,0 @@ -{% extends '_types/post/admin/index.html' %} - -{% block post_admin_header_child %} - {% from '_types/root/_n/macros.html' import index_row with context %} - {% call index_row('post-admin-header-child', '_types/post_settings/header/_header.html') %} - {% block post_settings_header_child %} - {% endblock %} - {% endcall %} -{% endblock %} - -{% block _main_mobile_menu %} - {% include '_types/post_settings/_nav.html' %} -{% endblock %} - -{% block content %} - {% include '_types/post_settings/_main_panel.html' %} -{% endblock %} diff --git a/blog/templates/_types/root/header/_header.html b/blog/templates/_types/root/header/_header.html deleted file mode 100644 index 7792cd5..0000000 --- a/blog/templates/_types/root/header/_header.html +++ /dev/null @@ -1,42 +0,0 @@ -{% set select_colours = " - [.hover-capable_&]:hover:bg-yellow-300 - aria-selected:bg-stone-500 aria-selected:text-white - [.hover-capable_&[aria-selected=true]:hover]:bg-orange-500 -"%} -{% import 'macros/links.html' as links %} - -{% macro header_row(oob=False) %} - {% call links.menu_row(id='root-row', oob=oob) %} -
    - {# Cart mini — fetched from cart app as fragment #} - {% if cart_mini_html %} - {{ cart_mini_html | safe }} - {% endif %} - - {# Site title #} -
    - {% from 'macros/title.html' import title with context %} - {{ title('flex justify-center md:justify-start')}} -
    - - {# Desktop nav #} - - {% include '_types/root/_hamburger.html' %} -
    - {% endcall %} - {# Mobile user info #} -
    - {% if auth_menu_html %} - {{ auth_menu_html | safe }} - {% endif %} -
    -{% endmacro %} diff --git a/blog/templates/_types/root/settings/_main_panel.html b/blog/templates/_types/root/settings/_main_panel.html deleted file mode 100644 index 9f4c9a8..0000000 --- a/blog/templates/_types/root/settings/_main_panel.html +++ /dev/null @@ -1,2 +0,0 @@ -
    -
    diff --git a/blog/templates/_types/root/settings/_nav.html b/blog/templates/_types/root/settings/_nav.html deleted file mode 100644 index f6cca5b..0000000 --- a/blog/templates/_types/root/settings/_nav.html +++ /dev/null @@ -1,5 +0,0 @@ -{% from 'macros/admin_nav.html' import admin_nav_item %} -{{ admin_nav_item(url_for('menu_items.defpage_menu_items_page'), 'bars', 'Menu Items', select_colours) }} -{{ admin_nav_item(url_for('snippets.defpage_snippets_page'), 'puzzle-piece', 'Snippets', select_colours) }} -{{ admin_nav_item(url_for('blog.tag_groups_admin.defpage_tag_groups_page'), 'tags', 'Tag Groups', select_colours) }} -{{ admin_nav_item(url_for('settings.defpage_cache_page'), 'refresh', 'Cache', select_colours) }} diff --git a/blog/templates/_types/root/settings/_oob_elements.html b/blog/templates/_types/root/settings/_oob_elements.html deleted file mode 100644 index fbe1bf3..0000000 --- a/blog/templates/_types/root/settings/_oob_elements.html +++ /dev/null @@ -1,26 +0,0 @@ -{% extends 'oob_elements.html' %} - -{# OOB elements for HTMX navigation - all elements that need updating #} - -{# Import shared OOB macros #} -{% from '_types/root/header/_oob_.html' import root_header with context %} - -{% block oobs %} - - {% from '_types/root/_n/macros.html' import oob_header with context %} - {{oob_header('root-header-child', 'root-settings-header-child', '_types/root/settings/header/_header.html')}} - - {% from '_types/root/header/_header.html' import header_row with context %} - {{ header_row(oob=True) }} -{% endblock %} - - -{% block mobile_menu %} -{% include '_types/root/settings/_nav.html' %} -{% endblock %} - - -{% block content %} - {% include '_types/root/settings/_main_panel.html' %} -{% endblock %} - diff --git a/blog/templates/_types/root/settings/cache/_header.html b/blog/templates/_types/root/settings/cache/_header.html deleted file mode 100644 index 19047da..0000000 --- a/blog/templates/_types/root/settings/cache/_header.html +++ /dev/null @@ -1,9 +0,0 @@ -{% import 'macros/links.html' as links %} -{% macro header_row(oob=False) %} - {% call links.menu_row(id='cache-row', oob=oob) %} - {% from 'macros/admin_nav.html' import admin_nav_item %} - {{ admin_nav_item(url_for('settings.defpage_cache_page'), 'refresh', 'Cache', select_colours, aclass='') }} - {% call links.desktop_nav() %} - {% endcall %} - {% endcall %} -{% endmacro %} diff --git a/blog/templates/_types/root/settings/cache/_main_panel.html b/blog/templates/_types/root/settings/cache/_main_panel.html deleted file mode 100644 index 6f1c422..0000000 --- a/blog/templates/_types/root/settings/cache/_main_panel.html +++ /dev/null @@ -1,14 +0,0 @@ -
    -
    -
    - - -
    -
    -
    -
    diff --git a/blog/templates/_types/root/settings/cache/_oob_elements.html b/blog/templates/_types/root/settings/cache/_oob_elements.html deleted file mode 100644 index 5989bf7..0000000 --- a/blog/templates/_types/root/settings/cache/_oob_elements.html +++ /dev/null @@ -1,16 +0,0 @@ -{% extends 'oob_elements.html' %} - -{% block oobs %} - {% from '_types/root/_n/macros.html' import oob_header with context %} - {{oob_header('root-settings-header-child', 'cache-header-child', '_types/root/settings/cache/_header.html')}} - - {% from '_types/root/settings/header/_header.html' import header_row with context %} - {{header_row(oob=True)}} -{% endblock %} - -{% block mobile_menu %} -{% endblock %} - -{% block content %} - {% include '_types/root/settings/cache/_main_panel.html' %} -{% endblock %} diff --git a/blog/templates/_types/root/settings/cache/index.html b/blog/templates/_types/root/settings/cache/index.html deleted file mode 100644 index 05706f8..0000000 --- a/blog/templates/_types/root/settings/cache/index.html +++ /dev/null @@ -1,20 +0,0 @@ -{% extends '_types/root/settings/index.html' %} - -{% block root_settings_header_child %} - {% from '_types/root/_n/macros.html' import header with context %} - {% call header() %} - {% from '_types/root/settings/cache/_header.html' import header_row with context %} - {{ header_row() }} -
    - {% block cache_header_child %} - {% endblock %} -
    - {% endcall %} -{% endblock %} - -{% block content %} - {% include '_types/root/settings/cache/_main_panel.html' %} -{% endblock %} - -{% block _main_mobile_menu %} -{% endblock %} diff --git a/blog/templates/_types/root/settings/header/_header.html b/blog/templates/_types/root/settings/header/_header.html deleted file mode 100644 index c16968e..0000000 --- a/blog/templates/_types/root/settings/header/_header.html +++ /dev/null @@ -1,11 +0,0 @@ -{% import 'macros/links.html' as links %} -{% macro header_row(oob=False) %} - {% call links.menu_row(id='root-settings-row', oob=oob) %} - {% call links.link(url_for('settings.defpage_settings_home'), hx_select_search) %} - {{ links.admin() }} - {% endcall %} - {% call links.desktop_nav() %} - {% include '_types/root/settings/_nav.html' %} - {% endcall %} - {% endcall %} -{% endmacro %} \ No newline at end of file diff --git a/blog/templates/_types/root/settings/index.html b/blog/templates/_types/root/settings/index.html deleted file mode 100644 index 1773f3d..0000000 --- a/blog/templates/_types/root/settings/index.html +++ /dev/null @@ -1,18 +0,0 @@ -{% extends '_types/root/_index.html' %} -{% import 'macros/layout.html' as layout %} - -{% block root_header_child %} - {% from '_types/root/_n/macros.html' import index_row with context %} - {% call index_row('root-settings-header-child', '_types/root/settings/header/_header.html') %} - {% block root_settings_header_child %} - {% endblock %} - {% endcall %} -{% endblock %} - -{% block _main_mobile_menu %} - {% include '_types/root/settings/_nav.html' %} -{% endblock %} - -{% block content %} - {% include '_types/root/settings/_main_panel.html' %} -{% endblock %} \ No newline at end of file diff --git a/blog/templates/_types/snippets/_list.html b/blog/templates/_types/snippets/_list.html deleted file mode 100644 index 964777f..0000000 --- a/blog/templates/_types/snippets/_list.html +++ /dev/null @@ -1,73 +0,0 @@ -
    - {% if snippets %} -
    - {% for s in snippets %} -
    - {# Name #} -
    -
    {{ s.name }}
    -
    - {% if s.user_id == g.user.id %} - You - {% else %} - User #{{ s.user_id }} - {% endif %} -
    -
    - - {# Visibility badge #} - {% set badge_colours = { - 'private': 'bg-stone-200 text-stone-700', - 'shared': 'bg-blue-100 text-blue-700', - 'admin': 'bg-amber-100 text-amber-700', - } %} - - {{ s.visibility }} - - - {# Admin: inline visibility select #} - {% if is_admin %} - - {% endif %} - - {# Delete button #} - {% if s.user_id == g.user.id or is_admin %} - - {% endif %} -
    - {% endfor %} -
    - {% else %} -
    - -

    No snippets yet. Create one from the blog editor.

    -
    - {% endif %} -
    diff --git a/blog/templates/_types/snippets/_main_panel.html b/blog/templates/_types/snippets/_main_panel.html deleted file mode 100644 index 73b50b7..0000000 --- a/blog/templates/_types/snippets/_main_panel.html +++ /dev/null @@ -1,9 +0,0 @@ -
    -
    -

    Snippets

    -
    - -
    - {% include '_types/snippets/_list.html' %} -
    -
    diff --git a/blog/templates/_types/snippets/_oob_elements.html b/blog/templates/_types/snippets/_oob_elements.html deleted file mode 100644 index a1377cf..0000000 --- a/blog/templates/_types/snippets/_oob_elements.html +++ /dev/null @@ -1,18 +0,0 @@ -{% extends 'oob_elements.html' %} - -{# OOB elements for HTMX navigation - all elements that need updating #} - -{% block oobs %} - {% from '_types/root/_n/macros.html' import oob_header with context %} - {{oob_header('root-settings-header-child', 'snippets-header-child', '_types/snippets/header/_header.html')}} - - {% from '_types/root/settings/header/_header.html' import header_row with context %} - {{header_row(oob=True)}} -{% endblock %} - -{% block mobile_menu %} -{% endblock %} - -{% block content %} - {% include '_types/snippets/_main_panel.html' %} -{% endblock %} diff --git a/blog/templates/_types/snippets/header/_header.html b/blog/templates/_types/snippets/header/_header.html deleted file mode 100644 index 9d294c9..0000000 --- a/blog/templates/_types/snippets/header/_header.html +++ /dev/null @@ -1,9 +0,0 @@ -{% import 'macros/links.html' as links %} -{% macro header_row(oob=False) %} - {% call links.menu_row(id='snippets-row', oob=oob) %} - {% from 'macros/admin_nav.html' import admin_nav_item %} - {{ admin_nav_item(url_for('snippets.defpage_snippets_page'), 'puzzle-piece', 'Snippets', select_colours, aclass='') }} - {% call links.desktop_nav() %} - {% endcall %} - {% endcall %} -{% endmacro %} diff --git a/blog/templates/_types/snippets/index.html b/blog/templates/_types/snippets/index.html deleted file mode 100644 index 90f0106..0000000 --- a/blog/templates/_types/snippets/index.html +++ /dev/null @@ -1,20 +0,0 @@ -{% extends '_types/root/settings/index.html' %} - -{% block root_settings_header_child %} - {% from '_types/root/_n/macros.html' import header with context %} - {% call header() %} - {% from '_types/snippets/header/_header.html' import header_row with context %} - {{ header_row() }} -
    - {% block snippets_header_child %} - {% endblock %} -
    - {% endcall %} -{% endblock %} - -{% block content %} - {% include '_types/snippets/_main_panel.html' %} -{% endblock %} - -{% block _main_mobile_menu %} -{% endblock %} diff --git a/blog/templates/fragments/nav_tree.html b/blog/templates/fragments/nav_tree.html deleted file mode 100644 index 5c38335..0000000 --- a/blog/templates/fragments/nav_tree.html +++ /dev/null @@ -1,33 +0,0 @@ -{# Nav-tree fragment — rendered by blog, consumed by all apps. - Uses frag_app_name / frag_first_seg instead of request.path / app_name - so the consuming app's context is reflected correctly. - No hx-boost — cross-app nav links are full page navigations. #} -{% set _app_slugs = { - 'cart': cart_url('/'), - 'market': market_url('/'), - 'events': events_url('/'), - 'federation': federation_url('/'), - 'account': account_url('/'), - 'artdag': artdag_url('/'), -} %} - diff --git a/blog/templates/macros/admin_nav.html b/blog/templates/macros/admin_nav.html deleted file mode 100644 index 738a319..0000000 --- a/blog/templates/macros/admin_nav.html +++ /dev/null @@ -1,21 +0,0 @@ -{# - Shared admin navigation macro - Use this instead of duplicate _nav.html files -#} - -{% macro admin_nav_item(href, icon='cog', label='', select_colours='', aclass=styles.nav_button) %} - {% import 'macros/links.html' as links %} - {% call links.link(href, hx_select_search, select_colours, True, aclass=aclass) %} - - {{ label }} - {% endcall %} -{% endmacro %} - -{% macro placeholder_nav() %} -{# Placeholder for admin sections without specific nav items #} - -{% endmacro %} diff --git a/blog/templates/macros/scrolling_menu.html b/blog/templates/macros/scrolling_menu.html deleted file mode 100644 index 7f3f15d..0000000 --- a/blog/templates/macros/scrolling_menu.html +++ /dev/null @@ -1,59 +0,0 @@ -{# - Scrolling menu macro with arrow navigation - - Creates a horizontally scrollable menu (desktop) or vertically scrollable (mobile) - with arrow buttons that appear/hide based on content overflow. - - Parameters: - - container_id: Unique ID for the scroll container - - items: List of items to iterate over - - item_content: Caller block that renders each item (receives 'item' variable) - - wrapper_class: Optional additional classes for outer wrapper - - container_class: Optional additional classes for scroll container - - item_class: Optional additional classes for each item wrapper -#} - -{% macro scrolling_menu(container_id, items, wrapper_class='', container_class='', item_class='') %} - {% if items %} - {# Left scroll arrow - desktop only #} - - - {# Scrollable container #} -
    -
    - {% for item in items %} -
    - {{ caller(item) }} -
    - {% endfor %} -
    -
    - - - - {# Right scroll arrow - desktop only #} - - {% endif %} -{% endmacro %} diff --git a/blog/templates/macros/stickers.html b/blog/templates/macros/stickers.html deleted file mode 100644 index 2be5b9f..0000000 --- a/blog/templates/macros/stickers.html +++ /dev/null @@ -1,24 +0,0 @@ -{% macro sticker(src, title, enabled, size=40, found=false) -%} - - - - {{ title|capitalize }} - - - - - -{%- endmacro -%} - diff --git a/cart/templates/_types/auth/header/_header.html b/cart/templates/_types/auth/header/_header.html deleted file mode 100644 index c59a712..0000000 --- a/cart/templates/_types/auth/header/_header.html +++ /dev/null @@ -1,12 +0,0 @@ -{% import 'macros/links.html' as links %} -{% macro header_row(oob=False) %} - {% call links.menu_row(id='auth-row', oob=oob) %} - {% call links.link(account_url('/'), hx_select_search ) %} - -
    account
    - {% endcall %} - {% call links.desktop_nav() %} - {% include "_types/auth/_nav.html" %} - {% endcall %} - {% endcall %} -{% endmacro %} \ No newline at end of file diff --git a/cart/templates/_types/auth/index.html b/cart/templates/_types/auth/index.html deleted file mode 100644 index 3c66bf1..0000000 --- a/cart/templates/_types/auth/index.html +++ /dev/null @@ -1,18 +0,0 @@ -{% extends oob.extends %} - - -{% block root_header_child %} - {% from '_types/root/_n/macros.html' import index_row with context %} - {% call index_row(oob.child_id, oob.header) %} - {% block auth_header_child %} - {% endblock %} - {% endcall %} -{% endblock %} - -{% block _main_mobile_menu %} - {% include oob.nav %} -{% endblock %} - -{% block content %} - {% include oob.main %} -{% endblock %} diff --git a/cart/templates/_types/cart/_cart.html b/cart/templates/_types/cart/_cart.html deleted file mode 100644 index 16a9437..0000000 --- a/cart/templates/_types/cart/_cart.html +++ /dev/null @@ -1,260 +0,0 @@ -{% macro show_cart(oob=False) %} -
    - {# Empty cart #} - {% if not cart and not calendar_cart_entries and not ticket_cart_entries %} -
    -
    - -
    -

    - Your cart is empty -

    - {# -

    - Add some items from the shop to see them here. -

    - #} -
    - - {% else %} - -
    - {# Items list #} -
    - {% for item in cart %} - {% from '_types/product/_cart.html' import cart_item with context %} - {{ cart_item()}} - {% endfor %} - {% if calendar_cart_entries %} -
    -

    - Calendar bookings -

    - -
      - {% for entry in calendar_cart_entries %} -
    • -
      -
      - {{ entry.name or entry.calendar_name }} -
      -
      - {{ entry.start_at }} - {% if entry.end_at %} - – {{ entry.end_at }} - {% endif %} -
      -
      -
      - £{{ "%.2f"|format(entry.cost or 0) }} -
      -
    • - {% endfor %} -
    -
    - {% endif %} - {% if ticket_groups is defined and ticket_groups %} -
    -

    - - Event tickets -

    - -
    - {% for tg in ticket_groups %} -
    -
    -
    -
    -

    - {{ tg.entry_name }} -

    - {% if tg.ticket_type_name %} -

    - {{ tg.ticket_type_name }} -

    - {% endif %} -

    - {{ tg.entry_start_at.strftime('%-d %b %Y, %H:%M') }} - {% if tg.entry_end_at %} - – {{ tg.entry_end_at.strftime('%-d %b %Y, %H:%M') }} - {% endif %} -

    -
    -
    -

    - £{{ "%.2f"|format(tg.price or 0) }} -

    -
    -
    - -
    -
    - Quantity - {% set qty_url = url_for('cart_global.update_ticket_quantity') %} - -
    - - - {% if tg.ticket_type_id %} - - {% endif %} - - -
    - - - {{ tg.quantity }} - - -
    - - - {% if tg.ticket_type_id %} - - {% endif %} - - -
    -
    - -
    -

    - Line total: - £{{ "%.2f"|format(tg.line_total) }} -

    -
    -
    -
    -
    - {% endfor %} -
    -
    - {% endif %} -
    - {{summary(cart, total, calendar_total, calendar_cart_entries, ticket_total, ticket_cart_entries)}} - -
    - - {% endif %} -
    -{% endmacro %} - - -{% macro summary(cart, total, calendar_total, calendar_cart_entries, ticket_total, ticket_cart_entries, oob=False) %} - -{% endmacro %} - -{% macro cart_total(cart, total) %} - {% set cart_total = total(cart) %} - {% if cart_total %} - {% set symbol = "£" if cart[0].product.regular_price_currency == "GBP" else cart[0].product.regular_price_currency %} - {{ symbol }}{{ "%.2f"|format(cart_total) }} - {% else %} - – - {% endif %} -{% endmacro %} - - -{% macro cart_grand_total(cart, total, calendar_total, calendar_cart_entries, ticket_total, ticket_cart_entries) %} - {% set product_total = total(cart) or 0 %} - {% set cal_total = calendar_total(calendar_cart_entries) or 0 %} - {% set tk_total = ticket_total(ticket_cart_entries) or 0 %} - {% set grand = product_total + cal_total + tk_total %} - - {% if cart and cart[0].product.regular_price_currency %} - {% set symbol = "£" if cart[0].product.regular_price_currency == "GBP" else cart[0].product.regular_price_currency %} - {% else %} - {% set symbol = "£" %} - {% endif %} - - {{ symbol }}{{ "%.2f"|format(grand) }} -{% endmacro %} \ No newline at end of file diff --git a/cart/templates/_types/cart/_main_panel.html b/cart/templates/_types/cart/_main_panel.html deleted file mode 100644 index 3872387..0000000 --- a/cart/templates/_types/cart/_main_panel.html +++ /dev/null @@ -1,4 +0,0 @@ -
    - {% from '_types/cart/_cart.html' import show_cart with context %} - {{ show_cart() }} -
    \ No newline at end of file diff --git a/cart/templates/_types/cart/_mini.html b/cart/templates/_types/cart/_mini.html deleted file mode 100644 index faaa9a6..0000000 --- a/cart/templates/_types/cart/_mini.html +++ /dev/null @@ -1,45 +0,0 @@ -{% macro mini(oob=False, count=None) %} -
    - {# cart_count is set by the context processor in all apps. - Cart app computes it from g.cart + calendar_cart_entries; - other apps get it from the cart internal API. - count param allows explicit override when macro is imported without context. #} - {% if count is not none %} - {% set _count = count %} - {% elif cart_count is defined and cart_count is not none %} - {% set _count = cart_count %} - {% elif cart is defined and cart is not none %} - {% set _count = (cart | sum(attribute="quantity")) + ((calendar_cart_entries | length) if calendar_cart_entries else 0) %} - {% else %} - {% set _count = 0 %} - {% endif %} - - {% if _count == 0 %} -
    - - - -
    - {% else %} - - - - - - {{ _count }} - - - {% endif %} -
    -{% endmacro %} diff --git a/cart/templates/_types/cart/_nav.html b/cart/templates/_types/cart/_nav.html deleted file mode 100644 index f5c504d..0000000 --- a/cart/templates/_types/cart/_nav.html +++ /dev/null @@ -1,2 +0,0 @@ -{% from 'macros/admin_nav.html' import placeholder_nav %} -{{ placeholder_nav() }} diff --git a/cart/templates/_types/cart/_oob_elements.html b/cart/templates/_types/cart/_oob_elements.html deleted file mode 100644 index 6e54a8b..0000000 --- a/cart/templates/_types/cart/_oob_elements.html +++ /dev/null @@ -1,28 +0,0 @@ -{% extends 'oob_elements.html' %} - -{# OOB elements for HTMX navigation - all elements that need updating #} - -{% from '_types/root/_oob_menu.html' import mobile_menu with context %} - -{# Header with app title - includes cart-mini, navigation, and market-specific header #} - -{% block oobs %} - - {% from '_types/root/_n/macros.html' import oob_header with context %} - {{oob_header('root-header-child', 'cart-header-child', '_types/cart/header/_header.html')}} - - {% from '_types/root/header/_header.html' import header_row with context %} - {{ header_row(oob=True) }} -{% endblock %} - - -{% block mobile_menu %} - {% include '_types/cart/_nav.html' %} -{% endblock %} - - -{% block content %} - {% include "_types/cart/_main_panel.html" %} -{% endblock %} - - diff --git a/cart/templates/_types/cart/checkout_error.html b/cart/templates/_types/cart/checkout_error.html deleted file mode 100644 index a15b1e9..0000000 --- a/cart/templates/_types/cart/checkout_error.html +++ /dev/null @@ -1,38 +0,0 @@ -{% extends '_types/root/index.html' %} - -{% block filter %} -
    -

    - Checkout error -

    -

    - We tried to start your payment with SumUp but hit a problem. -

    -
    -{% endblock %} - -{% block content %} -
    -
    -

    Something went wrong.

    -

    - {{ error or "Unexpected error while creating the hosted checkout session." }} -

    - {% if order %} -

    - Order ID: #{{ order.id }} -

    - {% endif %} -
    - -
    - - - Back to cart - -
    -
    -{% endblock %} diff --git a/cart/templates/_types/cart/checkout_return.html b/cart/templates/_types/cart/checkout_return.html deleted file mode 100644 index b08a09d..0000000 --- a/cart/templates/_types/cart/checkout_return.html +++ /dev/null @@ -1,68 +0,0 @@ -{% extends '_types/root/index.html' %} - -{% block filter %} -
    -
    -

    - {% if order.status == 'paid' %} - Payment received - {% elif order.status == 'failed' %} - Payment failed - {% elif order.status == 'missing' %} - Order not found - {% else %} - Payment status: {{ order.status|default('pending')|capitalize }} - {% endif %} -

    -

    - {% if order.status == 'paid' %} - Thanks for your order. - {% elif order.status == 'failed' %} - Something went wrong while processing your payment. You can try again below. - {% elif order.status == 'missing' %} - We couldn't find that order – it may have expired or never been created. - {% else %} - We’re still waiting for a final confirmation from SumUp. - {% endif %} -

    -
    - -
    -{% endblock %} - -{% block aside %} - {# no aside content for now #} -{% endblock %} - -{% block content %} -
    - {% if order %} -
    - {% include '_types/order/_summary.html' %} -
    - {% else %} -
    - We couldn’t find that order. If you reached this page from an old link, please start a new order. -
    - {% endif %} - {% include '_types/order/_items.html' %} - {% include '_types/order/_calendar_items.html' %} - {% include '_types/order/_ticket_items.html' %} - - {% if order.status == 'failed' and order %} -
    -

    Your payment was not completed.

    -

    - You can go back to your cart and try checkout again. If the problem persists, - please contact us and mention order #{{ order.id }}. -

    -
    - {% elif order.status == 'paid' %} -
    -

    All done!

    -

    We’ll start processing your order shortly.

    -
    - {% endif %} - -
    -{% endblock %} diff --git a/cart/templates/_types/cart/header/_header.html b/cart/templates/_types/cart/header/_header.html deleted file mode 100644 index b5d913d..0000000 --- a/cart/templates/_types/cart/header/_header.html +++ /dev/null @@ -1,12 +0,0 @@ -{% import 'macros/links.html' as links %} -{% macro header_row(oob=False) %} - {% call links.menu_row(id='cart-row', oob=oob) %} - {% call links.link(cart_url('/'), hx_select_search ) %} - -

    cart

    - {% endcall %} - {% call links.desktop_nav() %} - {% include '_types/cart/_nav.html' %} - {% endcall %} - {% endcall %} -{% endmacro %} \ No newline at end of file diff --git a/cart/templates/_types/cart/index.html b/cart/templates/_types/cart/index.html deleted file mode 100644 index 78570d9..0000000 --- a/cart/templates/_types/cart/index.html +++ /dev/null @@ -1,22 +0,0 @@ -{% extends '_types/root/_index.html' %} - -{% block root_header_child %} - {% from '_types/root/_n/macros.html' import index_row with context %} - {% call index_row('cart-header-child', '_types/cart/header/_header.html') %} - {% block cart_header_child %} - {% endblock %} - {% endcall %} -{% endblock %} - - -{% block _main_mobile_menu %} -{% include '_types/cart/_nav.html' %} -{% endblock %} - - -{% block aside %} -{% endblock %} - -{% block content %} - {% include '_types/cart/_main_panel.html' %} -{% endblock %} diff --git a/cart/templates/_types/cart/overview/_main_panel.html b/cart/templates/_types/cart/overview/_main_panel.html deleted file mode 100644 index 0ac484e..0000000 --- a/cart/templates/_types/cart/overview/_main_panel.html +++ /dev/null @@ -1,147 +0,0 @@ -
    - {% if not page_groups or (page_groups | length == 0) %} -
    -
    - -
    -

    - Your cart is empty -

    -
    - - {% else %} - {# Check if there are any items at all across all groups #} - {% set ns = namespace(has_items=false) %} - {% for grp in page_groups %} - {% if grp.cart_items or grp.calendar_entries or grp.get('tickets') %} - {% set ns.has_items = true %} - {% endif %} - {% endfor %} - - {% if not ns.has_items %} -
    -
    - -
    -

    - Your cart is empty -

    -
    - {% else %} -
    - {% for grp in page_groups %} - {% if grp.cart_items or grp.calendar_entries or grp.get('tickets') %} - - {% if grp.post %} - {# Market / page cart card #} - -
    - {% if grp.post.feature_image %} - {{ grp.post.title }} - {% else %} -
    - -
    - {% endif %} - -
    -

    - {% if grp.market_place %} - {{ grp.market_place.name }} - {% else %} - {{ grp.post.title }} - {% endif %} -

    - {% if grp.market_place %} -

    {{ grp.post.title }}

    - {% endif %} - -
    - {% if grp.product_count > 0 %} - - - {{ grp.product_count }} item{{ 's' if grp.product_count != 1 }} - - {% endif %} - {% if grp.calendar_count > 0 %} - - - {{ grp.calendar_count }} booking{{ 's' if grp.calendar_count != 1 }} - - {% endif %} - {% if grp.ticket_count is defined and grp.ticket_count > 0 %} - - - {{ grp.ticket_count }} ticket{{ 's' if grp.ticket_count != 1 }} - - {% endif %} -
    -
    - -
    -
    - £{{ "%.2f"|format(grp.total) }} -
    -
    - View cart → -
    -
    -
    -
    - - {% else %} - {# Orphan bucket (items without a page) #} -
    -
    -
    - -
    - -
    -

    - Other items -

    -
    - {% if grp.product_count > 0 %} - - - {{ grp.product_count }} item{{ 's' if grp.product_count != 1 }} - - {% endif %} - {% if grp.calendar_count > 0 %} - - - {{ grp.calendar_count }} booking{{ 's' if grp.calendar_count != 1 }} - - {% endif %} - {% if grp.ticket_count is defined and grp.ticket_count > 0 %} - - - {{ grp.ticket_count }} ticket{{ 's' if grp.ticket_count != 1 }} - - {% endif %} -
    -
    - -
    -
    - £{{ "%.2f"|format(grp.total) }} -
    -
    -
    -
    - {% endif %} - - {% endif %} - {% endfor %} -
    - {% endif %} - {% endif %} -
    diff --git a/cart/templates/_types/cart/overview/_oob_elements.html b/cart/templates/_types/cart/overview/_oob_elements.html deleted file mode 100644 index af27fdc..0000000 --- a/cart/templates/_types/cart/overview/_oob_elements.html +++ /dev/null @@ -1,24 +0,0 @@ -{% extends 'oob_elements.html' %} - -{# OOB elements for cart overview HTMX navigation #} - -{% from '_types/root/_oob_menu.html' import mobile_menu with context %} - -{% block oobs %} - - {% from '_types/root/_n/macros.html' import oob_header with context %} - {{oob_header('root-header-child', 'cart-header-child', '_types/cart/header/_header.html')}} - - {% from '_types/root/header/_header.html' import header_row with context %} - {{ header_row(oob=True) }} -{% endblock %} - - -{% block mobile_menu %} - {% include '_types/cart/_nav.html' %} -{% endblock %} - - -{% block content %} - {% include "_types/cart/overview/_main_panel.html" %} -{% endblock %} diff --git a/cart/templates/_types/cart/overview/index.html b/cart/templates/_types/cart/overview/index.html deleted file mode 100644 index bf1faf0..0000000 --- a/cart/templates/_types/cart/overview/index.html +++ /dev/null @@ -1,22 +0,0 @@ -{% extends '_types/root/_index.html' %} - -{% block root_header_child %} - {% from '_types/root/_n/macros.html' import index_row with context %} - {% call index_row('cart-header-child', '_types/cart/header/_header.html') %} - {% block cart_header_child %} - {% endblock %} - {% endcall %} -{% endblock %} - - -{% block _main_mobile_menu %} -{% include '_types/cart/_nav.html' %} -{% endblock %} - - -{% block aside %} -{% endblock %} - -{% block content %} - {% include '_types/cart/overview/_main_panel.html' %} -{% endblock %} diff --git a/cart/templates/_types/cart/page/_main_panel.html b/cart/templates/_types/cart/page/_main_panel.html deleted file mode 100644 index 7b62eb9..0000000 --- a/cart/templates/_types/cart/page/_main_panel.html +++ /dev/null @@ -1,4 +0,0 @@ -
    - {% from '_types/cart/_cart.html' import show_cart with context %} - {{ show_cart() }} -
    diff --git a/cart/templates/_types/cart/page/_oob_elements.html b/cart/templates/_types/cart/page/_oob_elements.html deleted file mode 100644 index b5416fc..0000000 --- a/cart/templates/_types/cart/page/_oob_elements.html +++ /dev/null @@ -1,27 +0,0 @@ -{% extends 'oob_elements.html' %} - -{# OOB elements for page cart HTMX navigation #} - -{% from '_types/root/_oob_menu.html' import mobile_menu with context %} - -{% block oobs %} - - {% from '_types/root/_n/macros.html' import oob_header with context %} - {{oob_header('root-header-child', 'cart-header-child', '_types/cart/header/_header.html')}} - - {% from '_types/cart/page/header/_header.html' import page_header_row with context %} - {{ page_header_row(oob=True) }} - - {% from '_types/root/header/_header.html' import header_row with context %} - {{ header_row(oob=True) }} -{% endblock %} - - -{% block mobile_menu %} - {% include '_types/cart/_nav.html' %} -{% endblock %} - - -{% block content %} - {% include "_types/cart/page/_main_panel.html" %} -{% endblock %} diff --git a/cart/templates/_types/cart/page/header/_header.html b/cart/templates/_types/cart/page/header/_header.html deleted file mode 100644 index 6afb1fb..0000000 --- a/cart/templates/_types/cart/page/header/_header.html +++ /dev/null @@ -1,25 +0,0 @@ -{% import 'macros/links.html' as links %} -{% macro page_header_row(oob=False) %} - {% call links.menu_row(id='page-cart-row', oob=oob) %} - {% call links.link(cart_url('/' + page_post.slug + '/'), hx_select_search) %} - {% if page_post.feature_image %} - - {% endif %} - - {{ page_post.title | truncate(160, True, '...') }} - - {% endcall %} - {% call links.desktop_nav() %} - - - All carts - - {% endcall %} - {% endcall %} -{% endmacro %} diff --git a/cart/templates/_types/cart/page/index.html b/cart/templates/_types/cart/page/index.html deleted file mode 100644 index 4fa9814..0000000 --- a/cart/templates/_types/cart/page/index.html +++ /dev/null @@ -1,24 +0,0 @@ -{% extends '_types/root/_index.html' %} - -{% block root_header_child %} - {% from '_types/root/_n/macros.html' import index_row with context %} - {% call index_row('cart-header-child', '_types/cart/header/_header.html') %} - {% block cart_header_child %} - {% from '_types/cart/page/header/_header.html' import page_header_row with context %} - {{ page_header_row() }} - {% endblock %} - {% endcall %} -{% endblock %} - - -{% block _main_mobile_menu %} -{% include '_types/cart/_nav.html' %} -{% endblock %} - - -{% block aside %} -{% endblock %} - -{% block content %} - {% include '_types/cart/page/_main_panel.html' %} -{% endblock %} diff --git a/cart/templates/_types/order/_calendar_items.html b/cart/templates/_types/order/_calendar_items.html deleted file mode 100644 index 019f048..0000000 --- a/cart/templates/_types/order/_calendar_items.html +++ /dev/null @@ -1,43 +0,0 @@ -{# --- NEW: calendar bookings in this order --- #} - {% if order and calendar_entries %} -
    -

    - Calendar bookings in this order -

    - - -
    - {% endif %} \ No newline at end of file diff --git a/cart/templates/_types/order/_items.html b/cart/templates/_types/order/_items.html deleted file mode 100644 index 92d674d..0000000 --- a/cart/templates/_types/order/_items.html +++ /dev/null @@ -1,51 +0,0 @@ -{# Items list #} -{% if order and order.items %} -
    -

    - Items -

    - -
    -{% endif %} \ No newline at end of file diff --git a/cart/templates/_types/order/_main_panel.html b/cart/templates/_types/order/_main_panel.html deleted file mode 100644 index 679b846..0000000 --- a/cart/templates/_types/order/_main_panel.html +++ /dev/null @@ -1,7 +0,0 @@ -
    - {# Order summary card #} - {% include '_types/order/_summary.html' %} - {% include '_types/order/_items.html' %} - {% include '_types/order/_calendar_items.html' %} - -
    \ No newline at end of file diff --git a/cart/templates/_types/order/_nav.html b/cart/templates/_types/order/_nav.html deleted file mode 100644 index f5c504d..0000000 --- a/cart/templates/_types/order/_nav.html +++ /dev/null @@ -1,2 +0,0 @@ -{% from 'macros/admin_nav.html' import placeholder_nav %} -{{ placeholder_nav() }} diff --git a/cart/templates/_types/order/_oob_elements.html b/cart/templates/_types/order/_oob_elements.html deleted file mode 100644 index 31d1e17..0000000 --- a/cart/templates/_types/order/_oob_elements.html +++ /dev/null @@ -1,30 +0,0 @@ -{% extends 'oob_elements.html' %} - -{# OOB elements for HTMX navigation - all elements that need updating #} - -{# Import shared OOB macros #} -{% from '_types/root/header/_oob.html' import root_header_start, root_header_end with context %} -{% from '_types/root/_oob_menu.html' import mobile_menu with context %} - -{# Header with app title - includes cart-mini, navigation, and market-specific header #} - -{% block oobs %} - - {% from '_types/root/_n/macros.html' import oob_header with context %} - {{oob_header('orders-header-child', 'order-header-child', '_types/order/header/_header.html')}} - - {% from '_types/order/header/_header.html' import header_row with context %} - {{ header_row(oob=True) }} -{% endblock %} - - -{% block mobile_menu %} - {% include '_types/order/_nav.html' %} -{% endblock %} - - -{% block content %} - {% include "_types/order/_main_panel.html" %} -{% endblock %} - - diff --git a/cart/templates/_types/order/_summary.html b/cart/templates/_types/order/_summary.html deleted file mode 100644 index ffe560b..0000000 --- a/cart/templates/_types/order/_summary.html +++ /dev/null @@ -1,52 +0,0 @@ -
    -

    - Order ID: - #{{ order.id }} -

    - -

    - Created: - {% if order.created_at %} - {{ order.created_at.strftime('%-d %b %Y, %H:%M') }} - {% else %} - — - {% endif %} -

    - -

    - Description: - {{ order.description or '–' }} -

    - -

    - Status: - - {{ order.status or 'pending' }} - -

    - -

    - Currency: - {{ order.currency or 'GBP' }} -

    - -

    - Total: - {% if order.total_amount %} - {{ order.currency or 'GBP' }} {{ '%.2f'|format(order.total_amount) }} - {% else %} - – - {% endif %} -

    - -
    - - \ No newline at end of file diff --git a/cart/templates/_types/order/_ticket_items.html b/cart/templates/_types/order/_ticket_items.html deleted file mode 100644 index ef06c0b..0000000 --- a/cart/templates/_types/order/_ticket_items.html +++ /dev/null @@ -1,49 +0,0 @@ -{# --- Tickets in this order --- #} - {% if order and order_tickets %} -
    -

    - Event tickets in this order -

    - - -
    - {% endif %} \ No newline at end of file diff --git a/cart/templates/_types/order/header/_header.html b/cart/templates/_types/order/header/_header.html deleted file mode 100644 index 4d7f74b..0000000 --- a/cart/templates/_types/order/header/_header.html +++ /dev/null @@ -1,17 +0,0 @@ -{% import 'macros/links.html' as links %} -{% macro header_row(oob=False) %} - {% call links.menu_row(id='order-row', oob=oob) %} - {% call links.link(url_for('orders.order.order_detail', order_id=order.id), hx_select_search ) %} - -
    - Order -
    -
    - {{ order.id }} -
    - {% endcall %} - {% call links.desktop_nav() %} - {% include '_types/order/_nav.html' %} - {% endcall %} - {% endcall %} -{% endmacro %} \ No newline at end of file diff --git a/cart/templates/_types/order/index.html b/cart/templates/_types/order/index.html deleted file mode 100644 index c3d301e..0000000 --- a/cart/templates/_types/order/index.html +++ /dev/null @@ -1,68 +0,0 @@ -{% extends '_types/orders/index.html' %} - - -{% block orders_header_child %} - {% from '_types/root/_n/macros.html' import index_row with context %} - {% call index_row('order-header-child', '_types/order/header/_header.html') %} - {% block order_header_child %} - {% endblock %} - {% endcall %} -{% endblock %} - -{% block _main_mobile_menu %} - {% include '_types/order/_nav.html' %} -{% endblock %} - - - -{% block filter %} -
    -
    -

    - Placed {% if order.created_at %}{{ order.created_at.strftime('%-d %b %Y, %H:%M') }}{% else %}—{% endif %} · Status: {{ order.status or 'pending' }} -

    -
    -
    - - - All orders - - - {# Re-check status button #} -
    - - -
    - - {% if order.status != 'paid' %} - - - Open payment page - - {% endif %} -
    -
    -{% endblock %} - -{% block content %} - {% include '_types/order/_main_panel.html' %} -{% endblock %} - -{% block aside %} -{% endblock %} diff --git a/cart/templates/_types/orders/_main_panel.html b/cart/templates/_types/orders/_main_panel.html deleted file mode 100644 index 01ad410..0000000 --- a/cart/templates/_types/orders/_main_panel.html +++ /dev/null @@ -1,26 +0,0 @@ -
    - {% if not orders %} -
    - No orders yet. -
    - {% else %} -
    - - - - - - - - - - - - - {# rows + infinite-scroll sentinel #} - {% include "_types/orders/_rows.html" %} - -
    OrderCreatedDescriptionTotalStatus
    -
    - {% endif %} -
    diff --git a/cart/templates/_types/orders/_nav.html b/cart/templates/_types/orders/_nav.html deleted file mode 100644 index f5c504d..0000000 --- a/cart/templates/_types/orders/_nav.html +++ /dev/null @@ -1,2 +0,0 @@ -{% from 'macros/admin_nav.html' import placeholder_nav %} -{{ placeholder_nav() }} diff --git a/cart/templates/_types/orders/_oob_elements.html b/cart/templates/_types/orders/_oob_elements.html deleted file mode 100644 index 741e8fa..0000000 --- a/cart/templates/_types/orders/_oob_elements.html +++ /dev/null @@ -1,38 +0,0 @@ -{% extends 'oob_elements.html' %} - -{# OOB elements for HTMX navigation - all elements that need updating #} - -{# Import shared OOB macros #} -{% from '_types/root/header/_oob.html' import root_header_start, root_header_end with context %} -{% from '_types/root/_oob_menu.html' import mobile_menu with context %} - -{# Header with app title - includes cart-mini, navigation, and market-specific header #} - -{% block oobs %} - - {% from '_types/root/_n/macros.html' import oob_header with context %} - {{oob_header('auth-header-child', 'orders-header-child', '_types/orders/header/_header.html')}} - - {% from '_types/auth/header/_header.html' import header_row with context %} - {{ header_row(oob=True) }} -{% endblock %} - -{% block aside %} - {% from 'macros/search.html' import search_desktop %} - {{ search_desktop(current_local_href, search, search_count, hx_select) }} -{% endblock %} - -{% block filter %} -{% include '_types/orders/_summary.html' %} -{% endblock %} - -{% block mobile_menu %} - {% include '_types/orders/_nav.html' %} -{% endblock %} - - -{% block content %} - {% include "_types/orders/_main_panel.html" %} -{% endblock %} - - diff --git a/cart/templates/_types/orders/_rows.html b/cart/templates/_types/orders/_rows.html deleted file mode 100644 index e2d671e..0000000 --- a/cart/templates/_types/orders/_rows.html +++ /dev/null @@ -1,131 +0,0 @@ -{# suma_browser/templates/_types/order/_orders_rows.html #} - -{# --- existing rows, but split into desktop/tablet vs mobile --- #} -{% for order in orders %} - {# Desktop / tablet table row #} - - - #{{ order.id }} - - - {% if order.created_at %} - {{ order.created_at.strftime('%-d %b %Y, %H:%M') }} - {% else %} - — - {% endif %} - - - {{ order.description or '' }} - - - - {{ order.currency or 'GBP' }} - {{ '%.2f'|format(order.total_amount or 0) }} - - - {# status pill, roughly matching existing styling #} - - {{ order.status or 'pending' }} - - - - - View - - - - - {# Mobile card row #} - - -
    -
    - - #{{ order.id }} - - - - {{ order.status or 'pending' }} - -
    - -
    - {{ order.created_at or '' }} -
    - -
    -
    - {{ order.currency or 'GBP' }} - {{ '%.2f'|format(order.total_amount or 0) }} -
    - - - View - -
    -
    - - -{% endfor %} - -{# --- sentinel / end-of-results --- #} -{% if page < total_pages|int %} - - - {# Mobile sentinel content #} -
    - {% include "sentinel/mobile_content.html" %} -
    - - {# Desktop sentinel content #} - - - -{% else %} - - - End of results - - -{% endif %} diff --git a/cart/templates/_types/orders/_summary.html b/cart/templates/_types/orders/_summary.html deleted file mode 100644 index f812413..0000000 --- a/cart/templates/_types/orders/_summary.html +++ /dev/null @@ -1,11 +0,0 @@ -
    -
    -

    - Recent orders placed via the checkout. -

    -
    -
    - {% from 'macros/search.html' import search_mobile %} - {{ search_mobile(current_local_href, search, search_count, hx_select) }} -
    -
    \ No newline at end of file diff --git a/cart/templates/_types/orders/header/_header.html b/cart/templates/_types/orders/header/_header.html deleted file mode 100644 index 32c1659..0000000 --- a/cart/templates/_types/orders/header/_header.html +++ /dev/null @@ -1,14 +0,0 @@ -{% import 'macros/links.html' as links %} -{% macro header_row(oob=False) %} - {% call links.menu_row(id='orders-row', oob=oob) %} - {% call links.link(url_for('orders.list_orders'), hx_select_search, ) %} - -
    - Orders -
    - {% endcall %} - {% call links.desktop_nav() %} - {% include '_types/orders/_nav.html' %} - {% endcall %} - {% endcall %} -{% endmacro %} \ No newline at end of file diff --git a/cart/templates/_types/orders/index.html b/cart/templates/_types/orders/index.html deleted file mode 100644 index 7ee80a0..0000000 --- a/cart/templates/_types/orders/index.html +++ /dev/null @@ -1,29 +0,0 @@ -{% extends '_types/auth/index.html' %} - - -{% block auth_header_child %} - {% from '_types/root/_n/macros.html' import index_row with context %} - {% call index_row('orders-header-child', '_types/orders/header/_header.html') %} - {% block orders_header_child %} - {% endblock %} - {% endcall %} - -{% endblock %} - -{% block _main_mobile_menu %} - {% include '_types/orders/_nav.html' %} -{% endblock %} - -{% block aside %} - {% from 'macros/search.html' import search_desktop %} - {{ search_desktop(current_local_href, search, search_count, hx_select) }} -{% endblock %} - - -{% block filter %} - {% include '_types/orders/_summary.html' %} -{% endblock %} - -{% block content %} -{% include '_types/orders/_main_panel.html' %} -{% endblock %} diff --git a/cart/templates/_types/product/_cart.html b/cart/templates/_types/product/_cart.html deleted file mode 100644 index 55ed735..0000000 --- a/cart/templates/_types/product/_cart.html +++ /dev/null @@ -1,249 +0,0 @@ -{% macro add(slug, cart, oob='false') %} -{% set quantity = cart - | selectattr('product.slug', 'equalto', slug) - | sum(attribute='quantity') %} - -
    - - {% if not quantity %} -
    - - - - -
    - - {% else %} -
    - -
    - - - -
    - - - - - - - - - {{ quantity }} - - - - - - -
    - - - -
    -
    - {% endif %} -
    -{% endmacro %} - - - -{% macro cart_item(oob=False) %} - -{% set p = item.product %} -{% set unit_price = p.special_price or p.regular_price %} -
    -
    - {% if p.image %} - {{ p.title }} - {% else %} -
    - No image -
    - {% endif %} -
    - - {# Details #} -
    -
    -
    -

    - {% set href=market_product_url(p.slug) %} - - {{ p.title }} - -

    - - {% if p.brand %} -

    - {{ p.brand }} -

    - {% endif %} - - {% if item.is_deleted %} -

    - - This item is no longer available or price has changed -

    - {% endif %} -
    - - {# Unit price #} -
    - {% if unit_price %} - {% set symbol = "£" if p.regular_price_currency == "GBP" else p.regular_price_currency %} -

    - {{ symbol }}{{ "%.2f"|format(unit_price) }} -

    - {% if p.special_price and p.special_price != p.regular_price %} -

    - {{ symbol }}{{ "%.2f"|format(p.regular_price) }} -

    - {% endif %} - {% else %} -

    No price

    - {% endif %} -
    -
    - -
    -
    - Quantity - {% set qty_url = url_for('cart_global.update_quantity', product_id=p.id) %} -
    - - - -
    - - {{ item.quantity }} - -
    - - - -
    -
    - -
    - {% if unit_price %} - {% set line_total = unit_price * item.quantity %} - {% set symbol = "£" if p.regular_price_currency == "GBP" else p.regular_price_currency %} -

    - Line total: - {{ symbol }}{{ "%.2f"|format(line_total) }} -

    - {% endif %} -
    -
    -
    -
    - -{% endmacro %} diff --git a/events/templates/_types/all_events/_card.html b/events/templates/_types/all_events/_card.html deleted file mode 100644 index 7f6846a..0000000 --- a/events/templates/_types/all_events/_card.html +++ /dev/null @@ -1,62 +0,0 @@ -{# List card for all events — one entry #} -{% set pi = page_info.get(entry.calendar_container_id, {}) %} -{% set page_slug = pi.get('slug', '') %} -{% set page_title = pi.get('title') %} -
    -
    - {# Left: event info #} -
    - {% if page_slug %} - {% set day_href = events_url('/' ~ page_slug ~ '/' ~ entry.calendar_slug ~ '/day/' ~ entry.start_at.strftime('%Y/%-m/%-d') ~ '/') %} - {% else %} - {% set day_href = '' %} - {% endif %} - {% set entry_href = day_href ~ 'entries/' ~ entry.id ~ '/' if day_href else '' %} - {% if entry_href %} - -

    {{ entry.name }}

    -
    - {% else %} -

    {{ entry.name }}

    - {% endif %} - -
    - {% if page_title %} - - {{ page_title }} - - {% endif %} - {% if entry.calendar_name %} - - {{ entry.calendar_name }} - - {% endif %} -
    - -
    - {% if day_href %} - {{ entry.start_at.strftime('%a %-d %b') }} · - {% else %} - {{ entry.start_at.strftime('%a %-d %b') }} · - {% endif %} - {{ entry.start_at.strftime('%H:%M') }}{% if entry.end_at %} – {{ entry.end_at.strftime('%H:%M') }}{% endif %} -
    - - {% if entry.cost %} -
    - £{{ '%.2f'|format(entry.cost) }} -
    - {% endif %} -
    - - {# Right: ticket widget #} - {% if entry.ticket_price is not none %} -
    - {% set qty = pending_tickets.get(entry.id, 0) %} - {% set ticket_url = url_for('all_events.adjust_ticket') %} - {% include '_types/page_summary/_ticket_widget.html' %} -
    - {% endif %} -
    -
    diff --git a/events/templates/_types/all_events/_card_tile.html b/events/templates/_types/all_events/_card_tile.html deleted file mode 100644 index 84a628f..0000000 --- a/events/templates/_types/all_events/_card_tile.html +++ /dev/null @@ -1,60 +0,0 @@ -{# Tile card for all events — compact event tile #} -{% set pi = page_info.get(entry.calendar_container_id, {}) %} -{% set page_slug = pi.get('slug', '') %} -{% set page_title = pi.get('title') %} -
    - {% if page_slug %} - {% set day_href = events_url('/' ~ page_slug ~ '/' ~ entry.calendar_slug ~ '/day/' ~ entry.start_at.strftime('%Y/%-m/%-d') ~ '/') %} - {% else %} - {% set day_href = '' %} - {% endif %} - {% set entry_href = day_href ~ 'entries/' ~ entry.id ~ '/' if day_href else '' %} -
    - {% if entry_href %} - -

    {{ entry.name }}

    -
    - {% else %} -

    {{ entry.name }}

    - {% endif %} - -
    - {% if page_title %} - - {{ page_title }} - - {% endif %} - {% if entry.calendar_name %} - - {{ entry.calendar_name }} - - {% endif %} -
    - -
    - {% if day_href %} - {{ entry.start_at.strftime('%a %-d %b') }} - {% else %} - {{ entry.start_at.strftime('%a %-d %b') }} - {% endif %} - · - {{ entry.start_at.strftime('%H:%M') }}{% if entry.end_at %} – {{ entry.end_at.strftime('%H:%M') }}{% endif %} -
    - - {% if entry.cost %} -
    - £{{ '%.2f'|format(entry.cost) }} -
    - {% endif %} -
    - - {# Ticket widget below card #} - {% if entry.ticket_price is not none %} -
    - {% set qty = pending_tickets.get(entry.id, 0) %} - {% set ticket_url = url_for('all_events.adjust_ticket') %} - {% include '_types/page_summary/_ticket_widget.html' %} -
    - {% endif %} -
    diff --git a/events/templates/_types/all_events/_cards.html b/events/templates/_types/all_events/_cards.html deleted file mode 100644 index afa569f..0000000 --- a/events/templates/_types/all_events/_cards.html +++ /dev/null @@ -1,31 +0,0 @@ -{% for entry in entries %} - {% if view == 'tile' %} - {% include "_types/all_events/_card_tile.html" %} - {% else %} - {# Date header when date changes (list view only) #} - {% set entry_date = entry.start_at.strftime('%A %-d %B %Y') %} - {% if loop.first or entry_date != entries[loop.index0 - 1].start_at.strftime('%A %-d %B %Y') %} -
    -

    - {{ entry_date }} -

    -
    - {% endif %} - {% include "_types/all_events/_card.html" %} - {% endif %} -{% endfor %} -{% if has_more %} - {# Infinite scroll sentinel #} - {% set entries_url = url_for('all_events.entries_fragment', page=page + 1, view=view if view != 'list' else '')|host %} - -{% endif %} diff --git a/events/templates/_types/all_events/_main_panel.html b/events/templates/_types/all_events/_main_panel.html deleted file mode 100644 index e7aa690..0000000 --- a/events/templates/_types/all_events/_main_panel.html +++ /dev/null @@ -1,54 +0,0 @@ -{# View toggle bar - desktop only #} - - -{# Cards container - list or grid based on view #} -{% if entries %} - {% if view == 'tile' %} -
    - {% include "_types/all_events/_cards.html" %} -
    - {% else %} -
    - {% include "_types/all_events/_cards.html" %} -
    - {% endif %} -{% else %} -
    - -

    No upcoming events

    -
    -{% endif %} -
    diff --git a/events/templates/_types/all_events/index.html b/events/templates/_types/all_events/index.html deleted file mode 100644 index 00a9696..0000000 --- a/events/templates/_types/all_events/index.html +++ /dev/null @@ -1,7 +0,0 @@ -{% extends '_types/root/_index.html' %} - -{% block meta %}{% endblock %} - -{% block content %} - {% include '_types/all_events/_main_panel.html' %} -{% endblock %} diff --git a/events/templates/_types/calendar/_description.html b/events/templates/_types/calendar/_description.html deleted file mode 100644 index f4b15b6..0000000 --- a/events/templates/_types/calendar/_description.html +++ /dev/null @@ -1,12 +0,0 @@ -{% macro description(calendar, oob=False) %} -
    - {{ calendar.description or ''}} -
    - -{% endmacro %} \ No newline at end of file diff --git a/events/templates/_types/calendar/_main_panel.html b/events/templates/_types/calendar/_main_panel.html deleted file mode 100644 index 85791a0..0000000 --- a/events/templates/_types/calendar/_main_panel.html +++ /dev/null @@ -1,170 +0,0 @@ -
    -
    - - {# Month / year navigation #} - -
    - - {# Calendar grid #} -
    - {# Weekday header: only show on sm+ (desktop/tablet) #} - - - {# On mobile: 1 column; on sm+: 7 columns #} -
    - {% for week in weeks %} - {% for day in week %} -
    -
    -
    - - {{ day.date.strftime('%a') }} - - - {# Clickable day number: goes to day detail view #} - - {{ day.date.day }} - -
    -
    - {# Entries for this day: merged, chronological #} -
    - {# Build a list of entries for this specific day. - month_entries is already sorted by start_at in Python. #} - {% for e in month_entries %} - {% if e.start_at.date() == day.date %} - {# Decide colour: highlight "mine" differently if you want #} - {% set is_mine = (g.user and e.user_id == g.user.id) - or (not g.user and e.session_id == qsession.get('calendar_sid')) %} -
    - - {{ e.name }} - - - {{ (e.state or 'pending')|replace('_', ' ') }} - -
    - {% endif %} - {% endfor %} - -
    -
    - {% endfor %} - {% endfor %} -
    -
    diff --git a/events/templates/_types/calendar/_nav.html b/events/templates/_types/calendar/_nav.html deleted file mode 100644 index 32077b5..0000000 --- a/events/templates/_types/calendar/_nav.html +++ /dev/null @@ -1,18 +0,0 @@ - -{% import 'macros/links.html' as links %} -{% call links.link( - url_for('calendar.slots.defpage_slots_listing', calendar_slug=calendar.slug), - hx_select_search, - select_colours, - True, - aclass=styles.nav_button -) %} - -
    - Slots -
    -{% endcall %} -{% if g.rights.admin %} - {% from 'macros/admin_nav.html' import admin_nav_item %} - {{ admin_nav_item(url_for('calendar.admin.defpage_calendar_admin', calendar_slug=calendar.slug)) }} -{% endif %} \ No newline at end of file diff --git a/events/templates/_types/calendar/_oob_elements.html b/events/templates/_types/calendar/_oob_elements.html deleted file mode 100644 index 1447e24..0000000 --- a/events/templates/_types/calendar/_oob_elements.html +++ /dev/null @@ -1,22 +0,0 @@ -{% extends "oob_elements.html" %} -{# OOB elements for post admin page #} - - - - -{% block oobs %} - {% from '_types/root/_n/macros.html' import oob_header with context %} - {{oob_header('post-header-child', 'calendar-header-child', '_types/calendar/header/_header.html')}} - - {% from '_types/post/header/_header.html' import header_row with context %} - {{ header_row(oob=True) }} -{% endblock %} - - -{% block mobile_menu %} -{% include '_types/calendar/_nav.html' %} -{% endblock %} - -{% block content %} - {% include '_types/calendar/_main_panel.html' %} -{% endblock %} diff --git a/events/templates/_types/calendar/admin/_description.html b/events/templates/_types/calendar/admin/_description.html deleted file mode 100644 index 6ffcbd5..0000000 --- a/events/templates/_types/calendar/admin/_description.html +++ /dev/null @@ -1,32 +0,0 @@ -
    - {% if calendar.description %} -

    - {{ calendar.description }} -

    - {% else %} -

    - No description yet. -

    - {% endif %} - - -
    - -{% if oob %} - - {% from '_types/calendar/_description.html' import description %} - {{description(calendar, oob=True)}} -{% endif %} - - diff --git a/events/templates/_types/calendar/admin/_description_edit.html b/events/templates/_types/calendar/admin/_description_edit.html deleted file mode 100644 index 29bd574..0000000 --- a/events/templates/_types/calendar/admin/_description_edit.html +++ /dev/null @@ -1,41 +0,0 @@ -
    -
    - - - - -
    - - - -
    -
    -
    diff --git a/events/templates/_types/calendar/admin/_main_panel.html b/events/templates/_types/calendar/admin/_main_panel.html deleted file mode 100644 index 9575ac6..0000000 --- a/events/templates/_types/calendar/admin/_main_panel.html +++ /dev/null @@ -1,45 +0,0 @@ - -
    - -
    -

    Calendar configuration

    -
    -
    - - {% include '_types/calendar/admin/_description.html' %} -
    - - -
    - -
    - -
    diff --git a/events/templates/_types/calendar/admin/_nav.html b/events/templates/_types/calendar/admin/_nav.html deleted file mode 100644 index f5c504d..0000000 --- a/events/templates/_types/calendar/admin/_nav.html +++ /dev/null @@ -1,2 +0,0 @@ -{% from 'macros/admin_nav.html' import placeholder_nav %} -{{ placeholder_nav() }} diff --git a/events/templates/_types/calendar/admin/_oob_elements.html b/events/templates/_types/calendar/admin/_oob_elements.html deleted file mode 100644 index ec6244c..0000000 --- a/events/templates/_types/calendar/admin/_oob_elements.html +++ /dev/null @@ -1,25 +0,0 @@ -{% extends 'oob_elements.html' %} - -{# OOB elements for calendar admin page #} - -{# Import shared OOB macros #} -{% from '_types/root/header/_oob.html' import root_header_start, root_header_end with context %} -{% from '_types/root/_oob_menu.html' import mobile_menu with context %} - - -{% block oobs %} - {% from '_types/root/_n/macros.html' import oob_header with context %} - {{oob_header('calendar-header-child', 'calendar-admin-header-child', '_types/calendar/admin/header/_header.html')}} - - {% from '_types/calendar/header/_header.html' import header_row with context %} - {{header_row(oob=True)}} -{% endblock %} - - -{% block mobile_menu %} - {% include '_types/calendar/admin/_nav.html' %} -{% endblock %} - -{% block content %} - {% include '_types/calendar/admin/_main_panel.html' %} -{% endblock %} diff --git a/events/templates/_types/calendar/admin/header/_header.html b/events/templates/_types/calendar/admin/header/_header.html deleted file mode 100644 index a138229..0000000 --- a/events/templates/_types/calendar/admin/header/_header.html +++ /dev/null @@ -1,13 +0,0 @@ -{% import 'macros/links.html' as links %} -{% macro header_row(oob=False) %} - {% call links.menu_row(id='calendar-admin-row', oob=oob) %} - {% call links.link( - hx_select_search - ) %} - {{ links.admin() }} - {% endcall %} - {% call links.desktop_nav() %} - {% include '_types/calendar/admin/_nav.html' %} - {% endcall %} - {% endcall %} -{% endmacro %} \ No newline at end of file diff --git a/events/templates/_types/calendar/admin/index.html b/events/templates/_types/calendar/admin/index.html deleted file mode 100644 index c27d6d2..0000000 --- a/events/templates/_types/calendar/admin/index.html +++ /dev/null @@ -1,24 +0,0 @@ -{% extends '_types/calendar/index.html' %} -{% import 'macros/layout.html' as layout %} - -{% block calendar_header_child %} - {% from '_types/root/_n/macros.html' import header with context %} - {% call header() %} - {% from '_types/calendar/admin/header/_header.html' import header_row with context %} - {{ header_row() }} -
    - {% block calendar_admin_header_child %} - {% endblock %} -
    - {% endcall %} -{% endblock %} - - - -{% block _main_mobile_menu %} - {% include '_types/calendar/admin/_nav.html' %} -{% endblock %} - -{% block content %} - {% include '_types/calendar/admin/_main_panel.html' %} -{% endblock %} diff --git a/events/templates/_types/calendar/header/_header.html b/events/templates/_types/calendar/header/_header.html deleted file mode 100644 index 3bb141b..0000000 --- a/events/templates/_types/calendar/header/_header.html +++ /dev/null @@ -1,23 +0,0 @@ -{% import 'macros/links.html' as links %} -{% macro header_row(oob=False) %} - {% call links.menu_row(id='calendar-row', oob=oob) %} - {% call links.link(url_for('calendar.get', calendar_slug=calendar.slug), hx_select_search) %} -
    -
    - -
    - {{ calendar.name }} -
    -
    - {% from '_types/calendar/_description.html' import description %} - {{description(calendar)}} -
    - {% endcall %} - {% call links.desktop_nav() %} - {% include '_types/calendar/_nav.html' %} - {% endcall %} - {% endcall %} -{% endmacro %} - - - diff --git a/events/templates/_types/calendar/index.html b/events/templates/_types/calendar/index.html deleted file mode 100644 index bdd0b49..0000000 --- a/events/templates/_types/calendar/index.html +++ /dev/null @@ -1,26 +0,0 @@ -{% extends '_types/root/_index.html' %} - -{% block meta %}{% endblock %} - -{% block root_header_child %} - {% from '_types/root/_n/macros.html' import index_row with context %} - {% call index_row('post-header-child', '_types/post/header/_header.html') %} - {% call index_row('post-admin-header-child', '_types/post/admin/header/_header.html') %} - {% call index_row('calendar-header-child', '_types/calendar/header/_header.html') %} - {% block calendar_header_child %} - {% endblock %} - {% endcall %} - {% endcall %} - {% endcall %} -{% endblock %} - - -{% block _main_mobile_menu %} - {% include '_types/calendar/_nav.html' %} -{% endblock %} - - - -{% block content %} - {% include '_types/calendar/_main_panel.html' %} -{% endblock %} diff --git a/events/templates/_types/calendars/_calendars_list.html b/events/templates/_types/calendars/_calendars_list.html deleted file mode 100644 index 0db4859..0000000 --- a/events/templates/_types/calendars/_calendars_list.html +++ /dev/null @@ -1,44 +0,0 @@ - {% for row in calendars %} - {% set cal = row %} -
    -
    - - {% set calendar_href = url_for('calendar.get', calendar_slug=cal.slug)|host %} - -

    {{ cal.name }}

    -

    /{{ cal.slug }}/

    -
    - - - - -
    -
    - {% else %} -

    No calendars yet. Create one above.

    - {% endfor %} diff --git a/events/templates/_types/calendars/_main_panel.html b/events/templates/_types/calendars/_main_panel.html deleted file mode 100644 index 6a84aa0..0000000 --- a/events/templates/_types/calendars/_main_panel.html +++ /dev/null @@ -1,27 +0,0 @@ -
    - {% if has_access('calendars.create_calendar') %} - -
    - -
    - -
    - - -
    - -
    - {% endif %} - -
    - {% include "_types/calendars/_calendars_list.html" %} -
    -
    \ No newline at end of file diff --git a/events/templates/_types/calendars/_nav.html b/events/templates/_types/calendars/_nav.html deleted file mode 100644 index f5c504d..0000000 --- a/events/templates/_types/calendars/_nav.html +++ /dev/null @@ -1,2 +0,0 @@ -{% from 'macros/admin_nav.html' import placeholder_nav %} -{{ placeholder_nav() }} diff --git a/events/templates/_types/calendars/_oob_elements.html b/events/templates/_types/calendars/_oob_elements.html deleted file mode 100644 index 6de3bea..0000000 --- a/events/templates/_types/calendars/_oob_elements.html +++ /dev/null @@ -1,28 +0,0 @@ -{% extends 'oob_elements.html' %} - -{# OOB elements for HTMX navigation - all elements that need updating #} - -{% from '_types/root/_oob_menu.html' import mobile_menu with context %} - -{# Header with app title - includes cart-mini, navigation, and market-specific header #} - -{% block oobs %} - - {% from '_types/root/_n/macros.html' import oob_header with context %} - {{oob_header('post-admin-header-child', 'calendars-header-child', '_types/calendars/header/_header.html')}} - - {% from '_types/post/admin/header/_header.html' import header_row with context %} - {{ header_row(oob=True) }} -{% endblock %} - - -{% block mobile_menu %} - {% include '_types/calendars/_nav.html' %} -{% endblock %} - - -{% block content %} - {% include "_types/calendars/_main_panel.html" %} -{% endblock %} - - diff --git a/events/templates/_types/calendars/header/_header.html b/events/templates/_types/calendars/header/_header.html deleted file mode 100644 index 047e8a3..0000000 --- a/events/templates/_types/calendars/header/_header.html +++ /dev/null @@ -1,14 +0,0 @@ -{% import 'macros/links.html' as links %} -{% macro header_row(oob=False) %} - {% call links.menu_row(id='calendars-row', oob=oob) %} - {% call links.link(url_for('calendars.home'), hx_select_search) %} - -
    - Calendars -
    - {% endcall %} - {% call links.desktop_nav() %} - {% include '_types/calendars/_nav.html' %} - {% endcall %} - {% endcall %} -{% endmacro %} diff --git a/events/templates/_types/calendars/index.html b/events/templates/_types/calendars/index.html deleted file mode 100644 index d958a0c..0000000 --- a/events/templates/_types/calendars/index.html +++ /dev/null @@ -1,26 +0,0 @@ -{% extends '_types/root/_index.html' %} - -{% block meta %}{% endblock %} - -{% block root_header_child %} - {% from '_types/root/_n/macros.html' import index_row with context %} - {% call index_row('post-header-child', '_types/post/header/_header.html') %} - {% call index_row('post-admin-header-child', '_types/post/admin/header/_header.html') %} - {% call index_row('calendars-header-child', '_types/calendars/header/_header.html') %} - {% block calendars_header_child %} - {% endblock %} - {% endcall %} - {% endcall %} - {% endcall %} -{% endblock %} - - -{% block _main_mobile_menu %} - {% include '_types/calendars/_nav.html' %} -{% endblock %} - - - -{% block content %} - {% include '_types/calendars/_main_panel.html' %} -{% endblock %} diff --git a/events/templates/_types/day/_add.html b/events/templates/_types/day/_add.html deleted file mode 100644 index 6caba5a..0000000 --- a/events/templates/_types/day/_add.html +++ /dev/null @@ -1,299 +0,0 @@ -
    - -
    - - - {# 1) Entry name #} - - - {# 2) Slot picker for this weekday (required) #} - {% if day_slots %} - - {% else %} -
    - No slots defined for this day. -
    - {% endif %} - - {# 3) Time entry + cost display #} -
    - {# Time inputs — hidden until a flexible slot is selected #} - - - {# Cost display — shown when a slot is selected #} - - - {# Summary of fixed times — shown for non-flexible slots #} - -
    - - {# Ticket Configuration #} -
    -

    Ticket Configuration (Optional)

    -
    -
    - - -
    -
    - - -
    -
    -
    - -
    - - - -
    -
    - -{# --- Behaviour: lock / unlock times based on slot.flexible --- #} - \ No newline at end of file diff --git a/events/templates/_types/day/_add_button.html b/events/templates/_types/day/_add_button.html deleted file mode 100644 index a045b86..0000000 --- a/events/templates/_types/day/_add_button.html +++ /dev/null @@ -1,16 +0,0 @@ - - diff --git a/events/templates/_types/day/_main_panel.html b/events/templates/_types/day/_main_panel.html deleted file mode 100644 index 0eea6f0..0000000 --- a/events/templates/_types/day/_main_panel.html +++ /dev/null @@ -1,28 +0,0 @@ -
    - - - - - - - - - - - - - {% for entry in day_entries %} - {% include '_types/day/_row.html' %} - {% else %} - - {% endfor %} - - - -
    NameSlot/TimeStateCostTicketsActions
    No entries yet.
    - -
    - {% include '_types/day/_add_button.html' %} -
    - -
    diff --git a/events/templates/_types/day/_nav.html b/events/templates/_types/day/_nav.html deleted file mode 100644 index fc11d49..0000000 --- a/events/templates/_types/day/_nav.html +++ /dev/null @@ -1,39 +0,0 @@ -{% import 'macros/links.html' as links %} - -{# Confirmed Entries - vertical on mobile, horizontal with arrows on desktop #} -
    - {% from 'macros/scrolling_menu.html' import scrolling_menu with context %} - {% call(entry) scrolling_menu('day-entries-container', confirmed_entries) %} - -
    -
    {{ entry.name }}
    -
    - {{ entry.start_at.strftime('%H:%M') }} - {% if entry.end_at %} – {{ entry.end_at.strftime('%H:%M') }}{% endif %} -
    -
    -
    - {% endcall %} -
    - -{# Admin link #} -{% if g.rights.admin %} - {% from 'macros/admin_nav.html' import admin_nav_item %} - {{admin_nav_item( - url_for( - 'calendar.day.admin.admin', - calendar_slug=calendar.slug, - year=day_date.year, - month=day_date.month, - day=day_date.day - ) - )}} -{% endif %} \ No newline at end of file diff --git a/events/templates/_types/day/_oob_elements.html b/events/templates/_types/day/_oob_elements.html deleted file mode 100644 index 812e6b0..0000000 --- a/events/templates/_types/day/_oob_elements.html +++ /dev/null @@ -1,18 +0,0 @@ -{% extends "oob_elements.html" %} - -{% block oobs %} - {% from '_types/root/_n/macros.html' import oob_header with context %} - {{oob_header('calendar-header-child', 'day-header-child', '_types/day/header/_header.html')}} - - {% from '_types/calendar/header/_header.html' import header_row with context %} - {{ header_row(oob=True) }} -{% endblock %} - - -{% block mobile_menu %} - {% include '_types/day/_nav.html' %} -{% endblock %} - -{% block content %} - {% include '_types/day/_main_panel.html' %} -{% endblock %} diff --git a/events/templates/_types/day/_row.html b/events/templates/_types/day/_row.html deleted file mode 100644 index 0a4326a..0000000 --- a/events/templates/_types/day/_row.html +++ /dev/null @@ -1,74 +0,0 @@ -{% import 'macros/links.html' as links %} - - -
    - {% call links.link( - url_for( - 'calendar.day.calendar_entries.calendar_entry.get', - calendar_slug=calendar.slug, - day=day, - month=month, - year=year, - entry_id=entry.id - ), - hx_select_search, - aclass=styles.pill - ) %} - {{ entry.name }} - {% endcall %} -
    - - - {% if entry.slot %} -
    - {% call links.link( - url_for( - 'calendar.slots.slot.defpage_slot_detail', - calendar_slug=calendar.slug, - slot_id=entry.slot.id - ), - hx_select_search, - aclass=styles.pill - ) %} - {{ entry.slot.name }} - {% endcall %} - - ({{ entry.slot.time_start.strftime('%H:%M') }}{% if entry.slot.time_end %} → {{ entry.slot.time_end.strftime('%H:%M') }}{% endif %}) - -
    - {% else %} -
    - {% include '_types/entry/_times.html' %} -
    - {% endif %} - - -
    - {% include '_types/entry/_state.html' %} -
    - - - - £{{ ('%.2f'|format(entry.cost)) if entry.cost is not none else '0.00' }} - - - - {% if entry.ticket_price is not none %} -
    -
    £{{ ('%.2f'|format(entry.ticket_price)) }}
    -
    - {% if entry.ticket_count is not none %} - {{ entry.ticket_count }} tickets - {% else %} - Unlimited - {% endif %} -
    -
    - {% else %} - No tickets - {% endif %} - - - {% include '_types/entry/_options.html' %} - - \ No newline at end of file diff --git a/events/templates/_types/day/admin/_main_panel.html b/events/templates/_types/day/admin/_main_panel.html deleted file mode 100644 index f5c504d..0000000 --- a/events/templates/_types/day/admin/_main_panel.html +++ /dev/null @@ -1,2 +0,0 @@ -{% from 'macros/admin_nav.html' import placeholder_nav %} -{{ placeholder_nav() }} diff --git a/events/templates/_types/day/admin/_nav.html b/events/templates/_types/day/admin/_nav.html deleted file mode 100644 index f5c504d..0000000 --- a/events/templates/_types/day/admin/_nav.html +++ /dev/null @@ -1,2 +0,0 @@ -{% from 'macros/admin_nav.html' import placeholder_nav %} -{{ placeholder_nav() }} diff --git a/events/templates/_types/day/admin/_nav_entries_oob.html b/events/templates/_types/day/admin/_nav_entries_oob.html deleted file mode 100644 index 4fb9baf..0000000 --- a/events/templates/_types/day/admin/_nav_entries_oob.html +++ /dev/null @@ -1,33 +0,0 @@ -{# OOB swap for day confirmed entries nav when entries are edited #} -{% import 'macros/links.html' as links %} - -{# Confirmed Entries - vertical on mobile, horizontal with arrows on desktop #} -{% if confirmed_entries %} -
    - {% from 'macros/scrolling_menu.html' import scrolling_menu with context %} - {% call(entry) scrolling_menu('day-entries-container', confirmed_entries) %} - -
    -
    {{ entry.name }}
    -
    - {{ entry.start_at.strftime('%H:%M') }} - {% if entry.end_at %} – {{ entry.end_at.strftime('%H:%M') }}{% endif %} -
    -
    -
    - {% endcall %} -
    -{% else %} - {# Empty placeholder to remove nav entries when none are confirmed #} -
    -{% endif %} diff --git a/events/templates/_types/day/admin/_oob_elements.html b/events/templates/_types/day/admin/_oob_elements.html deleted file mode 100644 index 20986bf..0000000 --- a/events/templates/_types/day/admin/_oob_elements.html +++ /dev/null @@ -1,25 +0,0 @@ -{% extends 'oob_elements.html' %} - -{# OOB elements for calendar admin page #} - -{# Import shared OOB macros #} -{% from '_types/root/header/_oob.html' import root_header_start, root_header_end with context %} -{% from '_types/root/_oob_menu.html' import mobile_menu with context %} - - -{% block oobs %} - {% from '_types/root/_n/macros.html' import oob_header with context %} - {{oob_header('day-header-child', 'day-admin-header-child', '_types/day/admin/header/_header.html')}} - - {% from '_types/calendar/header/_header.html' import header_row with context %} - {{header_row(oob=True)}} -{% endblock %} - - -{% block mobile_menu %} - {% include '_types/day/admin/_nav.html' %} -{% endblock %} - -{% block content %} - {% include '_types/day/admin/_main_panel.html' %} -{% endblock %} diff --git a/events/templates/_types/day/admin/header/_header.html b/events/templates/_types/day/admin/header/_header.html deleted file mode 100644 index 0a4f3bb..0000000 --- a/events/templates/_types/day/admin/header/_header.html +++ /dev/null @@ -1,20 +0,0 @@ -{% import 'macros/links.html' as links %} -{% macro header_row(oob=False) %} - {% call links.menu_row(id='day-admin-row', oob=oob) %} - {% call links.link( - url_for( - 'calendar.day.admin.admin', - calendar_slug=calendar.slug, - year=day_date.year, - month=day_date.month, - day=day_date.day - ), - hx_select_search - ) %} - {{ links.admin() }} - {% endcall %} - {% call links.desktop_nav() %} - {% include '_types/day/admin/_nav.html' %} - {% endcall %} - {% endcall %} -{% endmacro %} \ No newline at end of file diff --git a/events/templates/_types/day/admin/index.html b/events/templates/_types/day/admin/index.html deleted file mode 100644 index f4f37b5..0000000 --- a/events/templates/_types/day/admin/index.html +++ /dev/null @@ -1,24 +0,0 @@ -{% extends '_types/day/index.html' %} -{% import 'macros/layout.html' as layout %} -{% import 'macros/links.html' as links %} - - -{% block day_header_child %} - {% from '_types/root/_n/macros.html' import header with context %} - {% call header() %} - {% from '_types/day/admin/header/_header.html' import header_row with context %} - {{ header_row() }} -
    - {% block day_admin_header_child %} - {% endblock %} -
    - {% endcall %} -{% endblock %} - -{% block _main_mobile_menu %} - {% include '_types/day/admin/_nav.html' %} -{% endblock %} - -{% block content %} - {% include '_types/day/admin/_main_panel.html' %} -{% endblock %} diff --git a/events/templates/_types/day/header/_header.html b/events/templates/_types/day/header/_header.html deleted file mode 100644 index 2f2e999..0000000 --- a/events/templates/_types/day/header/_header.html +++ /dev/null @@ -1,26 +0,0 @@ -{% import 'macros/links.html' as links %} -{% macro header_row(oob=False) %} - {% call links.menu_row(id='day-row', oob=oob) %} - {% call links.link( - url_for( - 'calendar.day.show_day', - calendar_slug=calendar.slug, - year=day_date.year, - month=day_date.month, - day=day_date.day - ), - hx_select_search, - ) %} -
    - - {{ day_date.strftime('%A %d %B %Y') }} -
    - {% endcall %} - {% call links.desktop_nav() %} - {% include '_types/day/_nav.html' %} - {% endcall %} - {% endcall %} -{% endmacro %} - - - diff --git a/events/templates/_types/day/index.html b/events/templates/_types/day/index.html deleted file mode 100644 index 655ee55..0000000 --- a/events/templates/_types/day/index.html +++ /dev/null @@ -1,18 +0,0 @@ -{% extends '_types/calendar/index.html' %} - -{% block calendar_header_child %} - {% from '_types/root/_n/macros.html' import index_row with context %} - {% call index_row('day-header-child', '_types/day/header/_header.html') %} - {% block day_header_child %} - {% endblock %} - {% endcall %} -{% endblock %} - -{% block _main_mobile_menu %} - {% include '_types/day/_nav.html' %} -{% endblock %} - - -{% block content %} - {% include '_types/day/_main_panel.html' %} -{% endblock %} diff --git a/events/templates/_types/entry/_edit.html b/events/templates/_types/entry/_edit.html deleted file mode 100644 index 1a6ff8c..0000000 --- a/events/templates/_types/entry/_edit.html +++ /dev/null @@ -1,332 +0,0 @@ -
    - - -
    - -
    - - - - -
    - - -
    - - -
    - - {% if day_slots %} - - {% else %} -
    - No slots defined for this day. -
    - {% endif %} -
    - - - - - - - - - - - -
    -

    Ticket Configuration

    - -
    -
    - - -

    Leave empty if no tickets needed

    -
    - -
    - - -

    Leave empty for unlimited

    -
    -
    -
    - -
    - - - - - - - -
    - -
    -
    - -{# --- Behaviour: lock / unlock times based on slot.flexible --- #} - \ No newline at end of file diff --git a/events/templates/_types/entry/_main_panel.html b/events/templates/_types/entry/_main_panel.html deleted file mode 100644 index 7b7a24d..0000000 --- a/events/templates/_types/entry/_main_panel.html +++ /dev/null @@ -1,128 +0,0 @@ -
    - - -
    -
    - Name -
    -
    - {{ entry.name }} -
    -
    - - -
    -
    - Slot -
    -
    - {% if entry.slot %} - - {{ entry.slot.name }} - - {% if entry.slot.flexible %} - (flexible) - {% else %} - (fixed) - {% endif %} - {% else %} - No slot assigned - {% endif %} -
    -
    - - -
    -
    - Time Period -
    -
    - {{ entry.start_at.strftime('%H:%M') }} - {% if entry.end_at %} - – {{ entry.end_at.strftime('%H:%M') }} - {% else %} - – open-ended - {% endif %} -
    -
    - - -
    -
    - State -
    -
    -
    - {% include '_types/entry/_state.html' %} -
    -
    -
    - - -
    -
    - Cost -
    -
    - - £{{ ('%.2f'|format(entry.cost)) if entry.cost is not none else '0.00' }} - -
    -
    - - -
    -
    - Tickets -
    -
    - {% include '_types/entry/_tickets.html' %} -
    -
    - - - {% include '_types/tickets/_buy_form.html' %} - - -
    -
    - Date -
    -
    - {{ entry.start_at.strftime('%A, %B %d, %Y') }} -
    -
    - - -
    -
    - Associated Posts -
    -
    - {% include '_types/entry/_posts.html' %} -
    -
    - - -
    - {% include '_types/entry/_options.html' %} - - -
    - -
    \ No newline at end of file diff --git a/events/templates/_types/entry/_nav.html b/events/templates/_types/entry/_nav.html deleted file mode 100644 index bfce783..0000000 --- a/events/templates/_types/entry/_nav.html +++ /dev/null @@ -1,39 +0,0 @@ -{% import 'macros/links.html' as links %} - -{# Associated Posts - vertical on mobile, horizontal with arrows on desktop #} -
    - {% from 'macros/scrolling_menu.html' import scrolling_menu with context %} - {% call(entry_post) scrolling_menu('entry-posts-container', entry_posts) %} - - {% if entry_post.feature_image %} - {{ entry_post.title }} - {% else %} -
    - {% endif %} -
    -
    {{ entry_post.title }}
    -
    -
    - {% endcall %} -
    - -{# Admin link #} -{% if g.rights.admin %} - - {% from 'macros/admin_nav.html' import admin_nav_item %} - {{admin_nav_item( - url_for( - 'calendar.day.calendar_entries.calendar_entry.admin.admin', - calendar_slug=calendar.slug, - day=day, - month=month, - year=year, - entry_id=entry.id - ) - )}} -{% endif %} diff --git a/events/templates/_types/entry/_oob_elements.html b/events/templates/_types/entry/_oob_elements.html deleted file mode 100644 index 8981fa1..0000000 --- a/events/templates/_types/entry/_oob_elements.html +++ /dev/null @@ -1,18 +0,0 @@ -{% extends "oob_elements.html" %} - -{% block oobs %} - {% from '_types/root/_n/macros.html' import oob_header with context %} - {{oob_header('day-header-child', 'entry-header-child', '_types/entry/header/_header.html')}} - - {% from '_types/day/header/_header.html' import header_row with context %} - {{ header_row(oob=True) }} -{% endblock %} - - -{% block mobile_menu %} - {% include '_types/entry/_nav.html' %} -{% endblock %} - -{% block content %} - {% include '_types/entry/_main_panel.html' %} -{% endblock %} diff --git a/events/templates/_types/entry/_optioned.html b/events/templates/_types/entry/_optioned.html deleted file mode 100644 index e4ec3c5..0000000 --- a/events/templates/_types/entry/_optioned.html +++ /dev/null @@ -1,9 +0,0 @@ - -{% include '_types/entry/_options.html' %} -
    - {% include '_types/entry/_title.html' %} -
    - -
    - {% include '_types/entry/_state.html' %} -
    \ No newline at end of file diff --git a/events/templates/_types/entry/_options.html b/events/templates/_types/entry/_options.html deleted file mode 100644 index 748760f..0000000 --- a/events/templates/_types/entry/_options.html +++ /dev/null @@ -1,95 +0,0 @@ -
    - {% if entry.state == 'provisional' %} -
    - - -
    -
    - - -
    - {% endif %} - {% if entry.state == 'confirmed' %} -
    - - - -
    - {% endif %} -
    \ No newline at end of file diff --git a/events/templates/_types/entry/_post_search_results.html b/events/templates/_types/entry/_post_search_results.html deleted file mode 100644 index 29b5308..0000000 --- a/events/templates/_types/entry/_post_search_results.html +++ /dev/null @@ -1,72 +0,0 @@ -{% for search_post in search_posts %} -
    - - - -
    -{% endfor %} - -{# Infinite scroll sentinel #} -{% if page < total_pages|int %} - -{% elif search_posts %} -
    - End of results -
    -{% endif %} diff --git a/events/templates/_types/entry/_posts.html b/events/templates/_types/entry/_posts.html deleted file mode 100644 index 92d5f33..0000000 --- a/events/templates/_types/entry/_posts.html +++ /dev/null @@ -1,72 +0,0 @@ - -
    - {% if entry_posts %} -
    - {% for entry_post in entry_posts %} -
    - {% if entry_post.feature_image %} - {{ entry_post.title }} - {% else %} -
    - {% endif %} - {{ entry_post.title }} - -
    - {% endfor %} -
    - {% else %} -

    No posts associated

    - {% endif %} - - -
    - - -
    -
    -
    diff --git a/events/templates/_types/entry/_state.html b/events/templates/_types/entry/_state.html deleted file mode 100644 index b67254a..0000000 --- a/events/templates/_types/entry/_state.html +++ /dev/null @@ -1,15 +0,0 @@ -{% if entry.state %} - - {{ entry.state|capitalize }} - - {% endif %} \ No newline at end of file diff --git a/events/templates/_types/entry/_tickets.html b/events/templates/_types/entry/_tickets.html deleted file mode 100644 index c05f8f0..0000000 --- a/events/templates/_types/entry/_tickets.html +++ /dev/null @@ -1,104 +0,0 @@ -{% if entry.ticket_price is not none %} - {# Tickets are configured #} -
    -
    - Price: - - £{{ ('%.2f'|format(entry.ticket_price)) }} - -
    -
    - Available: - - {% if entry.ticket_count is not none %} - {{ entry.ticket_count }} tickets - {% else %} - Unlimited - {% endif %} - -
    - -
    -{% else %} - {# No tickets configured #} -
    - No tickets configured - -
    -{% endif %} - -{# Ticket configuration form (hidden by default) #} -
    - -
    - - -
    - -
    - - -
    - -
    - - -
    -
    diff --git a/events/templates/_types/entry/_times.html b/events/templates/_types/entry/_times.html deleted file mode 100644 index 3543fe4..0000000 --- a/events/templates/_types/entry/_times.html +++ /dev/null @@ -1,5 +0,0 @@ -{% from 'macros/date.html' import t %} -
    - {{ t(entry.start_at) }} - {% if entry.end_at %} → {{ t(entry.end_at) }}{% endif %} -
    \ No newline at end of file diff --git a/events/templates/_types/entry/_title.html b/events/templates/_types/entry/_title.html deleted file mode 100644 index 3c1dc63..0000000 --- a/events/templates/_types/entry/_title.html +++ /dev/null @@ -1,3 +0,0 @@ - - {{ entry.name }} - {% include '_types/entry/_state.html' %} diff --git a/events/templates/_types/entry/admin/_main_panel.html b/events/templates/_types/entry/admin/_main_panel.html deleted file mode 100644 index f5c504d..0000000 --- a/events/templates/_types/entry/admin/_main_panel.html +++ /dev/null @@ -1,2 +0,0 @@ -{% from 'macros/admin_nav.html' import placeholder_nav %} -{{ placeholder_nav() }} diff --git a/events/templates/_types/entry/admin/_nav.html b/events/templates/_types/entry/admin/_nav.html deleted file mode 100644 index 54191d6..0000000 --- a/events/templates/_types/entry/admin/_nav.html +++ /dev/null @@ -1,17 +0,0 @@ -{% import 'macros/links.html' as links %} -{% call links.link( - url_for( - 'calendar.day.calendar_entries.calendar_entry.ticket_types.get', - calendar_slug=calendar.slug, - entry_id=entry.id, - year=year, - month=month, - day=day - ), - hx_select_search, - select_colours, - True, - aclass=styles.nav_button, -)%} - ticket_types -{% endcall %} diff --git a/events/templates/_types/entry/admin/_nav_posts_oob.html b/events/templates/_types/entry/admin/_nav_posts_oob.html deleted file mode 100644 index 00a27a0..0000000 --- a/events/templates/_types/entry/admin/_nav_posts_oob.html +++ /dev/null @@ -1,31 +0,0 @@ -{# OOB swap for entry posts nav when posts are associated/disassociated #} -{% import 'macros/links.html' as links %} - -{# Associated Posts - vertical on mobile, horizontal with arrows on desktop #} -{% if entry_posts %} -
    - {% from 'macros/scrolling_menu.html' import scrolling_menu with context %} - {% call(entry_post) scrolling_menu('entry-posts-container', entry_posts) %} - - {% if entry_post.feature_image %} - {{ entry_post.title }} - {% else %} -
    - {% endif %} -
    -
    {{ entry_post.title }}
    -
    -
    - {% endcall %} -
    -{% else %} - {# Empty placeholder to remove nav posts when all are disassociated #} -
    -{% endif %} diff --git a/events/templates/_types/entry/admin/_oob_elements.html b/events/templates/_types/entry/admin/_oob_elements.html deleted file mode 100644 index bcf2255..0000000 --- a/events/templates/_types/entry/admin/_oob_elements.html +++ /dev/null @@ -1,25 +0,0 @@ -{% extends 'oob_elements.html' %} - -{# OOB elements for calendar admin page #} - -{# Import shared OOB macros #} -{% from '_types/root/header/_oob.html' import root_header_start, root_header_end with context %} -{% from '_types/root/_oob_menu.html' import mobile_menu with context %} - - -{% block oobs %} - {% from '_types/root/_n/macros.html' import oob_header with context %} - {{oob_header('entry-header-child', 'entry-admin-header-child', '_types/entry/admin/header/_header.html')}} - - {% from '_types/entry/header/_header.html' import header_row with context %} - {{header_row(oob=True)}} -{% endblock %} - - -{% block mobile_menu %} - {% include '_types/entry/admin/_nav.html' %} -{% endblock %} - -{% block content %} - {% include '_types/entry/admin/_main_panel.html' %} -{% endblock %} diff --git a/events/templates/_types/entry/admin/header/_header.html b/events/templates/_types/entry/admin/header/_header.html deleted file mode 100644 index 9179eaf..0000000 --- a/events/templates/_types/entry/admin/header/_header.html +++ /dev/null @@ -1,21 +0,0 @@ -{% import 'macros/links.html' as links %} -{% macro header_row(oob=False) %} - {% call links.menu_row(id='entry-admin-row', oob=oob) %} - {% call links.link( - url_for( - 'calendar.day.calendar_entries.calendar_entry.admin.admin', - calendar_slug=calendar.slug, - day=day, - month=month, - year=year, - entry_id=entry.id - ), - hx_select_search - ) %} - {{ links.admin() }} - {% endcall %} - {% call links.desktop_nav() %} - {% include '_types/entry/admin/_nav.html' %} - {% endcall %} - {% endcall %} -{% endmacro %} \ No newline at end of file diff --git a/events/templates/_types/entry/admin/index.html b/events/templates/_types/entry/admin/index.html deleted file mode 100644 index caa100c..0000000 --- a/events/templates/_types/entry/admin/index.html +++ /dev/null @@ -1,24 +0,0 @@ -{% extends '_types/entry/index.html' %} -{% import 'macros/layout.html' as layout %} -{% import 'macros/links.html' as links %} - - -{% block entry_header_child %} - {% from '_types/root/_n/macros.html' import header with context %} - {% call header() %} - {% from '_types/entry/admin/header/_header.html' import header_row with context %} - {{ header_row() }} -
    - {% block entry_admin_header_child %} - {% endblock %} -
    - {% endcall %} -{% endblock %} - -{% block _main_mobile_menu %} - {% include '_types/entry/admin/_nav.html' %} -{% endblock %} - -{% block content %} - {% include '_types/entry/admin/_main_panel.html' %} -{% endblock %} diff --git a/events/templates/_types/entry/header/_header.html b/events/templates/_types/entry/header/_header.html deleted file mode 100644 index 863d43c..0000000 --- a/events/templates/_types/entry/header/_header.html +++ /dev/null @@ -1,27 +0,0 @@ -{% import 'macros/links.html' as links %} -{% macro header_row(oob=False) %} - {% call links.menu_row(id='entry-row', oob=oob) %} - {% call links.link( - url_for( - 'calendar.day.calendar_entries.calendar_entry.get', - calendar_slug=calendar.slug, - day=day, - month=month, - year=year, - entry_id=entry.id - ), - hx_select_search, - ) %} -
    - {% include '_types/entry/_title.html' %} - {% include '_types/entry/_times.html' %} -
    - {% endcall %} - {% call links.desktop_nav() %} - {% include '_types/entry/_nav.html' %} - {% endcall %} - {% endcall %} -{% endmacro %} - - - diff --git a/events/templates/_types/entry/index.html b/events/templates/_types/entry/index.html deleted file mode 100644 index a980f46..0000000 --- a/events/templates/_types/entry/index.html +++ /dev/null @@ -1,20 +0,0 @@ -{% extends '_types/day/index.html' %} - -{% block day_header_child %} - {% from '_types/root/_n/macros.html' import index_row with context %} - {% call index_row('entry-header-child', '_types/entry/header/_header.html') %} - {% block entry_header_child %} - {% endblock %} - {% endcall %} -{% endblock %} - - -{% block _main_mobile_menu %} - {% include '_types/entry/_nav.html' %} -{% endblock %} - - - -{% block content %} -{% include '_types/entry/_main_panel.html' %} -{% endblock %} \ No newline at end of file diff --git a/events/templates/_types/markets/_main_panel.html b/events/templates/_types/markets/_main_panel.html deleted file mode 100644 index c376bc7..0000000 --- a/events/templates/_types/markets/_main_panel.html +++ /dev/null @@ -1,25 +0,0 @@ -
    - {% if has_access('markets.create_market') %} -
    - -
    - -
    - - -
    - -
    - {% endif %} -
    - {% include "_types/markets/_markets_list.html" %} -
    -
    diff --git a/events/templates/_types/markets/_markets_list.html b/events/templates/_types/markets/_markets_list.html deleted file mode 100644 index 986190e..0000000 --- a/events/templates/_types/markets/_markets_list.html +++ /dev/null @@ -1,37 +0,0 @@ - {% for m in markets %} -
    -
    - - {% set market_href = market_url('/' + post.slug + '/' + m.slug + '/') %} - -

    {{ m.name }}

    -

    /{{ m.slug }}/

    -
    - - - -
    -
    - {% else %} -

    No markets yet. Create one above.

    - {% endfor %} diff --git a/events/templates/_types/markets/_nav.html b/events/templates/_types/markets/_nav.html deleted file mode 100644 index f5c504d..0000000 --- a/events/templates/_types/markets/_nav.html +++ /dev/null @@ -1,2 +0,0 @@ -{% from 'macros/admin_nav.html' import placeholder_nav %} -{{ placeholder_nav() }} diff --git a/events/templates/_types/markets/_oob_elements.html b/events/templates/_types/markets/_oob_elements.html deleted file mode 100644 index 93ec6d7..0000000 --- a/events/templates/_types/markets/_oob_elements.html +++ /dev/null @@ -1,19 +0,0 @@ -{% extends 'oob_elements.html' %} - -{% from '_types/root/_oob_menu.html' import mobile_menu with context %} - -{% block oobs %} - {% from '_types/root/_n/macros.html' import oob_header with context %} - {{oob_header('post-admin-header-child', 'markets-header-child', '_types/markets/header/_header.html')}} - - {% from '_types/post/admin/header/_header.html' import header_row with context %} - {{ header_row(oob=True) }} -{% endblock %} - -{% block mobile_menu %} - {% include '_types/markets/_nav.html' %} -{% endblock %} - -{% block content %} - {% include "_types/markets/_main_panel.html" %} -{% endblock %} diff --git a/events/templates/_types/markets/header/_header.html b/events/templates/_types/markets/header/_header.html deleted file mode 100644 index a0f247f..0000000 --- a/events/templates/_types/markets/header/_header.html +++ /dev/null @@ -1,14 +0,0 @@ -{% import 'macros/links.html' as links %} -{% macro header_row(oob=False) %} - {% call links.menu_row(id='markets-row', oob=oob) %} - {% call links.link(url_for('markets.defpage_events_markets'), hx_select_search) %} - -
    - Markets -
    - {% endcall %} - {% call links.desktop_nav() %} - {% include '_types/markets/_nav.html' %} - {% endcall %} - {% endcall %} -{% endmacro %} diff --git a/events/templates/_types/markets/index.html b/events/templates/_types/markets/index.html deleted file mode 100644 index cb05b12..0000000 --- a/events/templates/_types/markets/index.html +++ /dev/null @@ -1,23 +0,0 @@ -{% extends '_types/root/_index.html' %} - -{% block meta %}{% endblock %} - -{% block root_header_child %} - {% from '_types/root/_n/macros.html' import index_row with context %} - {% call index_row('post-header-child', '_types/post/header/_header.html') %} - {% call index_row('post-admin-header-child', '_types/post/admin/header/_header.html') %} - {% call index_row('markets-header-child', '_types/markets/header/_header.html') %} - {% block markets_header_child %} - {% endblock %} - {% endcall %} - {% endcall %} - {% endcall %} -{% endblock %} - -{% block _main_mobile_menu %} - {% include '_types/markets/_nav.html' %} -{% endblock %} - -{% block content %} - {% include '_types/markets/_main_panel.html' %} -{% endblock %} diff --git a/events/templates/_types/page_summary/_card.html b/events/templates/_types/page_summary/_card.html deleted file mode 100644 index 3223d76..0000000 --- a/events/templates/_types/page_summary/_card.html +++ /dev/null @@ -1,49 +0,0 @@ -{# List card for page summary — one entry #} -{% set pi = page_info.get(entry.calendar_container_id, {}) %} -{% set page_slug = pi.get('slug', post.slug) %} -{% set page_title = pi.get('title') %} -
    -
    - {# Left: event info #} -
    - {% set day_href = events_url('/' ~ page_slug ~ '/' ~ entry.calendar_slug ~ '/day/' ~ entry.start_at.strftime('%Y/%-m/%-d') ~ '/') %} - {% set entry_href = day_href ~ 'entries/' ~ entry.id ~ '/' %} - -

    {{ entry.name }}

    -
    - -
    - {% if page_title and page_title != post.title %} - - {{ page_title }} - - {% endif %} - {% if entry.calendar_name %} - - {{ entry.calendar_name }} - - {% endif %} -
    - -
    - {{ entry.start_at.strftime('%H:%M') }}{% if entry.end_at %} – {{ entry.end_at.strftime('%H:%M') }}{% endif %} -
    - - {% if entry.cost %} -
    - £{{ '%.2f'|format(entry.cost) }} -
    - {% endif %} -
    - - {# Right: ticket widget #} - {% if entry.ticket_price is not none %} -
    - {% set qty = pending_tickets.get(entry.id, 0) %} - {% set ticket_url = url_for('page_summary.adjust_ticket') %} - {% include '_types/page_summary/_ticket_widget.html' %} -
    - {% endif %} -
    -
    diff --git a/events/templates/_types/page_summary/_card_tile.html b/events/templates/_types/page_summary/_card_tile.html deleted file mode 100644 index 5144386..0000000 --- a/events/templates/_types/page_summary/_card_tile.html +++ /dev/null @@ -1,48 +0,0 @@ -{# Tile card for page summary — compact event tile #} -{% set pi = page_info.get(entry.calendar_container_id, {}) %} -{% set page_slug = pi.get('slug', post.slug) %} -{% set page_title = pi.get('title') %} -
    - {% set day_href = events_url('/' ~ page_slug ~ '/' ~ entry.calendar_slug ~ '/day/' ~ entry.start_at.strftime('%Y/%-m/%-d') ~ '/') %} - {% set entry_href = day_href ~ 'entries/' ~ entry.id ~ '/' %} -
    - -

    {{ entry.name }}

    -
    - -
    - {% if page_title and page_title != post.title %} - - {{ page_title }} - - {% endif %} - {% if entry.calendar_name %} - - {{ entry.calendar_name }} - - {% endif %} -
    - -
    - {{ entry.start_at.strftime('%a %-d %b') }} - · - {{ entry.start_at.strftime('%H:%M') }}{% if entry.end_at %} – {{ entry.end_at.strftime('%H:%M') }}{% endif %} -
    - - {% if entry.cost %} -
    - £{{ '%.2f'|format(entry.cost) }} -
    - {% endif %} -
    - - {# Ticket widget below card #} - {% if entry.ticket_price is not none %} -
    - {% set qty = pending_tickets.get(entry.id, 0) %} - {% set ticket_url = url_for('page_summary.adjust_ticket') %} - {% include '_types/page_summary/_ticket_widget.html' %} -
    - {% endif %} -
    diff --git a/events/templates/_types/page_summary/_cards.html b/events/templates/_types/page_summary/_cards.html deleted file mode 100644 index 2ae4c83..0000000 --- a/events/templates/_types/page_summary/_cards.html +++ /dev/null @@ -1,31 +0,0 @@ -{% for entry in entries %} - {% if view == 'tile' %} - {% include "_types/page_summary/_card_tile.html" %} - {% else %} - {# Date header when date changes (list view only) #} - {% set entry_date = entry.start_at.strftime('%A %-d %B %Y') %} - {% if loop.first or entry_date != entries[loop.index0 - 1].start_at.strftime('%A %-d %B %Y') %} -
    -

    - {{ entry_date }} -

    -
    - {% endif %} - {% include "_types/page_summary/_card.html" %} - {% endif %} -{% endfor %} -{% if has_more %} - {# Infinite scroll sentinel #} - {% set entries_url = url_for('page_summary.entries_fragment', page=page + 1, view=view if view != 'list' else '')|host %} - -{% endif %} diff --git a/events/templates/_types/page_summary/_main_panel.html b/events/templates/_types/page_summary/_main_panel.html deleted file mode 100644 index 168d050..0000000 --- a/events/templates/_types/page_summary/_main_panel.html +++ /dev/null @@ -1,54 +0,0 @@ -{# View toggle bar - desktop only #} - - -{# Cards container - list or grid based on view #} -{% if entries %} - {% if view == 'tile' %} -
    - {% include "_types/page_summary/_cards.html" %} -
    - {% else %} -
    - {% include "_types/page_summary/_cards.html" %} -
    - {% endif %} -{% else %} -
    - -

    No upcoming events

    -
    -{% endif %} -
    diff --git a/events/templates/_types/page_summary/_ticket_widget.html b/events/templates/_types/page_summary/_ticket_widget.html deleted file mode 100644 index cd85e95..0000000 --- a/events/templates/_types/page_summary/_ticket_widget.html +++ /dev/null @@ -1,63 +0,0 @@ -{# Inline ticket +/- widget for page summary cards. - Variables: entry, qty, ticket_url - Wrapped in a div with stable ID for HTMX targeting. #} -
    - £{{ '%.2f'|format(entry.ticket_price) }} - - {% if qty == 0 %} -
    - - - - -
    - {% else %} -
    - - - - -
    - - - - - - {{ qty }} - - - - -
    - - - - -
    - {% endif %} -
    diff --git a/events/templates/_types/page_summary/index.html b/events/templates/_types/page_summary/index.html deleted file mode 100644 index d084317..0000000 --- a/events/templates/_types/page_summary/index.html +++ /dev/null @@ -1,15 +0,0 @@ -{% extends '_types/root/_index.html' %} - -{% block meta %}{% endblock %} - -{% block root_header_child %} - {% from '_types/root/_n/macros.html' import index_row with context %} - {% call index_row('post-header-child', '_types/post/header/_header.html') %} - {% block post_header_child %} - {% endblock %} - {% endcall %} -{% endblock %} - -{% block content %} - {% include '_types/page_summary/_main_panel.html' %} -{% endblock %} diff --git a/events/templates/_types/payments/_main_panel.html b/events/templates/_types/payments/_main_panel.html deleted file mode 100644 index 1b841ef..0000000 --- a/events/templates/_types/payments/_main_panel.html +++ /dev/null @@ -1,70 +0,0 @@ -
    -
    -

    - - SumUp Payment -

    -

    - Configure per-page SumUp credentials. Leave blank to use the global merchant account. -

    - -
    - - -
    - - -
    - -
    - - - {% if sumup_configured %} -

    Key is set. Leave blank to keep current key.

    - {% endif %} -
    - -
    - - -
    - - - - {% if sumup_configured %} - - Connected - - {% endif %} -
    -
    -
    diff --git a/events/templates/_types/payments/_nav.html b/events/templates/_types/payments/_nav.html deleted file mode 100644 index f5c504d..0000000 --- a/events/templates/_types/payments/_nav.html +++ /dev/null @@ -1,2 +0,0 @@ -{% from 'macros/admin_nav.html' import placeholder_nav %} -{{ placeholder_nav() }} diff --git a/events/templates/_types/payments/_oob_elements.html b/events/templates/_types/payments/_oob_elements.html deleted file mode 100644 index 5232f7e..0000000 --- a/events/templates/_types/payments/_oob_elements.html +++ /dev/null @@ -1,19 +0,0 @@ -{% extends 'oob_elements.html' %} - -{% from '_types/root/_oob_menu.html' import mobile_menu with context %} - -{% block oobs %} - {% from '_types/root/_n/macros.html' import oob_header with context %} - {{oob_header('post-admin-header-child', 'payments-header-child', '_types/payments/header/_header.html')}} - - {% from '_types/post/admin/header/_header.html' import header_row with context %} - {{ header_row(oob=True) }} -{% endblock %} - -{% block mobile_menu %} - {% include '_types/payments/_nav.html' %} -{% endblock %} - -{% block content %} - {% include "_types/payments/_main_panel.html" %} -{% endblock %} diff --git a/events/templates/_types/payments/header/_header.html b/events/templates/_types/payments/header/_header.html deleted file mode 100644 index 282aac6..0000000 --- a/events/templates/_types/payments/header/_header.html +++ /dev/null @@ -1,14 +0,0 @@ -{% import 'macros/links.html' as links %} -{% macro header_row(oob=False) %} - {% call links.menu_row(id='payments-row', oob=oob) %} - {% call links.link(url_for('payments.home'), hx_select_search) %} - -
    - Payments -
    - {% endcall %} - {% call links.desktop_nav() %} - {% include '_types/payments/_nav.html' %} - {% endcall %} - {% endcall %} -{% endmacro %} diff --git a/events/templates/_types/payments/index.html b/events/templates/_types/payments/index.html deleted file mode 100644 index 721145c..0000000 --- a/events/templates/_types/payments/index.html +++ /dev/null @@ -1,23 +0,0 @@ -{% extends '_types/root/_index.html' %} - -{% block meta %}{% endblock %} - -{% block root_header_child %} - {% from '_types/root/_n/macros.html' import index_row with context %} - {% call index_row('post-header-child', '_types/post/header/_header.html') %} - {% call index_row('post-admin-header-child', '_types/post/admin/header/_header.html') %} - {% call index_row('payments-header-child', '_types/payments/header/_header.html') %} - {% block payments_header_child %} - {% endblock %} - {% endcall %} - {% endcall %} - {% endcall %} -{% endblock %} - -{% block _main_mobile_menu %} - {% include '_types/payments/_nav.html' %} -{% endblock %} - -{% block content %} - {% include '_types/payments/_main_panel.html' %} -{% endblock %} diff --git a/events/templates/_types/post/_nav.html b/events/templates/_types/post/_nav.html deleted file mode 100644 index b563e18..0000000 --- a/events/templates/_types/post/_nav.html +++ /dev/null @@ -1,14 +0,0 @@ -{% import 'macros/links.html' as links %} -{% if calendars %} - {% for calendar in calendars %} - {% call links.link(url_for('calendar.get', calendar_slug=calendar.slug), hx_select_search, select_colours, True, aclass=styles.nav_button_less_pad) %} - -
    {{ calendar.name }}
    - {% endcall %} - {% endfor %} -{% endif %} -{% if g.rights.admin %} - - - -{% endif %} diff --git a/events/templates/_types/post/admin/_associated_entries.html b/events/templates/_types/post/admin/_associated_entries.html deleted file mode 100644 index d5538e4..0000000 --- a/events/templates/_types/post/admin/_associated_entries.html +++ /dev/null @@ -1,50 +0,0 @@ -
    -

    Associated Entries

    - {% if associated_entry_ids %} -
    - {% for calendar in all_calendars %} - {% for entry in calendar.entries %} - {% if entry.id in associated_entry_ids and entry.deleted_at is none %} - - {% endif %} - {% endfor %} - {% endfor %} -
    - {% else %} -
    No entries associated yet. Browse calendars below to add entries.
    - {% endif %} -
    diff --git a/events/templates/_types/post/admin/_nav.html b/events/templates/_types/post/admin/_nav.html deleted file mode 100644 index 4be48c7..0000000 --- a/events/templates/_types/post/admin/_nav.html +++ /dev/null @@ -1,36 +0,0 @@ -{% import 'macros/links.html' as links %} - - - - - - - diff --git a/events/templates/_types/post/admin/_nav_entries_oob.html b/events/templates/_types/post/admin/_nav_entries_oob.html deleted file mode 100644 index a661658..0000000 --- a/events/templates/_types/post/admin/_nav_entries_oob.html +++ /dev/null @@ -1,34 +0,0 @@ -{# OOB swap for nav entries and calendars when toggling associations or editing calendars #} -{% from 'macros/nav_entries.html' import nav_entries_oob %} - -{% set has_items = (associated_entries and associated_entries.entries) or calendars %} -{% call nav_entries_oob(has_items) %} - {% if associated_entries and associated_entries.entries %} - {% for entry in associated_entries.entries %} - {% set _entry_path = '/' + post.slug + '/' +entry.calendar_slug + '/' + entry.start_at.year|string + '/' + entry.start_at.month|string + '/' + entry.start_at.day|string + '/entries/' + entry.id|string + '/' %} - -
    -
    -
    {{ entry.name }}
    -
    - {{ entry.start_at.strftime('%b %d, %Y at %H:%M') }} - {% if entry.end_at %} – {{ entry.end_at.strftime('%H:%M') }}{% endif %} -
    -
    -
    - {% endfor %} - {% endif %} - {% if calendars %} - {% for calendar in calendars %} - {% set local_href=events_url('/' + post.slug + '/' +calendar.slug + '/') %} - - -
    {{calendar.name}}
    -
    - {% endfor %} - {% endif %} -{% endcall %} diff --git a/events/templates/_types/post/admin/header/_header.html b/events/templates/_types/post/admin/header/_header.html deleted file mode 100644 index 9056d09..0000000 --- a/events/templates/_types/post/admin/header/_header.html +++ /dev/null @@ -1,12 +0,0 @@ -{% import 'macros/links.html' as links %} -{% macro header_row(oob=False) %} - {% call links.menu_row(id='post-admin-row', oob=oob) %} - - {{ links.admin() }} - - {% call links.desktop_nav() %} - {% include '_types/post/admin/_nav.html' %} - {% endcall %} - {% endcall %} -{% endmacro %} diff --git a/events/templates/_types/post/header/_header.html b/events/templates/_types/post/header/_header.html deleted file mode 100644 index 6655eb5..0000000 --- a/events/templates/_types/post/header/_header.html +++ /dev/null @@ -1,28 +0,0 @@ -{% import 'macros/links.html' as links %} -{% macro header_row(oob=False) %} - {% call links.menu_row(id='post-row', oob=oob) %} - {% call links.link(blog_url('/' + post.slug + '/'), hx_select_search ) %} - {% if post.feature_image %} - - {% endif %} - - {{ post.title | truncate(160, True, '…') }} - - {% endcall %} - {% call links.desktop_nav() %} - {% if page_cart_count is defined and page_cart_count > 0 %} - - - {{ page_cart_count }} - - {% endif %} - {% include '_types/post/_nav.html' %} - {% endcall %} - {% endcall %} -{% endmacro %} \ No newline at end of file diff --git a/events/templates/_types/post_entries/_main_panel.html b/events/templates/_types/post_entries/_main_panel.html deleted file mode 100644 index fe5b80c..0000000 --- a/events/templates/_types/post_entries/_main_panel.html +++ /dev/null @@ -1,40 +0,0 @@ -
    - - {# Associated Entries List #} - {% include '_types/post/admin/_associated_entries.html' %} - - {# Calendars Browser #} -
    -

    Browse Calendars

    - {% for calendar in all_calendars %} -
    - - {% if calendar.post.feature_image %} - {{ calendar.post.title }} - {% else %} -
    - {% endif %} -
    -
    - - {{ calendar.name }} -
    -
    - {{ calendar.post.title }} -
    -
    -
    -
    -
    Loading calendar...
    -
    -
    - {% else %} -
    No calendars found.
    - {% endfor %} -
    -
    \ No newline at end of file diff --git a/events/templates/_types/post_entries/_nav.html b/events/templates/_types/post_entries/_nav.html deleted file mode 100644 index f5c504d..0000000 --- a/events/templates/_types/post_entries/_nav.html +++ /dev/null @@ -1,2 +0,0 @@ -{% from 'macros/admin_nav.html' import placeholder_nav %} -{{ placeholder_nav() }} diff --git a/events/templates/_types/post_entries/header/_header.html b/events/templates/_types/post_entries/header/_header.html deleted file mode 100644 index 18859eb..0000000 --- a/events/templates/_types/post_entries/header/_header.html +++ /dev/null @@ -1,17 +0,0 @@ -{% import 'macros/links.html' as links %} -{% macro header_row(oob=False) %} - {% call links.menu_row(id='post_entries-row', oob=oob) %} - {% call links.link(blog_url('/' + post.slug + '/admin/entries/'), hx_select_search) %} - -
    - entries -
    - {% endcall %} - {% call links.desktop_nav() %} - {% include '_types/post_entries/_nav.html' %} - {% endcall %} - {% endcall %} -{% endmacro %} - - - diff --git a/events/templates/_types/slot/__description.html b/events/templates/_types/slot/__description.html deleted file mode 100644 index b9ae8df..0000000 --- a/events/templates/_types/slot/__description.html +++ /dev/null @@ -1,13 +0,0 @@ -{% macro description(slot, oob=False) %} -
    - {{ slot.description or ''}} -
    - -{% endmacro %} diff --git a/events/templates/_types/slot/_description.html b/events/templates/_types/slot/_description.html deleted file mode 100644 index 32e28e6..0000000 --- a/events/templates/_types/slot/_description.html +++ /dev/null @@ -1,5 +0,0 @@ -

    - {% if slot.description %} - {{ slot.description }} - {% endif %} -

    diff --git a/events/templates/_types/slot/_edit.html b/events/templates/_types/slot/_edit.html deleted file mode 100644 index cdbeddc..0000000 --- a/events/templates/_types/slot/_edit.html +++ /dev/null @@ -1,180 +0,0 @@ -
    - -
    -
    - - - -
    - - -
    - - -
    - - -
    - - -
    - - -
    - - -
    - - -
    - - -
    - - -
    - - -
    - - Days - - - {# pre-check "All" if every day is true on this slot #} - {% set all_days_checked = - slot|getattr('mon') - and slot|getattr('tue') - and slot|getattr('wed') - and slot|getattr('thu') - and slot|getattr('fri') - and slot|getattr('sat') - and slot|getattr('sun') %} - -
    - {# "All" toggle – no name so it’s not submitted #} - - - {# Individual days, with data-day like the add form #} - {% for key, label in [ - ('mon','Mon'),('tue','Tue'),('wed','Wed'),('thu','Thu'), - ('fri','Fri'),('sat','Sat'),('sun','Sun') - ] %} - {% set is_checked = slot|getattr(key) %} - - {% endfor %} -
    -
    - - -
    - - -
    - -
    - - - -
    -
    -
    diff --git a/events/templates/_types/slot/_main_panel.html b/events/templates/_types/slot/_main_panel.html deleted file mode 100644 index d67206b..0000000 --- a/events/templates/_types/slot/_main_panel.html +++ /dev/null @@ -1,72 +0,0 @@ -
    - -
    -
    - Days -
    -
    - {% set days = slot.days_display.split(', ') %} - {% if days and days[0] != "—" %} -
    - {% for day in days %} - - {{ day }} - - {% endfor %} -
    - {% else %} - No days - {% endif %} -
    -
    - - -
    -
    - Flexible -
    -
    - {{ 'yes' if slot.flexible else 'no' }} -
    -
    - - -
    -
    -
    - Time -
    -
    - {{ slot.time_start.strftime('%H:%M') }} — {{ slot.time_end.strftime('%H:%M') }} -
    -
    - -
    -
    - Cost -
    -
    - {{ ('%.2f'|format(slot.cost)) if slot.cost is not none else '' }} -
    -
    -
    - -
    - -{% if oob %} - {% from '_types/slot/__description.html' import description %} - {{description(slot, oob=True)}} - -{% endif %} \ No newline at end of file diff --git a/events/templates/_types/slot/_oob_elements.html b/events/templates/_types/slot/_oob_elements.html deleted file mode 100644 index 3b82170..0000000 --- a/events/templates/_types/slot/_oob_elements.html +++ /dev/null @@ -1,15 +0,0 @@ -{% extends "oob_elements.html" %} - -{% block oobs %} - {% from '_types/root/_n/macros.html' import oob_header with context %} - {{oob_header('slots-header-child', 'slot-header-child', '_types/slot/header/_header.html')}} - - {% from '_types/slots/header/_header.html' import header_row with context %} - {{ header_row(oob=True) }} -{% endblock %} - - - -{% block content %} - {% include '_types/slot/_main_panel.html' %} -{% endblock %} diff --git a/events/templates/_types/slot/header/_header.html b/events/templates/_types/slot/header/_header.html deleted file mode 100644 index fc5381d..0000000 --- a/events/templates/_types/slot/header/_header.html +++ /dev/null @@ -1,25 +0,0 @@ -{% import 'macros/links.html' as links %} -{% macro header_row(oob=False) %} - {% call links.menu_row(id='slot-row', oob=oob) %} - {% call links.link( - hx_select_search, - ) %} -
    -
    - -
    - {{ slot.name }} -
    -
    - {% from '_types/slot/__description.html' import description %} - {{description(slot)}} -
    - {% endcall %} - {% call links.desktop_nav() %} - {#% include '_types/slot/_nav.html' %#} - {% endcall %} - {% endcall %} -{% endmacro %} - - - diff --git a/events/templates/_types/slot/index.html b/events/templates/_types/slot/index.html deleted file mode 100644 index 265be24..0000000 --- a/events/templates/_types/slot/index.html +++ /dev/null @@ -1,20 +0,0 @@ -{% extends '_types/slots/index.html' %} -{% import 'macros/layout.html' as layout %} - - -{% block slots_header_child %} - {% from '_types/root/_n/macros.html' import index_row with context %} - {% call index_row('slot-header-child', '_types/slot/header/_header.html') %} - {% block slot_header_child %} - {% endblock %} - {% endcall %} -{% endblock %} - - -{% block _main_mobile_menu %} - {#% include '_types/slot/_nav.html' %#} -{% endblock %} - -{% block content %} - {% include '_types/slot/_main_panel.html' %} -{% endblock %} diff --git a/events/templates/_types/slots/_add.html b/events/templates/_types/slots/_add.html deleted file mode 100644 index af1f4cf..0000000 --- a/events/templates/_types/slots/_add.html +++ /dev/null @@ -1,123 +0,0 @@ -
    -
    -
    - - -
    - -
    - - -
    - -
    - -
    - {# "All" toggle – no name so it’s not submitted #} - - - {# Individual days #} - {% for key, label in [ - ('mon','Mon'),('tue','Tue'),('wed','Wed'),('thu','Thu'), - ('fri','Fri'),('sat','Sat'),('sun','Sun') - ] %} - - {% endfor %} -
    -
    - -
    - - -
    - -
    - - -
    - -
    - - -
    - - {# NEW: flexible flag #} -
    - - -
    -
    - -
    - - - -
    -
    diff --git a/events/templates/_types/slots/_add_button.html b/events/templates/_types/slots/_add_button.html deleted file mode 100644 index da79339..0000000 --- a/events/templates/_types/slots/_add_button.html +++ /dev/null @@ -1,11 +0,0 @@ - - diff --git a/events/templates/_types/slots/_main_panel.html b/events/templates/_types/slots/_main_panel.html deleted file mode 100644 index a2ac263..0000000 --- a/events/templates/_types/slots/_main_panel.html +++ /dev/null @@ -1,26 +0,0 @@ -
    - - - - - - - - - - - - - {% for s in slots %} - {% include '_types/slots/_row.html' %} - {% else %} - - {% endfor %} - -
    NameFlexibleDaysTimeCostActions
    No slots yet.
    - - -
    - {% include '_types/slots/_add_button.html' %} -
    -
    diff --git a/events/templates/_types/slots/_oob_elements.html b/events/templates/_types/slots/_oob_elements.html deleted file mode 100644 index acf0d05..0000000 --- a/events/templates/_types/slots/_oob_elements.html +++ /dev/null @@ -1,15 +0,0 @@ -{% extends "oob_elements.html" %} - -{% block oobs %} - {% from '_types/root/_n/macros.html' import oob_header with context %} - {{oob_header('calendar-header-child', 'slots-header-child', '_types/slots/header/_header.html')}} - - {% from '_types/calendar/header/_header.html' import header_row with context %} - {{ header_row(oob=True) }} -{% endblock %} - - - -{% block content %} - {% include '_types/slots/_main_panel.html' %} -{% endblock %} diff --git a/events/templates/_types/slots/_row.html b/events/templates/_types/slots/_row.html deleted file mode 100644 index b781596..0000000 --- a/events/templates/_types/slots/_row.html +++ /dev/null @@ -1,61 +0,0 @@ -{% import 'macros/links.html' as links %} - - -
    - {% call links.link( - hx_select_search, - aclass=styles.pill - ) %} - {{ s.name }} - {% endcall %} -
    - {% set slot = s %} - {% include '_types/slot/_description.html' %} - - - {{ 'yes' if s.flexible else 'no' }} - - - {% set days = s.days_display.split(', ') %} - {% if days and days[0] != "—" %} -
    - {% for day in days %} - - {{ day }} - - {% endfor %} -
    - {% else %} - No days - {% endif %} - - - {{ s.time_start.strftime('%H:%M') }} - {{ s.time_end.strftime('%H:%M') }} - - - {{ ('%.2f'|format(s.cost)) if s.cost is not none else '' }} - - - - - diff --git a/events/templates/_types/slots/header/_header.html b/events/templates/_types/slots/header/_header.html deleted file mode 100644 index eb34edb..0000000 --- a/events/templates/_types/slots/header/_header.html +++ /dev/null @@ -1,18 +0,0 @@ -{% import 'macros/links.html' as links %} -{% macro header_row(oob=False) %} - {% call links.menu_row(id='slots-row', oob=oob) %} - {% call links.link( - hx_select_search, - ) %} - -
    - slots -
    - {% endcall %} - {% call links.desktop_nav() %} - {% endcall %} - {% endcall %} -{% endmacro %} - - - diff --git a/events/templates/_types/slots/index.html b/events/templates/_types/slots/index.html deleted file mode 100644 index 453ba5f..0000000 --- a/events/templates/_types/slots/index.html +++ /dev/null @@ -1,19 +0,0 @@ -{% extends '_types/calendar/index.html' %} - -{% block calendar_header_child %} - {% from '_types/root/_n/macros.html' import index_row with context %} - {% call index_row('slots-header-child', '_types/slots/header/_header.html') %} - {% block slots_header_child %} - {% endblock %} - {% endcall %} -{% endblock %} - -{% block _main_mobile_menu %} - {#% include '_types/calendar/_nav.html' %#} -{% endblock %} - - - -{% block content %} - {% include '_types/slots/_main_panel.html' %} -{% endblock %} \ No newline at end of file diff --git a/events/templates/_types/ticket_admin/_checkin_result.html b/events/templates/_types/ticket_admin/_checkin_result.html deleted file mode 100644 index 4d6447e..0000000 --- a/events/templates/_types/ticket_admin/_checkin_result.html +++ /dev/null @@ -1,39 +0,0 @@ -{# Check-in result — replaces ticket row or action area #} -{% if success and ticket %} - - - {{ ticket.code[:12] }}... - - -
    {{ ticket.entry.name if ticket.entry else '—' }}
    - {% if ticket.entry and ticket.entry.start_at %} -
    - {{ ticket.entry.start_at.strftime('%d %b %Y, %H:%M') }} -
    - {% endif %} - - - {{ ticket.ticket_type.name if ticket.ticket_type else '—' }} - - - - Checked in - - - - - - {% if ticket.checked_in_at %} - {{ ticket.checked_in_at.strftime('%H:%M') }} - {% else %} - Just now - {% endif %} - - - -{% elif not success %} -
    - - {{ error or 'Check-in failed' }} -
    -{% endif %} diff --git a/events/templates/_types/ticket_admin/_entry_tickets.html b/events/templates/_types/ticket_admin/_entry_tickets.html deleted file mode 100644 index 892e327..0000000 --- a/events/templates/_types/ticket_admin/_entry_tickets.html +++ /dev/null @@ -1,75 +0,0 @@ -{# Tickets for a specific calendar entry — admin view #} -
    -
    -

    - Tickets for: {{ entry.name }} -

    - - {{ tickets|length }} ticket{{ 's' if tickets|length != 1 else '' }} - -
    - - {% if tickets %} -
    - - - - - - - - - - - {% for ticket in tickets %} - - - - - - - {% endfor %} - -
    CodeTypeStateActions
    {{ ticket.code[:12] }}...{{ ticket.ticket_type.name if ticket.ticket_type else '—' }} - - {{ ticket.state|replace('_', ' ')|capitalize }} - - - {% if ticket.state in ('confirmed', 'reserved') %} -
    - - -
    - {% elif ticket.state == 'checked_in' %} - - - {% if ticket.checked_in_at %}{{ ticket.checked_in_at.strftime('%H:%M') }}{% endif %} - - {% endif %} -
    -
    - {% else %} -
    - No tickets for this entry -
    - {% endif %} -
    diff --git a/events/templates/_types/ticket_admin/_lookup_result.html b/events/templates/_types/ticket_admin/_lookup_result.html deleted file mode 100644 index b701649..0000000 --- a/events/templates/_types/ticket_admin/_lookup_result.html +++ /dev/null @@ -1,82 +0,0 @@ -{# Ticket lookup result — rendered into #lookup-result #} -{% if error %} -
    - - {{ error }} -
    -{% elif ticket %} -
    -
    -
    -
    - {{ ticket.entry.name if ticket.entry else 'Unknown event' }} -
    - {% if ticket.ticket_type %} -
    {{ ticket.ticket_type.name }}
    - {% endif %} - {% if ticket.entry and ticket.entry.start_at %} -
    - {{ ticket.entry.start_at.strftime('%A, %B %d, %Y at %H:%M') }} -
    - {% endif %} - {% if ticket.entry and ticket.entry.calendar %} -
    - {{ ticket.entry.calendar.name }} -
    - {% endif %} -
    - - {{ ticket.state|replace('_', ' ')|capitalize }} - - {{ ticket.code }} -
    - {% if ticket.checked_in_at %} -
    - Checked in: {{ ticket.checked_in_at.strftime('%B %d, %Y at %H:%M') }} -
    - {% endif %} -
    - -
    - {% if ticket.state in ('confirmed', 'reserved') %} -
    - - -
    - {% elif ticket.state == 'checked_in' %} -
    - -
    Checked In
    -
    - {% elif ticket.state == 'cancelled' %} -
    - -
    Cancelled
    -
    - {% endif %} -
    -
    -
    -{% endif %} diff --git a/events/templates/_types/ticket_admin/_main_panel.html b/events/templates/_types/ticket_admin/_main_panel.html deleted file mode 100644 index dcea6fe..0000000 --- a/events/templates/_types/ticket_admin/_main_panel.html +++ /dev/null @@ -1,148 +0,0 @@ -
    -

    Ticket Admin

    - - {# Stats row #} -
    -
    -
    {{ stats.total }}
    -
    Total
    -
    -
    -
    {{ stats.confirmed }}
    -
    Confirmed
    -
    -
    -
    {{ stats.checked_in }}
    -
    Checked In
    -
    -
    -
    {{ stats.reserved }}
    -
    Reserved
    -
    -
    - - {# Scanner section #} -
    -

    - - Scan / Look Up Ticket -

    - -
    - - -
    - -
    -
    - Enter a ticket code to look it up -
    -
    -
    - - {# Recent tickets table #} -
    -

    - Recent Tickets -

    - - {% if tickets %} -
    - - - - - - - - - - - - {% for ticket in tickets %} - - - - - - - - {% endfor %} - -
    CodeEventTypeStateActions
    - {{ ticket.code[:12] }}... - -
    {{ ticket.entry.name if ticket.entry else '—' }}
    - {% if ticket.entry and ticket.entry.start_at %} -
    - {{ ticket.entry.start_at.strftime('%d %b %Y, %H:%M') }} -
    - {% endif %} -
    - {{ ticket.ticket_type.name if ticket.ticket_type else '—' }} - - - {{ ticket.state|replace('_', ' ')|capitalize }} - - - {% if ticket.state in ('confirmed', 'reserved') %} -
    - - -
    - {% elif ticket.state == 'checked_in' %} - - - {% if ticket.checked_in_at %} - {{ ticket.checked_in_at.strftime('%H:%M') }} - {% endif %} - - {% endif %} -
    -
    - {% else %} -
    - No tickets yet -
    - {% endif %} -
    -
    diff --git a/events/templates/_types/ticket_admin/index.html b/events/templates/_types/ticket_admin/index.html deleted file mode 100644 index 47ecb0a..0000000 --- a/events/templates/_types/ticket_admin/index.html +++ /dev/null @@ -1,8 +0,0 @@ -{% extends '_types/root/index.html' %} - -{% block _main_mobile_menu %} -{% endblock %} - -{% block content %} -{% include '_types/ticket_admin/_main_panel.html' %} -{% endblock %} diff --git a/events/templates/_types/ticket_type/_edit.html b/events/templates/_types/ticket_type/_edit.html deleted file mode 100644 index 355bbc0..0000000 --- a/events/templates/_types/ticket_type/_edit.html +++ /dev/null @@ -1,101 +0,0 @@ -
    - -
    -
    - - - -
    - - -
    - - -
    - - -
    - - -
    - - -
    - -
    - - - -
    -
    -
    diff --git a/events/templates/_types/ticket_type/_main_panel.html b/events/templates/_types/ticket_type/_main_panel.html deleted file mode 100644 index 85d5f2e..0000000 --- a/events/templates/_types/ticket_type/_main_panel.html +++ /dev/null @@ -1,49 +0,0 @@ -
    - -
    -
    -
    - Name -
    -
    - {{ ticket_type.name }} -
    -
    - -
    -
    - Cost -
    -
    - £{{ ('%.2f'|format(ticket_type.cost)) if ticket_type.cost is not none else '0.00' }} -
    -
    - -
    -
    - Count -
    -
    - {{ ticket_type.count }} -
    -
    -
    - - -
    diff --git a/events/templates/_types/ticket_type/_nav.html b/events/templates/_types/ticket_type/_nav.html deleted file mode 100644 index f5c504d..0000000 --- a/events/templates/_types/ticket_type/_nav.html +++ /dev/null @@ -1,2 +0,0 @@ -{% from 'macros/admin_nav.html' import placeholder_nav %} -{{ placeholder_nav() }} diff --git a/events/templates/_types/ticket_type/_oob_elements.html b/events/templates/_types/ticket_type/_oob_elements.html deleted file mode 100644 index 824e62a..0000000 --- a/events/templates/_types/ticket_type/_oob_elements.html +++ /dev/null @@ -1,18 +0,0 @@ -{% extends "oob_elements.html" %} - -{% block oobs %} - {% from '_types/root/_n/macros.html' import oob_header with context %} - {{oob_header('ticket_types-header-child', 'ticket_type-header-child', '_types/ticket_type/header/_header.html')}} - - {% from '_types/ticket_types/header/_header.html' import header_row with context %} - {{ header_row(oob=True) }} -{% endblock %} - - -{% block mobile_menu %} - {% include '_types/ticket_type/_nav.html' %} -{% endblock %} - -{% block content %} - {% include '_types/ticket_type/_main_panel.html' %} -{% endblock %} diff --git a/events/templates/_types/ticket_type/header/_header.html b/events/templates/_types/ticket_type/header/_header.html deleted file mode 100644 index 156e120..0000000 --- a/events/templates/_types/ticket_type/header/_header.html +++ /dev/null @@ -1,32 +0,0 @@ -{% import 'macros/links.html' as links %} -{% macro header_row(oob=False) %} - {% call links.menu_row(id='ticket_type-row', oob=oob) %} - {% call links.link( - url_for( - 'calendar.day.calendar_entries.calendar_entry.ticket_types.ticket_type.get', - calendar_slug=calendar.slug, - year=year, - month=month, - day=day, - entry_id=entry.id, - ticket_type_id=ticket_type.id - ), - hx_select_search, - ) %} -
    -
    - -
    - {{ ticket_type.name }} -
    -
    -
    - {% endcall %} - {% call links.desktop_nav() %} - {% include '_types/ticket_type/_nav.html' %} - {% endcall %} - {% endcall %} -{% endmacro %} - - - diff --git a/events/templates/_types/ticket_type/index.html b/events/templates/_types/ticket_type/index.html deleted file mode 100644 index 245992c..0000000 --- a/events/templates/_types/ticket_type/index.html +++ /dev/null @@ -1,19 +0,0 @@ -{% extends '_types/ticket_types/index.html' %} -{% import 'macros/layout.html' as layout %} - -{% block ticket_types_header_child %} - {% from '_types/root/_n/macros.html' import index_row with context %} - {% call index_row('ticket_types-header-child', '_types/ticket_type/header/_header.html') %} - {% block ticket_type_header_child %} - {% endblock %} - {% endcall %} -{% endblock %} - - -{% block _main_mobile_menu %} - {#% include '_types/ticket_type/_nav.html' %#} -{% endblock %} - -{% block content %} - {% include '_types/ticket_type/_main_panel.html' %} -{% endblock %} diff --git a/events/templates/_types/ticket_types/_add.html b/events/templates/_types/ticket_types/_add.html deleted file mode 100644 index f84e39f..0000000 --- a/events/templates/_types/ticket_types/_add.html +++ /dev/null @@ -1,85 +0,0 @@ -
    -
    -
    - - -
    - -
    - - -
    - -
    - - -
    -
    - -
    - - - -
    -
    diff --git a/events/templates/_types/ticket_types/_add_button.html b/events/templates/_types/ticket_types/_add_button.html deleted file mode 100644 index e0436ff..0000000 --- a/events/templates/_types/ticket_types/_add_button.html +++ /dev/null @@ -1,15 +0,0 @@ - diff --git a/events/templates/_types/ticket_types/_main_panel.html b/events/templates/_types/ticket_types/_main_panel.html deleted file mode 100644 index 2afaa7a..0000000 --- a/events/templates/_types/ticket_types/_main_panel.html +++ /dev/null @@ -1,24 +0,0 @@ -
    - - - - - - - - - - - {% for tt in ticket_types %} - {% include '_types/ticket_types/_row.html' %} - {% else %} - - {% endfor %} - -
    NameCostCountActions
    No ticket types yet.
    - - -
    - {% include '_types/ticket_types/_add_button.html' %} -
    -
    diff --git a/events/templates/_types/ticket_types/_nav.html b/events/templates/_types/ticket_types/_nav.html deleted file mode 100644 index f5c504d..0000000 --- a/events/templates/_types/ticket_types/_nav.html +++ /dev/null @@ -1,2 +0,0 @@ -{% from 'macros/admin_nav.html' import placeholder_nav %} -{{ placeholder_nav() }} diff --git a/events/templates/_types/ticket_types/_oob_elements.html b/events/templates/_types/ticket_types/_oob_elements.html deleted file mode 100644 index a746f17..0000000 --- a/events/templates/_types/ticket_types/_oob_elements.html +++ /dev/null @@ -1,18 +0,0 @@ -{% extends "oob_elements.html" %} - -{% block oobs %} - {% from '_types/root/_n/macros.html' import oob_header with context %} - {{oob_header('entry-admin-header-child', 'ticket_types-header-child', '_types/ticket_types/header/_header.html')}} - - {% from '_types/entry/admin/header/_header.html' import header_row with context %} - {{ header_row(oob=True) }} -{% endblock %} - - -{% block mobile_menu %} - {% include '_types/ticket_types/_nav.html' %} -{% endblock %} - -{% block content %} - {% include '_types/ticket_types/_main_panel.html' %} -{% endblock %} diff --git a/events/templates/_types/ticket_types/_row.html b/events/templates/_types/ticket_types/_row.html deleted file mode 100644 index cd340de..0000000 --- a/events/templates/_types/ticket_types/_row.html +++ /dev/null @@ -1,55 +0,0 @@ -{% import 'macros/links.html' as links %} - - -
    - {% call links.link( - url_for( - 'calendar.day.calendar_entries.calendar_entry.ticket_types.ticket_type.get', - calendar_slug=calendar.slug, - year=year, - month=month, - day=day, - entry_id=entry.id, - ticket_type_id=tt.id - ), - hx_select_search, - aclass=styles.pill - ) %} - {{ tt.name }} - {% endcall %} -
    - - - £{{ ('%.2f'|format(tt.cost)) if tt.cost is not none else '0.00' }} - - - {{ tt.count }} - - - - - diff --git a/events/templates/_types/ticket_types/header/_header.html b/events/templates/_types/ticket_types/header/_header.html deleted file mode 100644 index 979954a..0000000 --- a/events/templates/_types/ticket_types/header/_header.html +++ /dev/null @@ -1,24 +0,0 @@ -{% import 'macros/links.html' as links %} -{% macro header_row(oob=False) %} - {% call links.menu_row(id='ticket_types-row', oob=oob) %} - {% call links.link(url_for( - 'calendar.day.calendar_entries.calendar_entry.ticket_types.get', - calendar_slug=calendar.slug, - entry_id=entry.id, - year=year, - month=month, - day=day - ), hx_select_search) %} - -
    - ticket types -
    - {% endcall %} - {% call links.desktop_nav() %} - {% include '_types/ticket_types/_nav.html' %} - {% endcall %} - {% endcall %} -{% endmacro %} - - - diff --git a/events/templates/_types/ticket_types/index.html b/events/templates/_types/ticket_types/index.html deleted file mode 100644 index 9d0362a..0000000 --- a/events/templates/_types/ticket_types/index.html +++ /dev/null @@ -1,20 +0,0 @@ -{% extends '_types/entry/admin/index.html' %} - -{% block entry_admin_header_child %} - {% from '_types/root/_n/macros.html' import index_row with context %} - {% call index_row('ticket_type-header-child', '_types/ticket_types/header/_header.html') %} - {% block ticket_types_header_child %} - {% endblock %} - {% endcall %} -{% endblock %} - - -{% block _main_mobile_menu %} - {% include '_types/ticket_types/_nav.html' %} -{% endblock %} - - - -{% block content %} - {% include '_types/ticket_types/_main_panel.html' %} -{% endblock %} diff --git a/events/templates/_types/tickets/_adjust_response.html b/events/templates/_types/tickets/_adjust_response.html deleted file mode 100644 index 24ec2fc..0000000 --- a/events/templates/_types/tickets/_adjust_response.html +++ /dev/null @@ -1,4 +0,0 @@ -{# Response for ticket adjust — buy form + OOB cart-mini update #} -{% from 'macros/cart_icon.html' import cart_icon %} -{{ cart_icon(count=cart_count, oob='true') }} -{% include '_types/tickets/_buy_form.html' %} diff --git a/events/templates/_types/tickets/_buy_form.html b/events/templates/_types/tickets/_buy_form.html deleted file mode 100644 index 0c9a2d8..0000000 --- a/events/templates/_types/tickets/_buy_form.html +++ /dev/null @@ -1,206 +0,0 @@ -{# Ticket purchase form — shown on entry detail when tickets are available #} -{% if entry.ticket_price is not none and entry.state == 'confirmed' %} -
    -

    - - Tickets -

    - - {# Sold / remaining info #} -
    - {% if ticket_sold_count is defined and ticket_sold_count %} - {{ ticket_sold_count }} sold - {% endif %} - {% if ticket_remaining is not none %} - {{ ticket_remaining }} remaining - {% endif %} - {% if user_ticket_count is defined and user_ticket_count %} - - - {{ user_ticket_count }} in basket - - {% endif %} -
    - - {% if entry.ticket_types %} - {# Multiple ticket types #} -
    - {% for tt in entry.ticket_types %} - {% if tt.deleted_at is none %} - {% set type_count = user_ticket_counts_by_type.get(tt.id, 0) if user_ticket_counts_by_type is defined else 0 %} -
    -
    -
    {{ tt.name }}
    -
    - £{{ '%.2f'|format(tt.cost) }} -
    -
    - - {% if type_count == 0 %} - {# Add to basket button #} -
    - - - - - -
    - {% else %} - {# +/- controls #} -
    -
    - - - - - -
    - - - - - - - {{ type_count }} - - - - - -
    - - - - - -
    -
    - {% endif %} -
    - {% endif %} - {% endfor %} -
    - - {% else %} - {# Simple ticket (single price) #} -
    -
    - - £{{ '%.2f'|format(entry.ticket_price) }} - - per ticket -
    -
    - - {% set qty = user_ticket_count if user_ticket_count is defined else 0 %} - - {% if qty == 0 %} - {# Add to basket button #} -
    - - - - -
    - {% else %} - {# +/- controls #} -
    -
    - - - - -
    - - - - - - - {{ qty }} - - - - - -
    - - - - -
    -
    - {% endif %} - {% endif %} -
    -{% elif entry.ticket_price is not none %} - {# Tickets configured but entry not confirmed yet #} -
    - - Tickets available once this event is confirmed. -
    -{% endif %} diff --git a/events/templates/_types/tickets/_buy_result.html b/events/templates/_types/tickets/_buy_result.html deleted file mode 100644 index 585da9c..0000000 --- a/events/templates/_types/tickets/_buy_result.html +++ /dev/null @@ -1,43 +0,0 @@ -{# Shown after ticket purchase — replaces the buy form #} -{# OOB: refresh cart badge to reflect new ticket count #} -{% from 'macros/cart_icon.html' import cart_icon %} -{{ cart_icon(count=cart_count|default(0), oob='true') }} - -
    -
    - - - {{ created_tickets|length }} ticket{{ 's' if created_tickets|length != 1 else '' }} reserved - -
    - -
    - {% for ticket in created_tickets %} - -
    - - {{ ticket.code[:12] }}... -
    - View ticket -
    - {% endfor %} -
    - - {% if remaining is not none %} -

    - {{ remaining }} ticket{{ 's' if remaining != 1 else '' }} remaining -

    - {% endif %} - - -
    diff --git a/events/templates/_types/tickets/_detail_panel.html b/events/templates/_types/tickets/_detail_panel.html deleted file mode 100644 index 2ea70df..0000000 --- a/events/templates/_types/tickets/_detail_panel.html +++ /dev/null @@ -1,124 +0,0 @@ -
    - - {# Back link #} - - - Back to my tickets - - - {# Ticket card #} -
    - {# Header with state #} -
    -
    -

    - {{ ticket.entry.name if ticket.entry else 'Ticket' }} -

    - - {{ ticket.state|replace('_', ' ')|capitalize }} - -
    - {% if ticket.ticket_type %} -
    - {{ ticket.ticket_type.name }} -
    - {% endif %} -
    - - {# QR Code #} -
    -
    - {# QR code rendered via JavaScript #} -
    -

    - {{ ticket.code }} -

    -
    - - {# Event details #} -
    - {% if ticket.entry %} -
    - -
    -
    - {{ ticket.entry.start_at.strftime('%A, %B %d, %Y') }} -
    -
    - {{ ticket.entry.start_at.strftime('%H:%M') }} - {% if ticket.entry.end_at %} - – {{ ticket.entry.end_at.strftime('%H:%M') }} - {% endif %} -
    -
    -
    - - {% if ticket.entry.calendar %} -
    - -
    - {{ ticket.entry.calendar.name }} -
    -
    - {% endif %} - {% endif %} - - {% if ticket.ticket_type and ticket.ticket_type.cost %} -
    - -
    - {{ ticket.ticket_type.name }} — £{{ '%.2f'|format(ticket.ticket_type.cost) }} -
    -
    - {% endif %} - - {% if ticket.checked_in_at %} -
    - -
    - Checked in: {{ ticket.checked_in_at.strftime('%B %d, %Y at %H:%M') }} -
    -
    - {% endif %} -
    -
    - - {# QR code generation script #} - - -
    diff --git a/events/templates/_types/tickets/_main_panel.html b/events/templates/_types/tickets/_main_panel.html deleted file mode 100644 index 0e8580c..0000000 --- a/events/templates/_types/tickets/_main_panel.html +++ /dev/null @@ -1,65 +0,0 @@ -
    -

    My Tickets

    - - {% if tickets %} - - {% else %} -
    - -

    No tickets yet

    -

    Tickets will appear here after you purchase them.

    -
    - {% endif %} -
    diff --git a/events/templates/_types/tickets/detail.html b/events/templates/_types/tickets/detail.html deleted file mode 100644 index 31c9319..0000000 --- a/events/templates/_types/tickets/detail.html +++ /dev/null @@ -1,8 +0,0 @@ -{% extends '_types/root/index.html' %} - -{% block _main_mobile_menu %} -{% endblock %} - -{% block content %} -{% include '_types/tickets/_detail_panel.html' %} -{% endblock %} diff --git a/events/templates/_types/tickets/index.html b/events/templates/_types/tickets/index.html deleted file mode 100644 index 908be8b..0000000 --- a/events/templates/_types/tickets/index.html +++ /dev/null @@ -1,8 +0,0 @@ -{% extends '_types/root/index.html' %} - -{% block _main_mobile_menu %} -{% endblock %} - -{% block content %} -{% include '_types/tickets/_main_panel.html' %} -{% endblock %} diff --git a/events/templates/macros/date.html b/events/templates/macros/date.html deleted file mode 100644 index 5954f28..0000000 --- a/events/templates/macros/date.html +++ /dev/null @@ -1,7 +0,0 @@ -{% macro dt(d) -%} -{{ d.astimezone().strftime('%-d %b %Y, %H:%M') if d.tzinfo else d.strftime('%-d %b %Y, %H:%M') }} -{%- endmacro %} - -{% macro t(d) -%} -{{ d.astimezone().strftime('%H:%M') if d.tzinfo else d.strftime('%H:%M') }} -{%- endmacro %} diff --git a/federation/templates/_types/federation/index.html b/federation/templates/_types/federation/index.html deleted file mode 100644 index e2caacb..0000000 --- a/federation/templates/_types/federation/index.html +++ /dev/null @@ -1,3 +0,0 @@ -{% extends '_types/root/_index.html' %} -{% block meta %}{% endblock %} -{% block content %}{% endblock %} diff --git a/federation/templates/auth/check_email.html b/federation/templates/auth/check_email.html deleted file mode 100644 index 5eb1b61..0000000 --- a/federation/templates/auth/check_email.html +++ /dev/null @@ -1,19 +0,0 @@ -{% extends "_types/root/_index.html" %} -{% block meta %}{% endblock %} -{% block title %}Check your email — Rose Ash{% endblock %} -{% block content %} -
    -

    Check your email

    -

    - We sent a sign-in link to {{ email }}. -

    -

    - Click the link in the email to sign in. The link expires in 15 minutes. -

    - {% if email_error %} -
    - {{ email_error }} -
    - {% endif %} -
    -{% endblock %} diff --git a/federation/templates/auth/login.html b/federation/templates/auth/login.html deleted file mode 100644 index 79031e5..0000000 --- a/federation/templates/auth/login.html +++ /dev/null @@ -1,36 +0,0 @@ -{% extends "_types/root/_index.html" %} -{% block meta %}{% endblock %} -{% block title %}Login — Rose Ash{% endblock %} -{% block content %} -
    -

    Sign in

    - - {% if error %} -
    - {{ error }} -
    - {% endif %} - -
    - -
    - - -
    - -
    -
    -{% endblock %} diff --git a/federation/templates/federation/_actor_list_items.html b/federation/templates/federation/_actor_list_items.html deleted file mode 100644 index 2233789..0000000 --- a/federation/templates/federation/_actor_list_items.html +++ /dev/null @@ -1,63 +0,0 @@ -{% for a in actors %} -
    - {% if a.icon_url %} - - {% else %} -
    - {{ (a.display_name or a.preferred_username)[0] | upper }} -
    - {% endif %} - -
    - {% if list_type == "following" and a.id %} - - {{ a.display_name or a.preferred_username }} - - {% else %} - - {{ a.display_name or a.preferred_username }} - - {% endif %} -
    @{{ a.preferred_username }}@{{ a.domain }}
    - {% if a.summary %} -
    {{ a.summary | striptags }}
    - {% endif %} -
    - - {% if actor %} -
    - {% if list_type == "following" or a.actor_url in (followed_urls or []) %} -
    - - - -
    - {% else %} -
    - - - -
    - {% endif %} -
    - {% endif %} -
    -{% endfor %} - -{% if actors | length >= 20 %} -
    -
    -{% endif %} diff --git a/federation/templates/federation/_interaction_buttons.html b/federation/templates/federation/_interaction_buttons.html deleted file mode 100644 index 70ab6f8..0000000 --- a/federation/templates/federation/_interaction_buttons.html +++ /dev/null @@ -1,61 +0,0 @@ -{% set oid = item.object_id if item is defined and item.object_id is defined else item_object_id | default('') %} -{% set ainbox = item.author_inbox if item is defined and item.author_inbox is defined else item_author_inbox | default('') %} -{% set lcount = item.like_count if item is defined and item.like_count is defined else like_count | default(0) %} -{% set bcount = item.boost_count if item is defined and item.boost_count is defined else boost_count | default(0) %} -{% set liked = item.liked_by_me if item is defined and item.liked_by_me is defined else liked_by_me | default(false) %} -{% set boosted = item.boosted_by_me if item is defined and item.boosted_by_me is defined else boosted_by_me | default(false) %} - -
    - {% if liked %} -
    - - - - -
    - {% else %} -
    - - - - -
    - {% endif %} - - {% if boosted %} -
    - - - - -
    - {% else %} -
    - - - - -
    - {% endif %} - - {% if oid %} - Reply - {% endif %} -
    diff --git a/federation/templates/federation/_notification.html b/federation/templates/federation/_notification.html deleted file mode 100644 index 06fcd6e..0000000 --- a/federation/templates/federation/_notification.html +++ /dev/null @@ -1,42 +0,0 @@ -
    -
    - {% if notif.from_actor_icon %} - - {% else %} -
    - {{ notif.from_actor_name[0] | upper if notif.from_actor_name else '?' }} -
    - {% endif %} - -
    -
    - {{ notif.from_actor_name }} - - @{{ notif.from_actor_username }}{% if notif.from_actor_domain %}@{{ notif.from_actor_domain }}{% endif %} - - - {% if notif.notification_type == "follow" %} - followed you{% if notif.app_domain and notif.app_domain != "federation" %} on {{ notif.app_domain }}{% endif %} - {% elif notif.notification_type == "like" %} - liked your post - {% elif notif.notification_type == "boost" %} - boosted your post - {% elif notif.notification_type == "mention" %} - mentioned you - {% elif notif.notification_type == "reply" %} - replied to your post - {% endif %} -
    - - {% if notif.target_content_preview %} -
    - {{ notif.target_content_preview }} -
    - {% endif %} - -
    - {{ notif.created_at.strftime('%b %d, %H:%M') }} -
    -
    -
    -
    diff --git a/federation/templates/federation/_post_card.html b/federation/templates/federation/_post_card.html deleted file mode 100644 index 33102ca..0000000 --- a/federation/templates/federation/_post_card.html +++ /dev/null @@ -1,52 +0,0 @@ -
    - {% if item.boosted_by %} -
    - Boosted by {{ item.boosted_by }} -
    - {% endif %} - -
    - {% if item.actor_icon %} - - {% else %} -
    - {{ item.actor_name[0] | upper if item.actor_name else '?' }} -
    - {% endif %} - -
    -
    - {{ item.actor_name }} - - @{{ item.actor_username }}{% if item.actor_domain %}@{{ item.actor_domain }}{% endif %} - - - {% if item.published %} - {{ item.published.strftime('%b %d, %H:%M') }} - {% endif %} - -
    - - {% if item.summary %} -
    - CW: {{ item.summary }} -
    {{ item.content | safe }}
    -
    - {% else %} -
    {{ item.content | safe }}
    - {% endif %} - - {% if item.url and item.post_type == "remote" %} - - original - - {% endif %} - - {% if actor %} -
    - {% include "federation/_interaction_buttons.html" with context %} -
    - {% endif %} -
    -
    -
    diff --git a/federation/templates/federation/_search_results.html b/federation/templates/federation/_search_results.html deleted file mode 100644 index abc7d2e..0000000 --- a/federation/templates/federation/_search_results.html +++ /dev/null @@ -1,61 +0,0 @@ -{% for a in actors %} -
    - {% if a.icon_url %} - - {% else %} -
    - {{ (a.display_name or a.preferred_username)[0] | upper }} -
    - {% endif %} - -
    - {% if a.id %} - - {{ a.display_name or a.preferred_username }} - - {% else %} - {{ a.display_name or a.preferred_username }} - {% endif %} -
    @{{ a.preferred_username }}@{{ a.domain }}
    - {% if a.summary %} -
    {{ a.summary | striptags }}
    - {% endif %} -
    - - {% if actor %} -
    - {% if a.actor_url in (followed_urls or []) %} -
    - - - -
    - {% else %} -
    - - - -
    - {% endif %} -
    - {% endif %} -
    -{% endfor %} - -{% if actors | length >= 20 %} -
    -
    -{% endif %} diff --git a/federation/templates/federation/_timeline_items.html b/federation/templates/federation/_timeline_items.html deleted file mode 100644 index d22eaa0..0000000 --- a/federation/templates/federation/_timeline_items.html +++ /dev/null @@ -1,18 +0,0 @@ -{% for item in items %} - {% include "federation/_post_card.html" %} -{% endfor %} - -{% if items %} - {% set last = items[-1] %} - {% if timeline_type == "actor" %} -
    -
    - {% else %} -
    -
    - {% endif %} -{% endif %} diff --git a/federation/templates/federation/account.html b/federation/templates/federation/account.html deleted file mode 100644 index ef7f7d6..0000000 --- a/federation/templates/federation/account.html +++ /dev/null @@ -1,27 +0,0 @@ -{% extends "_types/social/index.html" %} -{% block title %}Account — Rose Ash{% endblock %} -{% block social_content %} -
    -

    Account

    - -
    -

    Email: {{ g.user.email }}

    - {% if actor %} -

    Username: @{{ actor.preferred_username }}

    -

    - - View profile - -

    - {% else %} -

    - - Choose a username to start publishing - -

    - {% endif %} -
    -
    -{% endblock %} diff --git a/federation/templates/federation/actor_card.html b/federation/templates/federation/actor_card.html deleted file mode 100644 index cd97c70..0000000 --- a/federation/templates/federation/actor_card.html +++ /dev/null @@ -1,45 +0,0 @@ -
    -
    - {% if result.icon_url %} - - {% else %} -
    - {{ result.preferred_username[0] | upper }} -
    - {% endif %} - -
    -
    - {{ result.display_name or result.preferred_username }} - @{{ result.preferred_username }}@{{ result.domain }} -
    - - {% if result.summary %} -
    - {{ result.summary | safe }} -
    - {% endif %} - - {% if actor %} -
    -
    - - - -
    -
    - - - -
    -
    - {% endif %} -
    -
    -
    diff --git a/federation/templates/federation/actor_timeline.html b/federation/templates/federation/actor_timeline.html deleted file mode 100644 index 0c69f8a..0000000 --- a/federation/templates/federation/actor_timeline.html +++ /dev/null @@ -1,53 +0,0 @@ -{% extends "_types/social/index.html" %} - -{% block title %}{{ remote_actor.display_name or remote_actor.preferred_username }} — Rose Ash{% endblock %} - -{% block social_content %} -
    -
    - {% if remote_actor.icon_url %} - - {% else %} -
    - {{ (remote_actor.display_name or remote_actor.preferred_username)[0] | upper }} -
    - {% endif %} - -
    -

    {{ remote_actor.display_name or remote_actor.preferred_username }}

    -
    @{{ remote_actor.preferred_username }}@{{ remote_actor.domain }}
    - {% if remote_actor.summary %} -
    {{ remote_actor.summary | safe }}
    - {% endif %} -
    - - {% if actor %} -
    - {% if is_following %} -
    - - - -
    - {% else %} -
    - - - -
    - {% endif %} -
    - {% endif %} -
    -
    - -
    - {% set timeline_type = "actor" %} - {% set actor_id = remote_actor.id %} - {% include "federation/_timeline_items.html" %} -
    -{% endblock %} diff --git a/federation/templates/federation/choose_username.html b/federation/templates/federation/choose_username.html deleted file mode 100644 index e2b88c4..0000000 --- a/federation/templates/federation/choose_username.html +++ /dev/null @@ -1,54 +0,0 @@ -{% extends "_types/social/index.html" %} -{% block title %}Choose Username — Rose Ash{% endblock %} -{% block social_content %} -
    -

    Choose your username

    -

    - This will be your identity on the fediverse: - @username@{{ config.get('ap_domain', 'rose-ash.com') }} -

    - - {% if error %} -
    - {{ error }} -
    - {% endif %} - -
    - -
    - -
    - @ - -
    -
    -

    - 3-32 characters. Lowercase letters, numbers, underscores. Must start with a letter. -

    -
    - - -
    -
    -{% endblock %} diff --git a/federation/templates/federation/compose.html b/federation/templates/federation/compose.html deleted file mode 100644 index d82a031..0000000 --- a/federation/templates/federation/compose.html +++ /dev/null @@ -1,34 +0,0 @@ -{% extends "_types/social/index.html" %} - -{% block title %}Compose — Rose Ash{% endblock %} - -{% block social_content %} -

    Compose

    - -
    - - {% if reply_to %} - -
    - Replying to {{ reply_to }} -
    - {% endif %} - - - -
    - - - -
    -
    -{% endblock %} diff --git a/federation/templates/federation/followers.html b/federation/templates/federation/followers.html deleted file mode 100644 index 07eb862..0000000 --- a/federation/templates/federation/followers.html +++ /dev/null @@ -1,12 +0,0 @@ -{% extends "_types/social/index.html" %} - -{% block title %}Followers — Rose Ash{% endblock %} - -{% block social_content %} -

    Followers ({{ total }})

    - -
    - {% set list_type = "followers" %} - {% include "federation/_actor_list_items.html" %} -
    -{% endblock %} diff --git a/federation/templates/federation/following.html b/federation/templates/federation/following.html deleted file mode 100644 index ca900e4..0000000 --- a/federation/templates/federation/following.html +++ /dev/null @@ -1,13 +0,0 @@ -{% extends "_types/social/index.html" %} - -{% block title %}Following — Rose Ash{% endblock %} - -{% block social_content %} -

    Following ({{ total }})

    - -
    - {% set list_type = "following" %} - {% set followed_urls = [] %} - {% include "federation/_actor_list_items.html" %} -
    -{% endblock %} diff --git a/federation/templates/federation/notifications.html b/federation/templates/federation/notifications.html deleted file mode 100644 index 11eb3f8..0000000 --- a/federation/templates/federation/notifications.html +++ /dev/null @@ -1,17 +0,0 @@ -{% extends "_types/social/index.html" %} - -{% block title %}Notifications — Rose Ash{% endblock %} - -{% block social_content %} -

    Notifications

    - -{% if not notifications %} -

    No notifications yet.

    -{% endif %} - -
    - {% for notif in notifications %} - {% include "federation/_notification.html" %} - {% endfor %} -
    -{% endblock %} diff --git a/federation/templates/federation/search.html b/federation/templates/federation/search.html deleted file mode 100644 index 090dabc..0000000 --- a/federation/templates/federation/search.html +++ /dev/null @@ -1,32 +0,0 @@ -{% extends "_types/social/index.html" %} - -{% block title %}Search — Rose Ash{% endblock %} - -{% block social_content %} -

    Search

    - -
    -
    - - -
    -
    - -{% if query and total %} -

    {{ total }} result{{ 's' if total != 1 }} for {{ query }}

    -{% elif query %} -

    No results found for {{ query }}

    -{% endif %} - -
    - {% include "federation/_search_results.html" %} -
    -{% endblock %} diff --git a/federation/templates/federation/timeline.html b/federation/templates/federation/timeline.html deleted file mode 100644 index 22baa78..0000000 --- a/federation/templates/federation/timeline.html +++ /dev/null @@ -1,19 +0,0 @@ -{% extends "_types/social/index.html" %} - -{% block title %}{{ "Home" if timeline_type == "home" else "Public" }} Timeline — Rose Ash{% endblock %} - -{% block social_content %} -
    -

    {{ "Home" if timeline_type == "home" else "Public" }} Timeline

    - {% if actor %} - - Compose - - {% endif %} -
    - -
    - {% include "federation/_timeline_items.html" %} -
    -{% endblock %} diff --git a/market/templates/_types/all_markets/_card.html b/market/templates/_types/all_markets/_card.html deleted file mode 100644 index 3680e60..0000000 --- a/market/templates/_types/all_markets/_card.html +++ /dev/null @@ -1,33 +0,0 @@ -{# Card for a single market in the global listing #} -{% set pi = page_info.get(market.container_id, {}) %} -{% set page_slug = pi.get('slug', '') %} -{% set page_title = pi.get('title') %} -{% if page_slug %} - {% set market_href = market_url('/' ~ page_slug ~ '/' ~ market.slug ~ '/') %} -{% else %} - {% set market_href = '' %} -{% endif %} -
    -
    - {% if market_href %} - -

    {{ market.name }}

    -
    - {% else %} -

    {{ market.name }}

    - {% endif %} - - {% if market.description %} -

    {{ market.description }}

    - {% endif %} -
    - -
    - {% if page_title %} - - {{ page_title }} - - {% endif %} -
    -
    diff --git a/market/templates/_types/all_markets/_cards.html b/market/templates/_types/all_markets/_cards.html deleted file mode 100644 index d6c6302..0000000 --- a/market/templates/_types/all_markets/_cards.html +++ /dev/null @@ -1,18 +0,0 @@ -{% for market in markets %} - {% include "_types/all_markets/_card.html" %} -{% endfor %} -{% if has_more %} - {# Infinite scroll sentinel #} - {% set next_url = url_for('all_markets.markets_fragment', page=page + 1)|host %} - -{% endif %} diff --git a/market/templates/_types/all_markets/_main_panel.html b/market/templates/_types/all_markets/_main_panel.html deleted file mode 100644 index 3599065..0000000 --- a/market/templates/_types/all_markets/_main_panel.html +++ /dev/null @@ -1,12 +0,0 @@ -{# Markets grid #} -{% if markets %} -
    - {% include "_types/all_markets/_cards.html" %} -
    -{% else %} -
    - -

    No markets available

    -
    -{% endif %} -
    diff --git a/market/templates/_types/all_markets/index.html b/market/templates/_types/all_markets/index.html deleted file mode 100644 index 2e7990d..0000000 --- a/market/templates/_types/all_markets/index.html +++ /dev/null @@ -1,7 +0,0 @@ -{% extends '_types/root/_index.html' %} - -{% block meta %}{% endblock %} - -{% block content %} - {% include '_types/all_markets/_main_panel.html' %} -{% endblock %} diff --git a/market/templates/_types/browse/_admin.html b/market/templates/_types/browse/_admin.html deleted file mode 100644 index e3cf3a2..0000000 --- a/market/templates/_types/browse/_admin.html +++ /dev/null @@ -1,7 +0,0 @@ -{% import "macros/links.html" as links %} -{% if g.rights.admin %} - {% from 'macros/admin_nav.html' import admin_nav_item %} - {{admin_nav_item( - url_for('market.browse.product.admin', product_slug=slug) - )}} -{% endif %} \ No newline at end of file diff --git a/market/templates/_types/browse/_main_panel.html b/market/templates/_types/browse/_main_panel.html deleted file mode 100644 index 8640ce8..0000000 --- a/market/templates/_types/browse/_main_panel.html +++ /dev/null @@ -1,5 +0,0 @@ - -
    - {% include "_types/browse/_product_cards.html" %} -
    -
    diff --git a/market/templates/_types/browse/_oob_elements.html b/market/templates/_types/browse/_oob_elements.html deleted file mode 100644 index dac5626..0000000 --- a/market/templates/_types/browse/_oob_elements.html +++ /dev/null @@ -1,37 +0,0 @@ -{% extends 'oob_elements.html' %} - -{# OOB elements for HTMX navigation - all elements that need updating #} - -{# Import shared OOB macros #} -{% from '_types/root/header/_oob.html' import root_header_start, root_header_end with context %} -{% from '_types/root/_oob_menu.html' import mobile_menu with context %} - -{# Header with app title - includes cart-mini, navigation, and market-specific header #} - -{% block oobs %} - - {% from '_types/root/_n/macros.html' import oob_header with context %} - {{oob_header('post-header-child', 'market-header-child', '_types/market/header/_header.html')}} - - {% from '_types/post/header/_header.html' import header_row with context %} - {{ header_row(oob=True) }} -{% endblock %} - - -{% block mobile_menu %} - {% include '_types/market/mobile/_nav_panel.html' %} -{% endblock %} - -{# Filter container with child summary - from browse/index.html child_summary block #} -{% block filter %} - {% include "_types/browse/mobile/_filter/summary.html" %} -{% endblock %} - -{% block aside %} - {% include "_types/browse/desktop/menu.html" %} -{% endblock %} - - -{% block content %} - {% include "_types/browse/_main_panel.html" %} -{% endblock %} diff --git a/market/templates/_types/browse/_product_card.html b/market/templates/_types/browse/_product_card.html deleted file mode 100644 index 7e7aa13..0000000 --- a/market/templates/_types/browse/_product_card.html +++ /dev/null @@ -1,104 +0,0 @@ -{% import 'macros/stickers.html' as stick %} -{% import '_types/product/prices.html' as prices %} -{% set prices_ns = namespace() %} -{{ prices.set_prices(p, prices_ns) }} -{% set item_href = url_for('market.browse.product.product_detail', product_slug=p.slug)|host %} -
    - {# ❤️ like button overlay - OUTSIDE the link #} - {% if g.user %} -
    - {% set slug = p.slug %} - {% set liked = p.is_liked or False %} - {% include "_types/browse/like/button.html" %} -
    - {% endif %} - - - - {# Make this relative so we can absolutely position children #} -
    - {% if p.image %} -
    -
    - no image - - {% for l in p.labels %} - - {% endfor %} -
    - -
    - {{ p.brand }} -
    -
    - - {% else %} -
    -
    No image
    -
      - {% for l in p.labels %} -
    • {{ l }}
    • - {% endfor %} -
    -
    - {{ p.brand }} -
    -
    - {% endif %} - -
    - {#
    {{ prices.rrp(prices_ns) }}
    #} - {{ prices.card_price(p)}} - - {% import '_types/product/_cart.html' as _cart %} -
    -
    - {{ _cart.add(p.slug, cart)}} -
    - - - -
    - {% for s in p.stickers %} - {{ stick.sticker( - asset_url('stickers/' + s + '.svg'), - s, - True, - size=24, - found=s in selected_stickers - ) }} - {% endfor %} -
    -
    - {{ p.title | highlight(search) }} -
    -
    -
    \ No newline at end of file diff --git a/market/templates/_types/browse/_product_cards.html b/market/templates/_types/browse/_product_cards.html deleted file mode 100644 index 7d2f8c5..0000000 --- a/market/templates/_types/browse/_product_cards.html +++ /dev/null @@ -1,38 +0,0 @@ -{% for p in products %} - {% include "_types/browse/_product_card.html" %} -{% endfor %} -{% if page < total_pages|int %} - - - - - -{% else %} -
    End of results
    -{% endif %} - diff --git a/market/templates/_types/browse/desktop/_category_selector.html b/market/templates/_types/browse/desktop/_category_selector.html deleted file mode 100644 index 1bb1fe6..0000000 --- a/market/templates/_types/browse/desktop/_category_selector.html +++ /dev/null @@ -1,40 +0,0 @@ -{# Categories #} - diff --git a/market/templates/_types/browse/desktop/_filter/brand.html b/market/templates/_types/browse/desktop/_filter/brand.html deleted file mode 100644 index 0088586..0000000 --- a/market/templates/_types/browse/desktop/_filter/brand.html +++ /dev/null @@ -1,40 +0,0 @@ -{# Brand filter (desktop, single-select) #} - -{# Brands #} - diff --git a/market/templates/_types/browse/desktop/_filter/labels.html b/market/templates/_types/browse/desktop/_filter/labels.html deleted file mode 100644 index 3ab350c..0000000 --- a/market/templates/_types/browse/desktop/_filter/labels.html +++ /dev/null @@ -1,44 +0,0 @@ - - - -{% import 'macros/stickers.html' as stick %} - - diff --git a/market/templates/_types/browse/desktop/_filter/like.html b/market/templates/_types/browse/desktop/_filter/like.html deleted file mode 100644 index 5b6f7a3..0000000 --- a/market/templates/_types/browse/desktop/_filter/like.html +++ /dev/null @@ -1,38 +0,0 @@ -{% import 'macros/stickers.html' as stick %} - {% set qs = {"liked": None if liked else True, "page": None}|qs %} - {% set href = (current_local_href ~ qs)|host %} - - {% if liked %} - - {% else %} - - {% endif %} - - {{ liked_count }} - - diff --git a/market/templates/_types/browse/desktop/_filter/search.html b/market/templates/_types/browse/desktop/_filter/search.html deleted file mode 100644 index 69d7817..0000000 --- a/market/templates/_types/browse/desktop/_filter/search.html +++ /dev/null @@ -1,44 +0,0 @@ - -{% macro search(current_local_href,search, search_count, hx_select) -%} - - -
    - - -
    - {% if search %} - {{search_count}} - {% endif %} - {{zap_filter}} -
    -
    -{% endmacro %} \ No newline at end of file diff --git a/market/templates/_types/browse/desktop/_filter/sort.html b/market/templates/_types/browse/desktop/_filter/sort.html deleted file mode 100644 index f92807e..0000000 --- a/market/templates/_types/browse/desktop/_filter/sort.html +++ /dev/null @@ -1,34 +0,0 @@ - - - - -{% import 'macros/stickers.html' as stick %} -{% set sort_val = sort|default('az', true) %} - - diff --git a/market/templates/_types/browse/desktop/_filter/stickers.html b/market/templates/_types/browse/desktop/_filter/stickers.html deleted file mode 100644 index 5d600e1..0000000 --- a/market/templates/_types/browse/desktop/_filter/stickers.html +++ /dev/null @@ -1,46 +0,0 @@ - - - - -{% import 'macros/stickers.html' as stick %} - - diff --git a/market/templates/_types/browse/desktop/menu.html b/market/templates/_types/browse/desktop/menu.html deleted file mode 100644 index 893cf2d..0000000 --- a/market/templates/_types/browse/desktop/menu.html +++ /dev/null @@ -1,37 +0,0 @@ - {% import '_types/browse/desktop/_filter/search.html' as s %} - {{ s.search(current_local_href, search, search_count, hx_select) }} - -
    -
    -
    {{ category_label }}
    -
    - {% include "_types/browse/desktop/_filter/sort.html" %} - - - {% if stickers %} - {% include "_types/browse/desktop/_filter/stickers.html" %} - {% endif %} - - - {% if subs_local and top_local_href %} - {% include "_types/browse/desktop/_category_selector.html" %} - {% endif %} - -
    - -
    - - {% include "_types/browse/desktop/_filter/brand.html" %} - -
    diff --git a/market/templates/_types/browse/index.html b/market/templates/_types/browse/index.html deleted file mode 100644 index 015e6b3..0000000 --- a/market/templates/_types/browse/index.html +++ /dev/null @@ -1,13 +0,0 @@ -{% extends '_types/market/index.html' %} - -{% block filter %} - {% include "_types/browse/mobile/_filter/summary.html" %} -{% endblock %} - -{% block aside %} - {% include "_types/browse/desktop/menu.html" %} -{% endblock %} - -{% block content %} - {% include "_types/browse/_main_panel.html" %} -{% endblock %} diff --git a/market/templates/_types/browse/like/button.html b/market/templates/_types/browse/like/button.html deleted file mode 100644 index c409bc3..0000000 --- a/market/templates/_types/browse/like/button.html +++ /dev/null @@ -1,20 +0,0 @@ - diff --git a/market/templates/_types/browse/mobile/_filter/brand_ul.html b/market/templates/_types/browse/mobile/_filter/brand_ul.html deleted file mode 100644 index ccfcef1..0000000 --- a/market/templates/_types/browse/mobile/_filter/brand_ul.html +++ /dev/null @@ -1,40 +0,0 @@ - \ No newline at end of file diff --git a/market/templates/_types/browse/mobile/_filter/index.html b/market/templates/_types/browse/mobile/_filter/index.html deleted file mode 100644 index 76c5817..0000000 --- a/market/templates/_types/browse/mobile/_filter/index.html +++ /dev/null @@ -1,30 +0,0 @@ - - {% include "_types/browse/mobile/_filter/sort_ul.html" %} - {% if search or selected_labels|length or selected_stickers|length or selected_brands|length %} - {% set href = (current_local_href ~ {"clear_filters": True}|qs)|host %} -
    - - - clear filters - - -
    - {% endif %} -
    - {% include "_types/browse/mobile/_filter/like.html" %} - {% include "_types/browse/mobile/_filter/labels.html" %} -
    - {% include "_types/browse/mobile/_filter/stickers.html" %} - {% include "_types/browse/mobile/_filter/brand_ul.html" %} - diff --git a/market/templates/_types/browse/mobile/_filter/labels.html b/market/templates/_types/browse/mobile/_filter/labels.html deleted file mode 100644 index bac6f4f..0000000 --- a/market/templates/_types/browse/mobile/_filter/labels.html +++ /dev/null @@ -1,47 +0,0 @@ -{% import 'macros/stickers.html' as stick %} - - -{# Optional: hide horizontal scrollbar on mobile while keeping scrollable #} - diff --git a/market/templates/_types/browse/mobile/_filter/like.html b/market/templates/_types/browse/mobile/_filter/like.html deleted file mode 100644 index 1d45fdf..0000000 --- a/market/templates/_types/browse/mobile/_filter/like.html +++ /dev/null @@ -1,40 +0,0 @@ -{% import 'macros/stickers.html' as stick %} - \ No newline at end of file diff --git a/market/templates/_types/browse/mobile/_filter/search.html b/market/templates/_types/browse/mobile/_filter/search.html deleted file mode 100644 index 43a2f30..0000000 --- a/market/templates/_types/browse/mobile/_filter/search.html +++ /dev/null @@ -1,40 +0,0 @@ -{% macro search(current_local_href, search, search_count, hx_select) -%} - -
    - - -
    - {% if search %} - {{search_count}} - {% endif %} -
    -
    -{% endmacro %} \ No newline at end of file diff --git a/market/templates/_types/browse/mobile/_filter/sort_ul.html b/market/templates/_types/browse/mobile/_filter/sort_ul.html deleted file mode 100644 index 5b3b2f4..0000000 --- a/market/templates/_types/browse/mobile/_filter/sort_ul.html +++ /dev/null @@ -1,33 +0,0 @@ - - - -{% import 'macros/stickers.html' as stick %} - - - \ No newline at end of file diff --git a/market/templates/_types/browse/mobile/_filter/stickers.html b/market/templates/_types/browse/mobile/_filter/stickers.html deleted file mode 100644 index 9f3070c..0000000 --- a/market/templates/_types/browse/mobile/_filter/stickers.html +++ /dev/null @@ -1,50 +0,0 @@ -{% import 'macros/stickers.html' as stick %} - - - -{# Optional: hide horizontal scrollbar on mobile while keeping scrollable #} - diff --git a/market/templates/_types/browse/mobile/_filter/summary.html b/market/templates/_types/browse/mobile/_filter/summary.html deleted file mode 100644 index 07a86a1..0000000 --- a/market/templates/_types/browse/mobile/_filter/summary.html +++ /dev/null @@ -1,120 +0,0 @@ -{% import 'macros/stickers.html' as stick %} -{% import 'macros/layout.html' as layout %} - - - - -{% call layout.details('/filter', 'md:hidden') %} - {% call layout.filter_summary("filter-summary-mobile", current_local_href, search, search_count, hx_select) %} -
    - - -
    - {% if sort %} -
      - - {% for k,l,i in sort_options %} - {% if k == sort %} - {% set key = k %} - {% set label = l %} - {% set icon = i %} -
    • - {{ stick.sticker(asset_url(icon), label, True)}} -
    • - {% endif %} - {% endfor %} -
    - {% endif %} - {% if liked %} -
    - - {% if liked_count is not none %} -
    - {{ liked_count }} -
    - {% endif %} -
    - {% endif %} - {% if selected_labels and selected_labels|length %} -
      - {% for st in selected_labels %} - {% for s in labels %} - {% if st == s.name %} -
    • - {{ stick.sticker(asset_url('nav-labels/' + s.name + '.svg'), s.name, True)}} - {% if s.count is not none %} -
      - {{ s.count }} -
      - {% endif %} -
    • - {% endif %} - {% endfor %} - {% endfor %} -
    - {% endif %} - {% if selected_stickers and selected_stickers|length %} -
      - {% for st in selected_stickers %} - {% for s in stickers %} - {% if st == s.name %} -
    • - - {{ stick.sticker(asset_url('stickers/' + s.name + '.svg'), s.name, True)}} - {% if s.count is not none %} - - {{ s.count }} - - {% endif %} -
    • - {% endif %} - {% endfor %} - {% endfor %} -
    - {% endif %} -
    - - {% if selected_brands and selected_brands|length %} - - {% endif %} -
    - {% endcall %} -
    - {% include "_types/browse/mobile/_filter/index.html" %} -
    -{% endcall %} diff --git a/market/templates/_types/market/_admin.html b/market/templates/_types/market/_admin.html deleted file mode 100644 index 0b09927..0000000 --- a/market/templates/_types/market/_admin.html +++ /dev/null @@ -1,7 +0,0 @@ -{% import "macros/links.html" as links %} -{% if g.rights.admin %} - {% from 'macros/admin_nav.html' import admin_nav_item %} - {{admin_nav_item( - url_for('market.admin.admin') - )}} -{% endif %} \ No newline at end of file diff --git a/market/templates/_types/market/_main_panel.html b/market/templates/_types/market/_main_panel.html deleted file mode 100644 index 87bb965..0000000 --- a/market/templates/_types/market/_main_panel.html +++ /dev/null @@ -1,23 +0,0 @@ -{# Main panel fragment for HTMX navigation - market landing page #} -
    - {% if post.custom_excerpt %} -
    - {{post.custom_excerpt|safe}} -
    - {% endif %} - {% if post.feature_image %} -
    - -
    - {% endif %} -
    - {% if post.html %} - {{post.html|safe}} - {% endif %} -
    -
    -
    diff --git a/market/templates/_types/market/_oob_elements.html b/market/templates/_types/market/_oob_elements.html deleted file mode 100644 index 075c166..0000000 --- a/market/templates/_types/market/_oob_elements.html +++ /dev/null @@ -1,30 +0,0 @@ -{% extends 'oob_elements.html' %} - -{# OOB elements for HTMX navigation - all elements that need updating #} - -{# Import shared OOB macros #} -{% from '_types/root/header/_oob.html' import root_header_start, root_header_end with context %} -{% from '_types/root/_oob_menu.html' import mobile_menu with context %} - -{# Header with app title - includes cart-mini, navigation, and market-specific header #} - -{% block oobs %} - - {% from '_types/root/_n/macros.html' import oob_header with context %} - {{oob_header('post-header-child', 'market-header-child', '_types/market/header/_header.html')}} - - {% from '_types/post/header/_header.html' import header_row with context %} - {{ header_row(oob=True) }} -{% endblock %} - - -{% block mobile_menu %} - {% include '_types/market/mobile/_nav_panel.html' %} -{% endblock %} - - -{% block content %} - {% include "_types/market/_main_panel.html" %} -{% endblock %} - - diff --git a/market/templates/_types/market/_title.html b/market/templates/_types/market/_title.html deleted file mode 100644 index 6e8024b..0000000 --- a/market/templates/_types/market/_title.html +++ /dev/null @@ -1,17 +0,0 @@ -
    -
    - - {{ market_title }} -
    -
    -
    - {{top_slug or ''}} -
    - {% if sub_slug %} -
    - {{sub_slug}} -
    - {% endif %} -
    -
    \ No newline at end of file diff --git a/market/templates/_types/market/admin/_main_panel.html b/market/templates/_types/market/admin/_main_panel.html deleted file mode 100644 index a354325..0000000 --- a/market/templates/_types/market/admin/_main_panel.html +++ /dev/null @@ -1 +0,0 @@ -market admin \ No newline at end of file diff --git a/market/templates/_types/market/admin/_nav.html b/market/templates/_types/market/admin/_nav.html deleted file mode 100644 index f5c504d..0000000 --- a/market/templates/_types/market/admin/_nav.html +++ /dev/null @@ -1,2 +0,0 @@ -{% from 'macros/admin_nav.html' import placeholder_nav %} -{{ placeholder_nav() }} diff --git a/market/templates/_types/market/admin/_oob_elements.html b/market/templates/_types/market/admin/_oob_elements.html deleted file mode 100644 index 9b306fd..0000000 --- a/market/templates/_types/market/admin/_oob_elements.html +++ /dev/null @@ -1,29 +0,0 @@ -{% extends 'oob_elements.html' %} - -{# OOB elements for HTMX navigation - all elements that need updating #} - -{# Import shared OOB macros #} -{% from '_types/root/_oob_menu.html' import mobile_menu with context %} - -{# Header with app title - includes cart-mini, navigation, and market-specific header #} - -{% block oobs %} - - {% from '_types/root/_n/macros.html' import oob_header with context %} - {{oob_header('market-header-child', 'market-admin-header-child', '_types/market/admin/header/_header.html')}} - - {% from '_types/market/header/_header.html' import header_row with context %} - {{ header_row(oob=True) }} -{% endblock %} - - -{% block mobile_menu %} - {% include '_types/market/admin/_nav.html' %} -{% endblock %} - - -{% block content %} - {% include "_types/market/admin/_main_panel.html" %} -{% endblock %} - - diff --git a/market/templates/_types/market/admin/header/_header.html b/market/templates/_types/market/admin/header/_header.html deleted file mode 100644 index 950eefc..0000000 --- a/market/templates/_types/market/admin/header/_header.html +++ /dev/null @@ -1,11 +0,0 @@ -{% import 'macros/links.html' as links %} -{% macro header_row(oob=False) %} - {% call links.menu_row(id='market-admin-row', oob=oob) %} - {% call links.link(url_for('market.admin.admin'), hx_select_search) %} - {{ links.admin() }} - {% endcall %} - {% call links.desktop_nav() %} - {% include '_types/market/admin/_nav.html' %} - {% endcall %} - {% endcall %} -{% endmacro %} \ No newline at end of file diff --git a/market/templates/_types/market/admin/index.html b/market/templates/_types/market/admin/index.html deleted file mode 100644 index 4798c46..0000000 --- a/market/templates/_types/market/admin/index.html +++ /dev/null @@ -1,19 +0,0 @@ -{% extends '_types/market/index.html' %} - - -{% block market_header_child %} - {% from '_types/root/_n/macros.html' import index_row with context %} - {% call index_row('market-admin-header-child', '_types/market/admin/header/_header.html') %} - {% block market_admin_header_child %} - {% endblock %} - {% endcall %} -{% endblock %} - -{% block _main_mobile_menu %} - {% include '_types/market/admin/_nav.html' %} -{% endblock %} - - -{% block content %} - {% include '_types/market/admin/_main_panel.html' %} -{% endblock %} diff --git a/market/templates/_types/market/desktop/_nav.html b/market/templates/_types/market/desktop/_nav.html deleted file mode 100644 index 7f9d8e6..0000000 --- a/market/templates/_types/market/desktop/_nav.html +++ /dev/null @@ -1,38 +0,0 @@ - - diff --git a/market/templates/_types/market/header/_header.html b/market/templates/_types/market/header/_header.html deleted file mode 100644 index 2d92286..0000000 --- a/market/templates/_types/market/header/_header.html +++ /dev/null @@ -1,11 +0,0 @@ -{% import 'macros/links.html' as links %} -{% macro header_row(oob=False) %} - {% call links.menu_row(id='market-row', oob=oob) %} - {% call links.link(url_for('market.browse.home'), hx_select_search ) %} - {% include '_types/market/_title.html' %} - {% endcall %} - {% call links.desktop_nav() %} - {% include '_types/market/desktop/_nav.html' %} - {% endcall %} - {% endcall %} -{% endmacro %} \ No newline at end of file diff --git a/market/templates/_types/market/index.html b/market/templates/_types/market/index.html deleted file mode 100644 index 4da7f68..0000000 --- a/market/templates/_types/market/index.html +++ /dev/null @@ -1,27 +0,0 @@ -{% extends '_types/root/_index.html' %} - - -{% block root_header_child %} - {% from '_types/root/_n/macros.html' import index_row with context %} - {% call index_row('post-header-child', '_types/post/header/_header.html') %} - {% call index_row('market-header-child', '_types/market/header/_header.html') %} - {% block market_header_child %} - {% endblock %} - {% endcall %} - {% endcall %} -{% endblock %} - - -{% block _main_mobile_menu %} - {% include '_types/market/mobile/_nav_panel.html' %} -{% endblock %} - - - -{% block aside %} -{# No aside on landing page #} -{% endblock %} - -{% block content %} - {% include "_types/market/_main_panel.html" %} -{% endblock %} diff --git a/market/templates/_types/market/markets_listing.html b/market/templates/_types/market/markets_listing.html deleted file mode 100644 index ab8d2b0..0000000 --- a/market/templates/_types/market/markets_listing.html +++ /dev/null @@ -1,23 +0,0 @@ -{% extends '_types/root/_index.html' %} - -{% block content %} -
    -

    Markets

    - - {% if markets %} - - {% else %} -

    No markets available.

    - {% endif %} -
    -{% endblock %} diff --git a/market/templates/_types/market/mobile/_nav_panel.html b/market/templates/_types/market/mobile/_nav_panel.html deleted file mode 100644 index 2753f0a..0000000 --- a/market/templates/_types/market/mobile/_nav_panel.html +++ /dev/null @@ -1,110 +0,0 @@ -{% from 'macros/glyphs.html' import opener %} -
    -
    - {% set all_href = (url_for('market.browse.browse_all') ~ qs)|host %} - {% set all_active = (category_label == 'All Products') %} - -
    - All -
    -
    - {% for cat, data in categories.items() %} -
    - - - {% set href = (url_for('market.browse.browse_top', top_slug=data.slug) ~ qs)|host %} - - -
    {{ cat }}
    -
    {{ data.count }}
    -
    - {{ opener('cat')}} - -
    - -
    - {% if data.subs %} - -
    - -
    - {% for sub in data.subs %} - {% set href = (url_for('market.browse.browse_sub', top_slug=data.slug, sub_slug=sub.slug) ~qs)|host%} - {% if top_slug==(data.slug | lower) and sub_slug == sub.slug %} - -
    {{ sub.html_label or sub.name }}
    -
    {{ sub.count }}
    -
    - {% endif %} - {% endfor %} - {% for sub in data.subs %} - {% if not (top_slug==(data.slug | lower) and sub_slug == sub.slug) %} - {% set href = (url_for('market.browse.browse_sub', top_slug=data.slug, sub_slug=sub.slug) ~ qs)|host%} - -
    {{ sub.name }}
    -
    {{ sub.count }}
    -
    - {% endif %} - {% endfor %} -
    -
    - {% else %} - {% set href = (url_for('market.browse.browse_top', top_slug=data.slug) ~ qs)|host%} - View all - {% endif %} -
    -
    - {% endfor %} - {% include '_types/market/_admin.html' %} -
    -
    diff --git a/market/templates/_types/market/mobile/menu.html b/market/templates/_types/market/mobile/menu.html deleted file mode 100644 index 145b551..0000000 --- a/market/templates/_types/market/mobile/menu.html +++ /dev/null @@ -1,6 +0,0 @@ -{% extends 'mobile/menu.html' %} -{% block menu %} - {% block mobile_menu %} - {% endblock %} - {% include '_types/market/mobile/_nav_panel.html' %} -{% endblock %} diff --git a/market/templates/_types/page_markets/_card.html b/market/templates/_types/page_markets/_card.html deleted file mode 100644 index 19e31af..0000000 --- a/market/templates/_types/page_markets/_card.html +++ /dev/null @@ -1,13 +0,0 @@ -{# Card for a single market in a page-scoped listing #} -{% set market_href = market_url('/' ~ post.slug ~ '/' ~ market.slug ~ '/') %} -
    -
    - -

    {{ market.name }}

    -
    - - {% if market.description %} -

    {{ market.description }}

    - {% endif %} -
    -
    diff --git a/market/templates/_types/page_markets/_cards.html b/market/templates/_types/page_markets/_cards.html deleted file mode 100644 index 91021e8..0000000 --- a/market/templates/_types/page_markets/_cards.html +++ /dev/null @@ -1,18 +0,0 @@ -{% for market in markets %} - {% include "_types/page_markets/_card.html" %} -{% endfor %} -{% if has_more %} - {# Infinite scroll sentinel #} - {% set next_url = url_for('page_markets.markets_fragment', page=page + 1)|host %} - -{% endif %} diff --git a/market/templates/_types/page_markets/_main_panel.html b/market/templates/_types/page_markets/_main_panel.html deleted file mode 100644 index c01cfb2..0000000 --- a/market/templates/_types/page_markets/_main_panel.html +++ /dev/null @@ -1,12 +0,0 @@ -{# Markets grid for a single page #} -{% if markets %} -
    - {% include "_types/page_markets/_cards.html" %} -
    -{% else %} -
    - -

    No markets for this page

    -
    -{% endif %} -
    diff --git a/market/templates/_types/page_markets/index.html b/market/templates/_types/page_markets/index.html deleted file mode 100644 index 23f99a1..0000000 --- a/market/templates/_types/page_markets/index.html +++ /dev/null @@ -1,15 +0,0 @@ -{% extends '_types/root/_index.html' %} - -{% block meta %}{% endblock %} - -{% block root_header_child %} - {% from '_types/root/_n/macros.html' import index_row with context %} - {% call index_row('post-header-child', '_types/post/header/_header.html') %} - {% block post_header_child %} - {% endblock %} - {% endcall %} -{% endblock %} - -{% block content %} - {% include '_types/page_markets/_main_panel.html' %} -{% endblock %} diff --git a/market/templates/_types/post/_nav.html b/market/templates/_types/post/_nav.html deleted file mode 100644 index f2a7af8..0000000 --- a/market/templates/_types/post/_nav.html +++ /dev/null @@ -1,15 +0,0 @@ -{% import 'macros/links.html' as links %} - {# Container nav from fragments (calendars, markets) #} - {% if container_nav_html %} -
    - {{ container_nav_html | safe }} -
    - {% endif %} - - {# Admin link #} - {% if post and has_access('blog.post.admin.admin') %} - {% call links.link(url_for('blog.post.admin.admin', slug=post.slug), hx_select_search, select_colours, True, aclass=styles.nav_button) %} - - {% endcall %} - {% endif %} diff --git a/market/templates/_types/post/admin/_nav_entries.html b/market/templates/_types/post/admin/_nav_entries.html deleted file mode 100644 index 04732b1..0000000 --- a/market/templates/_types/post/admin/_nav_entries.html +++ /dev/null @@ -1,41 +0,0 @@ - - {# Left scroll arrow - desktop only #} - - - {# Widget-driven nav items container #} -
    -
    - {% for wdata in container_nav_widgets %} - {% with ctx=wdata.ctx %} - {% include wdata.widget.template with context %} - {% endwith %} - {% endfor %} -
    -
    - - - - {# Right scroll arrow - desktop only #} - diff --git a/market/templates/_types/post/header/_header.html b/market/templates/_types/post/header/_header.html deleted file mode 100644 index 6655eb5..0000000 --- a/market/templates/_types/post/header/_header.html +++ /dev/null @@ -1,28 +0,0 @@ -{% import 'macros/links.html' as links %} -{% macro header_row(oob=False) %} - {% call links.menu_row(id='post-row', oob=oob) %} - {% call links.link(blog_url('/' + post.slug + '/'), hx_select_search ) %} - {% if post.feature_image %} - - {% endif %} - - {{ post.title | truncate(160, True, '…') }} - - {% endcall %} - {% call links.desktop_nav() %} - {% if page_cart_count is defined and page_cart_count > 0 %} - - - {{ page_cart_count }} - - {% endif %} - {% include '_types/post/_nav.html' %} - {% endcall %} - {% endcall %} -{% endmacro %} \ No newline at end of file diff --git a/market/templates/_types/product/_added.html b/market/templates/_types/product/_added.html deleted file mode 100644 index 251387a..0000000 --- a/market/templates/_types/product/_added.html +++ /dev/null @@ -1,17 +0,0 @@ -{# HTMX response after add-to-cart: OOB-swap the mini cart + product buttons #} -{% import '_types/product/_cart.html' as _cart %} - -{# 1. Update mini cart directly — handler already has the cart data #} -{% from 'macros/cart_icon.html' import cart_icon %} -{{ cart_icon(count=cart | sum(attribute="quantity")) }} - -{# 2. Update add/remove buttons on the product #} -{{ _cart.add(d.slug, cart, oob='true') }} - -{# 3. Update cart item row if visible #} -{% from '_types/product/_cart.html' import cart_item with context %} -{% if item and item.quantity > 0 %} - {{ cart_item(oob='true') }} -{% elif item %} - {{ cart_item(oob='delete') }} -{% endif %} diff --git a/market/templates/_types/product/_cart.html b/market/templates/_types/product/_cart.html deleted file mode 100644 index 77ff3dc..0000000 --- a/market/templates/_types/product/_cart.html +++ /dev/null @@ -1,250 +0,0 @@ -{% macro add(slug, cart, oob='false') %} -{% set quantity = cart - | selectattr('product.slug', 'equalto', slug) - | sum(attribute='quantity') %} - -
    - - {% if not quantity %} -
    - - - - -
    - - {% else %} -
    - -
    - - - -
    - - - - - - - - - {{ quantity }} - - - - - - -
    - - - -
    -
    - {% endif %} -
    -{% endmacro %} - - - -{% macro cart_item(oob=False) %} - -{% set p = item.product %} -{% set unit_price = p.special_price or p.regular_price %} -
    -
    - {% if p.image %} - {{ p.title }} - {% else %} -
    - No image -
    'market', 'product', p.slug - {% endif %} -
    - - {# Details #} -
    -
    -
    -

    - {% set href=url_for('market.browse.product.product_detail', product_slug=p.slug) %} - - {{ p.title }} - -

    - - {% if p.brand %} -

    - {{ p.brand }} -

    - {% endif %} - - {% if item.is_deleted %} -

    - - This item is no longer available or price has changed -

    - {% endif %} -
    - - {# Unit price #} -
    - {% if unit_price %} - {% set symbol = "£" if p.regular_price_currency == "GBP" else p.regular_price_currency %} -

    - {{ symbol }}{{ "%.2f"|format(unit_price) }} -

    - {% if p.special_price and p.special_price != p.regular_price %} -

    - {{ symbol }}{{ "%.2f"|format(p.regular_price) }} -

    - {% endif %} - {% else %} -

    No price

    - {% endif %} -
    -
    - -
    -
    - Quantity -
    - - - -
    - - {{ item.quantity }} - -
    - - - -
    -
    - -
    - {% if unit_price %} - {% set line_total = unit_price * item.quantity %} - {% set symbol = "£" if p.regular_price_currency == "GBP" else p.regular_price_currency %} -

    - Line total: - {{ symbol }}{{ "%.2f"|format(line_total) }} -

    - {% endif %} -
    -
    -
    -
    - -{% endmacro %} diff --git a/market/templates/_types/product/_main_panel.html b/market/templates/_types/product/_main_panel.html deleted file mode 100644 index cf8df31..0000000 --- a/market/templates/_types/product/_main_panel.html +++ /dev/null @@ -1,131 +0,0 @@ -{# Main panel fragment for HTMX navigation - product detail content #} -{% import 'macros/stickers.html' as stick %} -{% import '_types/product/prices.html' as prices %} -{% set prices_ns = namespace() %} -{{ prices.set_prices(d, prices_ns)}} - - {# Product detail grid from content block #} -
    -
    - {% if d.images and d.images|length > 0 %} -
    - {# --- like button overlay in top-right --- #} - {% if g.user %} -
    - {% set slug = d.slug %} - {% set liked = liked_by_current_user %} - {% include "_types/browse/like/button.html" %} -
    - {% endif %} - -
    -
    - {{ d.title }} - - {% for l in d.labels %} - - {% endfor %} -
    -
    - {{ d.brand }} -
    -
    - - {% if d.images|length > 1 %} - - - {% endif %} -
    - -
    -
    - {% for u in d.images %} - - - {% endfor %} -
    -
    - {% else %} -
    - {# Even if no image, still render the like button in the corner for consistency #} - {% if g.user %} -
    - {% set slug = d.slug %} - {% set liked = liked_by_current_user %} - {% include "_types/browse/like/button.html" %} -
    - {% endif %} - - No image -
    - {% endif %} - -
    - {% for s in d.stickers %} - {{ stick.sticker(asset_url('stickers/' + s + '.svg'), s, True, size=40) }} - {% endfor %} -
    -
    - -
    - {# Optional extras shown quietly #} -
    - {% if d.price_per_unit or d.price_per_unit_raw %} -
    Unit price: {{ prices.price_str(d.price_per_unit, d.price_per_unit_raw, d.price_per_unit_currency) }}
    - {% endif %} - {% if d.case_size_raw %} -
    Case size: {{ d.case_size_raw }}
    - {% endif %} - -
    - - {% if d.description_short or d.description_html %} -
    - {% if d.description_short %} -

    {{ d.description_short }}

    - {% endif %} - {% if d.description_html %} -
    - {{ d.description_html | safe }} -
    - {% endif %} -
    - {% endif %} - - {% if d.sections and d.sections|length %} -
    - {% for sec in d.sections %} -
    - - {{ sec.title }} - - -
    - {{ sec.html | safe }} -
    -
    - {% endfor %} -
    - {% endif %} -
    - -
    -
    diff --git a/market/templates/_types/product/_meta.html b/market/templates/_types/product/_meta.html deleted file mode 100644 index aebb684..0000000 --- a/market/templates/_types/product/_meta.html +++ /dev/null @@ -1,106 +0,0 @@ -{# --- social/meta_product.html --- #} -{# Context expected: - site, d (Product), request -#} - -{# Visibility → robots: index unless soft-deleted #} -{% set robots_here = 'noindex,nofollow' if d.deleted_at else 'index,follow' %} - -{# Compute canonical #} -{% set _site_url = site().url.rstrip('/') if site and site().url else '' %} -{% set _product_path = request.path if request else ('/products/' ~ (d.slug or '')) %} -{% set canonical = _site_url ~ _product_path if _site_url else (request.url if request else None) %} - -{# Include common base (charset, viewport, robots default, RSS, Org/WebSite JSON-LD) #} -{% set robots_override = robots_here %} -{% include 'social/meta_base.html' %} - -{# ---- Titles / descriptions ---- #} -{% set base_product_title = d.title or base_title %} -{% set og_title = base_product_title %} -{% set tw_title = base_product_title %} - -{# Description: prefer short, then HTML stripped #} -{% set desc_source = d.description_short - or (d.description_html|striptags if d.description_html else '') %} -{% set description = (desc_source|trim|replace('\n',' ')|replace('\r',' ')|striptags)|truncate(160, True, '…') %} - -{# ---- Image priority: product image, then first gallery image, then site default ---- #} -{% set image_url = d.image - or ((d.images|first).url if d.images and (d.images|first).url else None) - or (site().default_image if site and site().default_image else None) %} - -{# ---- Price / offer helpers ---- #} -{% set price = d.special_price or d.regular_price or d.rrp %} -{% set price_currency = d.special_price_currency or d.regular_price_currency or d.rrp_currency %} - -{# ---- Basic meta ---- #} -{{ base_product_title }} - -{% if canonical %}{% endif %} - -{# ---- Open Graph ---- #} - - - - -{% if canonical %}{% endif %} -{% if image_url %}{% endif %} - -{# Optional product OG price tags #} -{% if price and price_currency %} - - -{% endif %} -{% if d.brand %} - -{% endif %} -{% if d.sku %} - -{% endif %} - -{# ---- Twitter ---- #} - -{% if site and site().twitter_site %}{% endif %} - - -{% if image_url %}{% endif %} - -{# ---- JSON-LD Product ---- #} -{% set jsonld = { - "@context": "https://schema.org", - "@type": "Product", - "name": d.title, - "image": image_url, - "description": description, - "sku": d.sku, - "brand": d.brand, - "url": canonical -} %} - -{# Brand as proper object if present #} -{% if d.brand %} - {% set jsonld = jsonld | combine({ - "brand": { - "@type": "Brand", - "name": d.brand - } - }) %} -{% endif %} - -{# Offers if price available #} -{% if price and price_currency %} - {% set jsonld = jsonld | combine({ - "offers": { - "@type": "Offer", - "price": price, - "priceCurrency": price_currency, - "url": canonical, - "availability": "https://schema.org/InStock" - } - }) %} -{% endif %} - - diff --git a/market/templates/_types/product/_oob_elements.html b/market/templates/_types/product/_oob_elements.html deleted file mode 100644 index 589d369..0000000 --- a/market/templates/_types/product/_oob_elements.html +++ /dev/null @@ -1,49 +0,0 @@ -{% extends 'oob_elements.html' %} -{# OOB elements for HTMX navigation - product extends browse so use similar structure #} -{% import 'macros/layout.html' as layout %} -{% import 'macros/stickers.html' as stick %} -{% import '_types/product/prices.html' as prices %} -{% set prices_ns = namespace() %} -{{ prices.set_prices(d, prices_ns)}} - -{# Import shared OOB macros #} -{% from '_types/root/header/_oob.html' import root_header_start, root_header_end with context %} -{% from '_types/root/_oob_menu.html' import mobile_menu with context %} - - - -{% block oobs %} - {% from '_types/market/header/_header.html' import header_row with context %} - {{ header_row(oob=True) }} - - {% from '_types/root/_n/macros.html' import oob_header with context %} - {{oob_header('market-header-child', 'product-header-child', '_types/product/header/_header.html')}} - -{% endblock %} - - - -{% block mobile_menu %} - {% include '_types/market/mobile/_nav_panel.html' %} - {% include '_types/browse/_admin.html' %} -{% endblock %} - -{% block filter %} - {% call layout.details() %} - {% call layout.summary('blog-child-header') %} - {% endcall %} - {% call layout.menu('blog-child-menu') %} - {% endcall %} - {% endcall %} - - {% call layout.details() %} - {% call layout.summary('product-child-header') %} - {% endcall %} - {% call layout.menu('item-child-menu') %} - {% endcall %} - {% endcall %} -{% endblock %} - -{% block content %} - {% include '_types/product/_main_panel.html' %} -{% endblock %} diff --git a/market/templates/_types/product/_prices.html b/market/templates/_types/product/_prices.html deleted file mode 100644 index e56339f..0000000 --- a/market/templates/_types/product/_prices.html +++ /dev/null @@ -1,33 +0,0 @@ -{% import '_types/product/_cart.html' as _cart %} - {# ---- Price block ---- #} - {% import '_types/product/prices.html' as prices %} - {% set prices_ns = namespace() %} - {{ prices.set_prices(d, prices_ns)}} - -
    - {{ _cart.add(d.slug, cart)}} - - {% if prices_ns.sp_val %} -
    - Special price -
    -
    - {{ prices.price_str(prices_ns.sp_val, prices_ns.sp_raw, prices_ns.sp_cur) }} -
    - {% if prices_ns.sp_val and prices_ns.rp_val %} -
    - {{ prices.price_str(prices_ns.rp_val, prices_ns.rp_raw, prices_ns.rp_cur) }} -
    - {% endif %} - {% elif prices_ns.rp_val %} - -
    - {{ prices.price_str(prices_ns.rp_val, prices_ns.rp_raw, prices_ns.rp_cur) }} -
    - {% endif %} - {{ prices.rrp(prices_ns) }} - -
    - diff --git a/market/templates/_types/product/_title.html b/market/templates/_types/product/_title.html deleted file mode 100644 index 0b3be43..0000000 --- a/market/templates/_types/product/_title.html +++ /dev/null @@ -1,2 +0,0 @@ - -
    {{ d.title }}
    diff --git a/market/templates/_types/product/admin/_nav.html b/market/templates/_types/product/admin/_nav.html deleted file mode 100644 index f5c504d..0000000 --- a/market/templates/_types/product/admin/_nav.html +++ /dev/null @@ -1,2 +0,0 @@ -{% from 'macros/admin_nav.html' import placeholder_nav %} -{{ placeholder_nav() }} diff --git a/market/templates/_types/product/admin/_oob_elements.html b/market/templates/_types/product/admin/_oob_elements.html deleted file mode 100644 index 84acac6..0000000 --- a/market/templates/_types/product/admin/_oob_elements.html +++ /dev/null @@ -1,40 +0,0 @@ -{% extends 'oob_elements.html' %} - - -{# OOB elements for HTMX navigation - all elements that need updating #} -{# Import shared OOB macros #} -{% from '_types/root/header/_oob.html' import root_header_start, root_header_end with context %} -{% from '_types/root/_oob_menu.html' import mobile_menu with context %} - - - -{% block oobs %} - - {% from '_types/root/_n/macros.html' import oob_header with context %} - {{oob_header('product-header-child', 'product-admin-header-child', '_types/product/admin/header/_header.html')}} - - {% from '_types/product/header/_header.html' import header_row with context %} - {{ header_row(oob=True) }} -{% endblock %} - - -{% from '_types/root/_n/macros.html' import header with context %} -{% call header(id='product-header-child', oob=True) %} - {% call header() %} - {% from '_types/product/admin/header/_header.html' import header_row with context %} - {{header_row()}} -
    - -
    - {% endcall %} -{% endcall %} - - -{% block mobile_menu %} - {% include '_types/product/admin/_nav.html' %} -{% endblock %} - - -{% block content %} - {% include '_types/product/_main_panel.html' %} -{% endblock %} diff --git a/market/templates/_types/product/admin/header/_header.html b/market/templates/_types/product/admin/header/_header.html deleted file mode 100644 index eacdf7d..0000000 --- a/market/templates/_types/product/admin/header/_header.html +++ /dev/null @@ -1,11 +0,0 @@ -{% import 'macros/links.html' as links %} -{% macro header_row(oob=False) %} - {% call links.menu_row(id='product-admin-row', oob=oob) %} - {% call links.link(url_for('market.browse.product.admin', product_slug=d.slug), hx_select_search ) %} - admin!! - {% endcall %} - {% call links.desktop_nav() %} - {% include '_types/product/admin/_nav.html' %} - {% endcall %} - {% endcall %} -{% endmacro %} \ No newline at end of file diff --git a/market/templates/_types/product/admin/index.html b/market/templates/_types/product/admin/index.html deleted file mode 100644 index d1cb714..0000000 --- a/market/templates/_types/product/admin/index.html +++ /dev/null @@ -1,39 +0,0 @@ -{% extends '_types/product/index.html' %} - -{% import 'macros/layout.html' as layout %} - -{% block product_header_child %} - {% from '_types/root/_n/macros.html' import index_row with context %} - {% call index_row('market-header-child', '_types/product/admin/header/_header.html') %} - {% block product_admin_header_child %} - {% endblock %} - {% endcall %} -{% endblock %} - - - -{% block ___app_title %} - {% import 'macros/links.html' as links %} - {% call links.menu_row() %} - {% call links.link(url_for('market.browse.product.admin', product_slug=slug), hx_select_search) %} - {{ links.admin() }} - {% endcall %} - {% call links.desktop_nav() %} - {% include '_types/product/admin/_nav.html' %} - {% endcall %} - {% endcall %} -{% endblock %} - - - -{% block _main_mobile_menu %} - {% include '_types/product/admin/_nav.html' %} -{% endblock %} - -{% block aside %} -{% endblock %} - - -{% block content %} -{% include '_types/product/_main_panel.html' %} -{% endblock %} diff --git a/market/templates/_types/product/header/_header.html b/market/templates/_types/product/header/_header.html deleted file mode 100644 index 6608fce..0000000 --- a/market/templates/_types/product/header/_header.html +++ /dev/null @@ -1,15 +0,0 @@ -{% import 'macros/links.html' as links %} -{% macro header_row(oob=False) %} - {% call links.menu_row(id='product-row', oob=oob) %} - {% call links.link(url_for('market.browse.product.product_detail', product_slug=d.slug), hx_select_search ) %} - {% include '_types/product/_title.html' %} - {% endcall %} - {% include '_types/product/_prices.html' %} - {% call links.desktop_nav() %} - {% include '_types/browse/_admin.html' %} - {% endcall %} - {% endcall %} -{% endmacro %} - - - diff --git a/market/templates/_types/product/index.html b/market/templates/_types/product/index.html deleted file mode 100644 index 31ccd88..0000000 --- a/market/templates/_types/product/index.html +++ /dev/null @@ -1,61 +0,0 @@ -{% extends '_types/browse/index.html' %} - -{% block meta %} - {% include '_types/product/_meta.html' %} -{% endblock %} - - -{% import 'macros/stickers.html' as stick %} -{% import '_types/product/prices.html' as prices %} -{% set prices_ns = namespace() %} -{{ prices.set_prices(d, prices_ns)}} - - - -{% block market_header_child %} - {% from '_types/root/_n/macros.html' import index_row with context %} - {% call index_row('market-header-child', '_types/product/header/_header.html') %} - {% block product_header_child %} - {% endblock %} - {% endcall %} -{% endblock %} - - -{% block _main_mobile_menu %} - {% include '_types/browse/_admin.html' %} -{% endblock %} - - - -{% block filter %} - -{% call layout.details() %} - {% call layout.summary('blog-child-header') %} - {% block blog_child_summary %} - {% endblock %} - {% endcall %} - {% call layout.menu('blog-child-menu') %} - {% block post_child_menu %} - {% endblock %} - {% endcall %} - {% endcall %} - - {% call layout.details() %} - {% call layout.summary('product-child-header') %} - {% block item_child_summary %} - {% endblock %} - {% endcall %} - {% call layout.menu('item-child-menu') %} - {% block item_child_menu %} - {% endblock %} - {% endcall %} - {% endcall %} - -{% endblock %} - -{% block aside %} -{% endblock %} - -{% block content %} - {% include '_types/product/_main_panel.html' %} -{% endblock %} diff --git a/market/templates/_types/product/prices.html b/market/templates/_types/product/prices.html deleted file mode 100644 index be9cc4c..0000000 --- a/market/templates/_types/product/prices.html +++ /dev/null @@ -1,66 +0,0 @@ -{# ---- Price formatting helpers ---- #} -{% set _sym = {'GBP':'£','EUR':'€','USD':'$'} %} -{% macro price_str(val, raw, cur) -%} - {%- if raw -%} - {{ raw }} - {%- elif val is number -%} - {{ (_sym.get(cur) or '') ~ ('%.2f'|format(val)) }} - {%- else -%} - {{ val or '' }} - {%- endif -%} -{%- endmacro %} - - -{% macro set_prices(item, ns) -%} - -{% set ns.sp_val = item.special_price or (item.oe_list_price and item.oe_list_price.special) %} -{% set ns.sp_raw = item.special_price_raw or (item.oe_list_price and item.oe_list_price.special_raw) %} -{% set ns.sp_cur = item.special_price_currency or (item.oe_list_price and item.oe_list_price.special_currency) %} - -{% set ns.rp_val = item.regular_price or item.rrp or (item.oe_list_price and item.oe_list_price.rrp) %} -{% set ns.rp_raw = item.regular_price_raw or item.rrp_raw or (item.oe_list_price and item.oe_list_price.rrp_raw) %} -{% set ns.rp_cur = item.regular_price_currency or item.rrp_currency or (item.oe_list_price and item.oe_list_price.rrp_currency) %} - -{% set ns.case_size_count = (item.case_size_count or 1) %} -{% set ns.rrp = item.rrp_raw[0] ~ "%.2f"|format(item.rrp * (ns.case_size_count)) %} -{% set ns.rrp_raw = item.rrp_raw %} - -{%- endmacro %} - - -{% macro rrp(ns) -%} - {% if ns.rrp %} -
    - rrp: - - {{ ns.rrp }} - -
    - {% endif %} -{%- endmacro %} - - -{% macro card_price(item) %} - - -{# price block unchanged #} - {% set _sym = {'GBP':'£','EUR':'€','USD':'$'} %} - {% set sp_val = item.special_price or (item.oe_list_price and item.oe_list_price.special) %} - {% set sp_raw = item.special_price_raw or (item.oe_list_price and item.oe_list_price.special_raw) %} - {% set sp_cur = item.special_price_currency or (item.oe_list_price and item.oe_list_price.special_currency) %} - {% set rp_val = item.regular_price or item.rrp or (item.oe_list_price and item.oe_list_price.rrp) %} - {% set rp_raw = item.regular_price_raw or item.rrp_raw or (item.oe_list_price and item.oe_list_price.rrp_raw) %} - {% set rp_cur = item.regular_price_currency or item.rrp_currency or (item.oe_list_price and item.oe_list_price.rrp_currency) %} - {% set sp_str = sp_raw if sp_raw else ( (_sym.get(sp_cur, '') ~ ('%.2f'|format(sp_val))) if sp_val is number else (sp_val or '')) %} - {% set rp_str = rp_raw if rp_raw else ( (_sym.get(rp_cur, '') ~ ('%.2f'|format(rp_val))) if rp_val is number else (rp_val or '')) %} -
    - {% if sp_val %} -
    {{ sp_str }}
    - {% if rp_val %} -
    {{ rp_str }}
    - {% endif %} - {% elif rp_val %} -
    {{ rp_str }}
    - {% endif %} -
    -{% endmacro %} diff --git a/market/templates/aside_clear.html b/market/templates/aside_clear.html deleted file mode 100644 index d1ac5c9..0000000 --- a/market/templates/aside_clear.html +++ /dev/null @@ -1,7 +0,0 @@ - - diff --git a/market/templates/filter_clear.html b/market/templates/filter_clear.html deleted file mode 100644 index 578b0b9..0000000 --- a/market/templates/filter_clear.html +++ /dev/null @@ -1,5 +0,0 @@ -
    -
    diff --git a/market/templates/macros/filters.html b/market/templates/macros/filters.html deleted file mode 100644 index 40b477f..0000000 --- a/market/templates/macros/filters.html +++ /dev/null @@ -1,117 +0,0 @@ -{# - Unified filter macros for browse/shop pages - Consolidates duplicate mobile/desktop filter components -#} - -{% macro filter_item(href, is_on, title, icon_html, count=none, variant='desktop') %} - {# - Generic filter item (works for labels, stickers, etc.) - variant: 'desktop' or 'mobile' - #} - {% set base_class = "flex flex-col items-center justify-center" %} - {% if variant == 'mobile' %} - {% set item_class = base_class ~ " p-1 rounded hover:bg-stone-50" %} - {% set count_class = "text-[10px] text-stone-500 mt-1 leading-none tabular-nums" if count != 0 else "text-md text-red-500 font-bold mt-1 leading-none tabular-nums" %} - {% else %} - {% set item_class = base_class ~ " py-2 w-full h-full" %} - {% set count_class = "text-xs text-stone-500 leading-none justify-self-end tabular-nums" if count != 0 else "text-md text-red-500 font-bold leading-none justify-self-end tabular-nums" %} - {% endif %} - - - {{ icon_html | safe }} - {% if count is not none %} - {{ count }} - {% endif %} - -{% endmacro %} - - -{% macro labels_list(labels, selected_labels, current_local_href, variant='desktop') %} - {# - Unified labels filter list - variant: 'desktop' or 'mobile' - #} - {% import 'macros/stickers.html' as stick %} - - {% if variant == 'mobile' %} - - {% endif %} -{% endmacro %} - - -{% macro stickers_list(stickers, selected_stickers, current_local_href, variant='desktop') %} - {# - Unified stickers filter list - variant: 'desktop' or 'mobile' - #} - {% import 'macros/stickers.html' as stick %} - - {% if variant == 'mobile' %} - - - {% endif %} -{% endmacro %} - - diff --git a/orders/templates/_types/cart/checkout_error.html b/orders/templates/_types/cart/checkout_error.html deleted file mode 100644 index a15b1e9..0000000 --- a/orders/templates/_types/cart/checkout_error.html +++ /dev/null @@ -1,38 +0,0 @@ -{% extends '_types/root/index.html' %} - -{% block filter %} -
    -

    - Checkout error -

    -

    - We tried to start your payment with SumUp but hit a problem. -

    -
    -{% endblock %} - -{% block content %} -
    -
    -

    Something went wrong.

    -

    - {{ error or "Unexpected error while creating the hosted checkout session." }} -

    - {% if order %} -

    - Order ID: #{{ order.id }} -

    - {% endif %} -
    - -
    - - - Back to cart - -
    -
    -{% endblock %} diff --git a/orders/templates/_types/cart/checkout_return.html b/orders/templates/_types/cart/checkout_return.html deleted file mode 100644 index b08a09d..0000000 --- a/orders/templates/_types/cart/checkout_return.html +++ /dev/null @@ -1,68 +0,0 @@ -{% extends '_types/root/index.html' %} - -{% block filter %} -
    -
    -

    - {% if order.status == 'paid' %} - Payment received - {% elif order.status == 'failed' %} - Payment failed - {% elif order.status == 'missing' %} - Order not found - {% else %} - Payment status: {{ order.status|default('pending')|capitalize }} - {% endif %} -

    -

    - {% if order.status == 'paid' %} - Thanks for your order. - {% elif order.status == 'failed' %} - Something went wrong while processing your payment. You can try again below. - {% elif order.status == 'missing' %} - We couldn't find that order – it may have expired or never been created. - {% else %} - We’re still waiting for a final confirmation from SumUp. - {% endif %} -

    -
    - -
    -{% endblock %} - -{% block aside %} - {# no aside content for now #} -{% endblock %} - -{% block content %} -
    - {% if order %} -
    - {% include '_types/order/_summary.html' %} -
    - {% else %} -
    - We couldn’t find that order. If you reached this page from an old link, please start a new order. -
    - {% endif %} - {% include '_types/order/_items.html' %} - {% include '_types/order/_calendar_items.html' %} - {% include '_types/order/_ticket_items.html' %} - - {% if order.status == 'failed' and order %} -
    -

    Your payment was not completed.

    -

    - You can go back to your cart and try checkout again. If the problem persists, - please contact us and mention order #{{ order.id }}. -

    -
    - {% elif order.status == 'paid' %} -
    -

    All done!

    -

    We’ll start processing your order shortly.

    -
    - {% endif %} - -
    -{% endblock %} diff --git a/orders/templates/_types/order/_calendar_items.html b/orders/templates/_types/order/_calendar_items.html deleted file mode 100644 index 019f048..0000000 --- a/orders/templates/_types/order/_calendar_items.html +++ /dev/null @@ -1,43 +0,0 @@ -{# --- NEW: calendar bookings in this order --- #} - {% if order and calendar_entries %} -
    -

    - Calendar bookings in this order -

    - - -
    - {% endif %} \ No newline at end of file diff --git a/orders/templates/_types/order/_items.html b/orders/templates/_types/order/_items.html deleted file mode 100644 index 92d674d..0000000 --- a/orders/templates/_types/order/_items.html +++ /dev/null @@ -1,51 +0,0 @@ -{# Items list #} -{% if order and order.items %} -
    -

    - Items -

    - -
    -{% endif %} \ No newline at end of file diff --git a/orders/templates/_types/order/_main_panel.html b/orders/templates/_types/order/_main_panel.html deleted file mode 100644 index 679b846..0000000 --- a/orders/templates/_types/order/_main_panel.html +++ /dev/null @@ -1,7 +0,0 @@ -
    - {# Order summary card #} - {% include '_types/order/_summary.html' %} - {% include '_types/order/_items.html' %} - {% include '_types/order/_calendar_items.html' %} - -
    \ No newline at end of file diff --git a/orders/templates/_types/order/_nav.html b/orders/templates/_types/order/_nav.html deleted file mode 100644 index f5c504d..0000000 --- a/orders/templates/_types/order/_nav.html +++ /dev/null @@ -1,2 +0,0 @@ -{% from 'macros/admin_nav.html' import placeholder_nav %} -{{ placeholder_nav() }} diff --git a/orders/templates/_types/order/_oob_elements.html b/orders/templates/_types/order/_oob_elements.html deleted file mode 100644 index 31d1e17..0000000 --- a/orders/templates/_types/order/_oob_elements.html +++ /dev/null @@ -1,30 +0,0 @@ -{% extends 'oob_elements.html' %} - -{# OOB elements for HTMX navigation - all elements that need updating #} - -{# Import shared OOB macros #} -{% from '_types/root/header/_oob.html' import root_header_start, root_header_end with context %} -{% from '_types/root/_oob_menu.html' import mobile_menu with context %} - -{# Header with app title - includes cart-mini, navigation, and market-specific header #} - -{% block oobs %} - - {% from '_types/root/_n/macros.html' import oob_header with context %} - {{oob_header('orders-header-child', 'order-header-child', '_types/order/header/_header.html')}} - - {% from '_types/order/header/_header.html' import header_row with context %} - {{ header_row(oob=True) }} -{% endblock %} - - -{% block mobile_menu %} - {% include '_types/order/_nav.html' %} -{% endblock %} - - -{% block content %} - {% include "_types/order/_main_panel.html" %} -{% endblock %} - - diff --git a/orders/templates/_types/order/_summary.html b/orders/templates/_types/order/_summary.html deleted file mode 100644 index ffe560b..0000000 --- a/orders/templates/_types/order/_summary.html +++ /dev/null @@ -1,52 +0,0 @@ -
    -

    - Order ID: - #{{ order.id }} -

    - -

    - Created: - {% if order.created_at %} - {{ order.created_at.strftime('%-d %b %Y, %H:%M') }} - {% else %} - — - {% endif %} -

    - -

    - Description: - {{ order.description or '–' }} -

    - -

    - Status: - - {{ order.status or 'pending' }} - -

    - -

    - Currency: - {{ order.currency or 'GBP' }} -

    - -

    - Total: - {% if order.total_amount %} - {{ order.currency or 'GBP' }} {{ '%.2f'|format(order.total_amount) }} - {% else %} - – - {% endif %} -

    - -
    - - \ No newline at end of file diff --git a/orders/templates/_types/order/_ticket_items.html b/orders/templates/_types/order/_ticket_items.html deleted file mode 100644 index ef06c0b..0000000 --- a/orders/templates/_types/order/_ticket_items.html +++ /dev/null @@ -1,49 +0,0 @@ -{# --- Tickets in this order --- #} - {% if order and order_tickets %} -
    -

    - Event tickets in this order -

    - - -
    - {% endif %} \ No newline at end of file diff --git a/orders/templates/_types/order/header/_header.html b/orders/templates/_types/order/header/_header.html deleted file mode 100644 index 4d7f74b..0000000 --- a/orders/templates/_types/order/header/_header.html +++ /dev/null @@ -1,17 +0,0 @@ -{% import 'macros/links.html' as links %} -{% macro header_row(oob=False) %} - {% call links.menu_row(id='order-row', oob=oob) %} - {% call links.link(url_for('orders.order.order_detail', order_id=order.id), hx_select_search ) %} - -
    - Order -
    -
    - {{ order.id }} -
    - {% endcall %} - {% call links.desktop_nav() %} - {% include '_types/order/_nav.html' %} - {% endcall %} - {% endcall %} -{% endmacro %} \ No newline at end of file diff --git a/orders/templates/_types/order/index.html b/orders/templates/_types/order/index.html deleted file mode 100644 index c3d301e..0000000 --- a/orders/templates/_types/order/index.html +++ /dev/null @@ -1,68 +0,0 @@ -{% extends '_types/orders/index.html' %} - - -{% block orders_header_child %} - {% from '_types/root/_n/macros.html' import index_row with context %} - {% call index_row('order-header-child', '_types/order/header/_header.html') %} - {% block order_header_child %} - {% endblock %} - {% endcall %} -{% endblock %} - -{% block _main_mobile_menu %} - {% include '_types/order/_nav.html' %} -{% endblock %} - - - -{% block filter %} -
    -
    -

    - Placed {% if order.created_at %}{{ order.created_at.strftime('%-d %b %Y, %H:%M') }}{% else %}—{% endif %} · Status: {{ order.status or 'pending' }} -

    -
    -
    - - - All orders - - - {# Re-check status button #} -
    - - -
    - - {% if order.status != 'paid' %} - - - Open payment page - - {% endif %} -
    -
    -{% endblock %} - -{% block content %} - {% include '_types/order/_main_panel.html' %} -{% endblock %} - -{% block aside %} -{% endblock %} diff --git a/orders/templates/_types/orders/_main_panel.html b/orders/templates/_types/orders/_main_panel.html deleted file mode 100644 index 01ad410..0000000 --- a/orders/templates/_types/orders/_main_panel.html +++ /dev/null @@ -1,26 +0,0 @@ -
    - {% if not orders %} -
    - No orders yet. -
    - {% else %} -
    - - - - - - - - - - - - - {# rows + infinite-scroll sentinel #} - {% include "_types/orders/_rows.html" %} - -
    OrderCreatedDescriptionTotalStatus
    -
    - {% endif %} -
    diff --git a/orders/templates/_types/orders/_nav.html b/orders/templates/_types/orders/_nav.html deleted file mode 100644 index f5c504d..0000000 --- a/orders/templates/_types/orders/_nav.html +++ /dev/null @@ -1,2 +0,0 @@ -{% from 'macros/admin_nav.html' import placeholder_nav %} -{{ placeholder_nav() }} diff --git a/orders/templates/_types/orders/_oob_elements.html b/orders/templates/_types/orders/_oob_elements.html deleted file mode 100644 index 741e8fa..0000000 --- a/orders/templates/_types/orders/_oob_elements.html +++ /dev/null @@ -1,38 +0,0 @@ -{% extends 'oob_elements.html' %} - -{# OOB elements for HTMX navigation - all elements that need updating #} - -{# Import shared OOB macros #} -{% from '_types/root/header/_oob.html' import root_header_start, root_header_end with context %} -{% from '_types/root/_oob_menu.html' import mobile_menu with context %} - -{# Header with app title - includes cart-mini, navigation, and market-specific header #} - -{% block oobs %} - - {% from '_types/root/_n/macros.html' import oob_header with context %} - {{oob_header('auth-header-child', 'orders-header-child', '_types/orders/header/_header.html')}} - - {% from '_types/auth/header/_header.html' import header_row with context %} - {{ header_row(oob=True) }} -{% endblock %} - -{% block aside %} - {% from 'macros/search.html' import search_desktop %} - {{ search_desktop(current_local_href, search, search_count, hx_select) }} -{% endblock %} - -{% block filter %} -{% include '_types/orders/_summary.html' %} -{% endblock %} - -{% block mobile_menu %} - {% include '_types/orders/_nav.html' %} -{% endblock %} - - -{% block content %} - {% include "_types/orders/_main_panel.html" %} -{% endblock %} - - diff --git a/orders/templates/_types/orders/_rows.html b/orders/templates/_types/orders/_rows.html deleted file mode 100644 index e2d671e..0000000 --- a/orders/templates/_types/orders/_rows.html +++ /dev/null @@ -1,131 +0,0 @@ -{# suma_browser/templates/_types/order/_orders_rows.html #} - -{# --- existing rows, but split into desktop/tablet vs mobile --- #} -{% for order in orders %} - {# Desktop / tablet table row #} - - - #{{ order.id }} - - - {% if order.created_at %} - {{ order.created_at.strftime('%-d %b %Y, %H:%M') }} - {% else %} - — - {% endif %} - - - {{ order.description or '' }} - - - - {{ order.currency or 'GBP' }} - {{ '%.2f'|format(order.total_amount or 0) }} - - - {# status pill, roughly matching existing styling #} - - {{ order.status or 'pending' }} - - - - - View - - - - - {# Mobile card row #} - - -
    -
    - - #{{ order.id }} - - - - {{ order.status or 'pending' }} - -
    - -
    - {{ order.created_at or '' }} -
    - -
    -
    - {{ order.currency or 'GBP' }} - {{ '%.2f'|format(order.total_amount or 0) }} -
    - - - View - -
    -
    - - -{% endfor %} - -{# --- sentinel / end-of-results --- #} -{% if page < total_pages|int %} - - - {# Mobile sentinel content #} -
    - {% include "sentinel/mobile_content.html" %} -
    - - {# Desktop sentinel content #} - - - -{% else %} - - - End of results - - -{% endif %} diff --git a/orders/templates/_types/orders/_summary.html b/orders/templates/_types/orders/_summary.html deleted file mode 100644 index f812413..0000000 --- a/orders/templates/_types/orders/_summary.html +++ /dev/null @@ -1,11 +0,0 @@ -
    -
    -

    - Recent orders placed via the checkout. -

    -
    -
    - {% from 'macros/search.html' import search_mobile %} - {{ search_mobile(current_local_href, search, search_count, hx_select) }} -
    -
    \ No newline at end of file diff --git a/orders/templates/_types/orders/header/_header.html b/orders/templates/_types/orders/header/_header.html deleted file mode 100644 index 32c1659..0000000 --- a/orders/templates/_types/orders/header/_header.html +++ /dev/null @@ -1,14 +0,0 @@ -{% import 'macros/links.html' as links %} -{% macro header_row(oob=False) %} - {% call links.menu_row(id='orders-row', oob=oob) %} - {% call links.link(url_for('orders.list_orders'), hx_select_search, ) %} - -
    - Orders -
    - {% endcall %} - {% call links.desktop_nav() %} - {% include '_types/orders/_nav.html' %} - {% endcall %} - {% endcall %} -{% endmacro %} \ No newline at end of file diff --git a/orders/templates/_types/orders/index.html b/orders/templates/_types/orders/index.html deleted file mode 100644 index 7ee80a0..0000000 --- a/orders/templates/_types/orders/index.html +++ /dev/null @@ -1,29 +0,0 @@ -{% extends '_types/auth/index.html' %} - - -{% block auth_header_child %} - {% from '_types/root/_n/macros.html' import index_row with context %} - {% call index_row('orders-header-child', '_types/orders/header/_header.html') %} - {% block orders_header_child %} - {% endblock %} - {% endcall %} - -{% endblock %} - -{% block _main_mobile_menu %} - {% include '_types/orders/_nav.html' %} -{% endblock %} - -{% block aside %} - {% from 'macros/search.html' import search_desktop %} - {{ search_desktop(current_local_href, search, search_count, hx_select) }} -{% endblock %} - - -{% block filter %} - {% include '_types/orders/_summary.html' %} -{% endblock %} - -{% block content %} -{% include '_types/orders/_main_panel.html' %} -{% endblock %} diff --git a/shared/browser/templates/macros/cart_icon.html b/shared/browser/templates/macros/cart_icon.html deleted file mode 100644 index 9fcac0a..0000000 --- a/shared/browser/templates/macros/cart_icon.html +++ /dev/null @@ -1,31 +0,0 @@ -{# Cart icon/badge — shows logo when empty, cart icon with count when items present #} - -{% macro cart_icon(count=0, oob=False) %} -
    - {% if count == 0 %} -
    - - - -
    - {% else %} - - - - {{ count }} - - - {% endif %} -
    -{% endmacro %}