-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
3 changed files
with
37 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from django import template | ||
from django.conf import settings | ||
|
||
|
||
register = template.Library() | ||
|
||
|
||
@register.simple_tag | ||
def shared_url(): | ||
return getattr(settings, "SHARED_URL", "/static") |