Closed
Description
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.