issue_comments: 1278198145
This data as json
html_url | issue_url | id | node_id | user | created_at | updated_at | author_association | body | reactions | issue | performed_via_github_app |
---|---|---|---|---|---|---|---|---|---|---|---|
https://github.com/simonw/datasette/issues/1831#issuecomment-1278198145 | https://api.github.com/repos/simonw/datasette/issues/1831 | 1278198145 | IC_kwDOBm6k_c5ML8GB | 9599 | 2022-10-13T21:28:30Z | 2022-10-13T21:28:30Z | OWNER | This has turned into a full refactor of how breadcrumbs work. I'm using my first ever Jinja macro for this - I import that at the top of
Here's the full content of ```html+jinja
{% macro nav(request, database=None, table=None) -%}
{% set items=crumb_items(request=request, database=database, table=table) %}
{% if items %}
{% for item in items %} {{ item.label }} {% if not loop.last %} / {% endif %} {% endfor %} {% endif %}
{%- endmacro %}
In the actual templates I display breadcrumbs like this:
I've also made the default base template show the |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
1397084281 |