Skip to content

Clean up base.html template to remove legacy and unused code #13166

Closed
@Gpetrak

Description

@Gpetrak

base.html template is the main template in GeoNode where many other templates depend on it. However, it currently contains a significant amount of legacy or misplaced code that should not reside in the base template.
For example, the social login logic implemented via django-allauth:

{% get_providers as socialaccount_providers %}
{% if socialaccount_providers %}
{% include "socialaccount/snippets/provider_list.html" with process="login" %}
{% include "socialaccount/snippets/login_extra.html" %}
<hr>
{% endif %}

is included even on pages like 404.html and 500.html, where it's not relevant or appropriate.

We should clean up base.html by removing legacy, unused, and unnecessary code, and ensure that only essential, shared layout elements are included.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions