Skip to content

Commit

Permalink
fix: provide a fallback template if basetemplate is not set
Browse files Browse the repository at this point in the history
This way we can drop the context_processor that provides the
`basetemplate` variable, but still let downstream projects override the
variable if they want to.
  • Loading branch information
b1rger authored and gythaogg committed Dec 11, 2023
1 parent da5beb7 commit a9efedc
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends basetemplate %}
{% extends basetemplate|default:"base.html" %}
{% load static %}
{% load crispy_forms_tags %}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends basetemplate %}
{% extends basetemplate|default:"base.html" %}
{% load static %}
{% load django_tables2 %}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends basetemplate %}
{% extends basetemplate|default:"base.html" %}
{% load static %}
{% load django_tables2 %}
{% load crispy_forms_tags %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends basetemplate %}
{% extends basetemplate|default:"base.html" %}

{% block Titel %}Create Label{% endblock %}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends basetemplate %}
{% extends basetemplate|default:"base.html" %}

{% block Titel %}See all Labels{% endblock %}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends basetemplate %}
{% extends basetemplate|default:"base.html" %}
{% load static %}
{% load django_tables2 %}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends basetemplate %}
{% extends basetemplate|default:"base.html" %}

{% block title %}{% endblock %}

Expand Down
2 changes: 1 addition & 1 deletion apis_core/apis_metainfo/templates/generic_list.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends basetemplate %}
{% extends basetemplate|default:"base.html" %}
{% load static %}
{% load django_tables2 %}
{% load apis_metainfo_extras %}
Expand Down
2 changes: 1 addition & 1 deletion apis_core/apis_metainfo/templates/registration/login.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends basetemplate %}
{% extends basetemplate|default:"base.html" %}
{% load crispy_forms_tags %}

{% block content %}
Expand Down
2 changes: 1 addition & 1 deletion apis_core/apis_metainfo/templates/uri_create.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends basetemplate %}
{% extends basetemplate|default:"base.html" %}
{% load crispy_forms_tags %}

{% block content %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends basetemplate %}
{% extends basetemplate|default:"base.html" %}
{% load static %}

{% block title %}{{ object }}{% endblock %}
Expand Down
2 changes: 1 addition & 1 deletion apis_core/core/templates/confirm_delete.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends basetemplate %}
{% extends basetemplate|default:"base.html" %}

{% block content %}
<div class="modal-dialog">
Expand Down

0 comments on commit a9efedc

Please sign in to comment.