Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: introduce new templatetags #309

Merged
merged 1 commit into from
Oct 5, 2023
Merged

feat: introduce new templatetags #309

merged 1 commit into from
Oct 5, 2023

Conversation

b1rger
Copy link
Contributor

@b1rger b1rger commented Oct 2, 2023

This commit introduces a core templatetag shared_url to access the
SHARED_URL setting (the templatetag defaults to /static/). It also
updates the base template to use this templatetag.

The commit also introduces an apis_entities templatetag
entities_list_links that returns a list of links to the list views of
all entities. It also updates the base template to use this templatetag.

Closes: #293

@b1rger b1rger force-pushed the birger/293-templatetags branch 2 times, most recently from bc143e8 to 0c1185f Compare October 5, 2023 07:25
@b1rger b1rger marked this pull request as ready for review October 5, 2023 07:25
This commit introduces a core templatetag `shared_url` to access the
`SHARED_URL` setting (the templatetag defaults to `/static/`). It also
updates the base template to use this templatetag.

The commit also introduces an apis_entities templatetag
`entities_list_links` that returns a list of links to the list views of
all entities. It also updates the base template to use this templatetag.

Closes: #293
@b1rger b1rger force-pushed the birger/293-templatetags branch from 0c1185f to 9334360 Compare October 5, 2023 07:34
@b1rger b1rger merged commit 0ce7df4 into main Oct 5, 2023
@b1rger b1rger deleted the birger/293-templatetags branch October 11, 2023 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace context processors with templattags where applicable
1 participant