Skip to content

Commit

Permalink
feat(settings): add django-tables2 settings
Browse files Browse the repository at this point in the history
Add `DJANGO_TABLES2_TABLE_ATTRS` config for
striped and hoverable table rows for better
usability.

Resolves: #130
  • Loading branch information
koeaw committed Feb 24, 2025
1 parent 6c846aa commit bfa978d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions apis_ontology/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@
# TODO remove variable once it has been added to apis-acdhch-default-settings
CSP_FRAME_ANCESTORS = ["https://*.pages.oeaw.ac.at/"]

# django-tables2 settings
DJANGO_TABLES2_TABLE_ATTRS = {
"class": "table table-hover table-striped",
"thead": {
"class": "table-light",
},
}

# APIS-specific settings
GIT_REPOSITORY_URL = "https://github.com/acdh-oeaw/apis-instance-tbf"

0 comments on commit bfa978d

Please sign in to comment.