Replace stale coop_url with blog_url in events templates
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 57s

coop_url was the old blog URL helper, never registered as a Jinja
global. All 8 references across post/entry nav templates updated.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
giles
2026-02-24 11:02:55 +00:00
parent 226d50a980
commit 95af55da39
5 changed files with 8 additions and 8 deletions

View File

@@ -6,7 +6,7 @@
{% from 'macros/scrolling_menu.html' import scrolling_menu with context %} {% from 'macros/scrolling_menu.html' import scrolling_menu with context %}
{% call(entry_post) scrolling_menu('entry-posts-container', entry_posts) %} {% call(entry_post) scrolling_menu('entry-posts-container', entry_posts) %}
<a <a
href="{{ coop_url('/' + entry_post.slug + '/') }}" href="{{ blog_url('/' + entry_post.slug + '/') }}"
class="flex items-center gap-2 px-3 py-2 hover:bg-stone-100 rounded transition text-sm border sm:whitespace-nowrap sm:flex-shrink-0"> class="flex items-center gap-2 px-3 py-2 hover:bg-stone-100 rounded transition text-sm border sm:whitespace-nowrap sm:flex-shrink-0">
{% if entry_post.feature_image %} {% if entry_post.feature_image %}
<img src="{{ entry_post.feature_image }}" <img src="{{ entry_post.feature_image }}"

View File

@@ -8,7 +8,7 @@
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% if g.rights.admin %} {% if g.rights.admin %}
<a href="{{ coop_url('/' + post.slug + '/admin/') }}" class="{{styles.nav_button}}"> <a href="{{ blog_url('/' + post.slug + '/admin/') }}" class="{{styles.nav_button}}">
<i class="fa fa-cog" aria-hidden="true"></i> <i class="fa fa-cog" aria-hidden="true"></i>
</a> </a>
{% endif %} {% endif %}

View File

@@ -15,22 +15,22 @@
</a> </a>
</div> </div>
<div class="relative nav-group"> <div class="relative nav-group">
<a href="{{ coop_url('/' + post.slug + '/admin/entries/') }}" class="{{styles.nav_button}}"> <a href="{{ blog_url('/' + post.slug + '/admin/entries/') }}" class="{{styles.nav_button}}">
entries entries
</a> </a>
</div> </div>
<div class="relative nav-group"> <div class="relative nav-group">
<a href="{{ coop_url('/' + post.slug + '/admin/data/') }}" class="{{styles.nav_button}}"> <a href="{{ blog_url('/' + post.slug + '/admin/data/') }}" class="{{styles.nav_button}}">
data data
</a> </a>
</div> </div>
<div class="relative nav-group"> <div class="relative nav-group">
<a href="{{ coop_url('/' + post.slug + '/admin/edit/') }}" class="{{styles.nav_button}}"> <a href="{{ blog_url('/' + post.slug + '/admin/edit/') }}" class="{{styles.nav_button}}">
edit edit
</a> </a>
</div> </div>
<div class="relative nav-group"> <div class="relative nav-group">
<a href="{{ coop_url('/' + post.slug + '/admin/settings/') }}" class="{{styles.nav_button}}"> <a href="{{ blog_url('/' + post.slug + '/admin/settings/') }}" class="{{styles.nav_button}}">
settings settings
</a> </a>
</div> </div>

View File

@@ -1,7 +1,7 @@
{% import 'macros/links.html' as links %} {% import 'macros/links.html' as links %}
{% macro header_row(oob=False) %} {% macro header_row(oob=False) %}
{% call links.menu_row(id='post-admin-row', oob=oob) %} {% call links.menu_row(id='post-admin-row', oob=oob) %}
<a href="{{ coop_url('/' + post.slug + '/admin/') }}" <a href="{{ blog_url('/' + post.slug + '/admin/') }}"
class="flex items-center gap-2 px-3 py-2 rounded"> class="flex items-center gap-2 px-3 py-2 rounded">
{{ links.admin() }} {{ links.admin() }}
</a> </a>

View File

@@ -1,7 +1,7 @@
{% import 'macros/links.html' as links %} {% import 'macros/links.html' as links %}
{% macro header_row(oob=False) %} {% macro header_row(oob=False) %}
{% call links.menu_row(id='post_entries-row', oob=oob) %} {% call links.menu_row(id='post_entries-row', oob=oob) %}
{% call links.link(coop_url('/' + post.slug + '/admin/entries/'), hx_select_search) %} {% call links.link(blog_url('/' + post.slug + '/admin/entries/'), hx_select_search) %}
<i class="fa fa-clock" aria-hidden="true"></i> <i class="fa fa-clock" aria-hidden="true"></i>
<div> <div>
entries entries