Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Directly extend the template, base_features.html is not needed anymore

Roland Geider90788c983011
diff --git a/wger/core/templates/base_features.html b/wger/core/templates/base_features.html
deleted file mode 100644
index 6ea6ab237..000000000
--- a/wger/core/templates/base_features.html
+++ /dev/null
@@ -1,16 +0,0 @@
-{% extends "template_features.html" %}
-{% load i18n %}
-{% block template %}
-
- {% if messages and not no_messages %}
- {% for message in messages %}
- <div
- class="alert {% if message.tags == 'warning' %}alert-error{% elif message.tags == 'info' %}alert-info{% elif message.tags == 'success' %}alert-success{% endif %}">
- <a href="#" class="close extra-bold" data-bs-dismiss="alert">&times;</a>
- {{ message }}
- </div>
- {% endfor %}
- {% endif %}
-
- {% block content %}{% endblock %}
-{% endblock %}
diff --git a/wger/software/templates/features.html b/wger/software/templates/features.html
index 78bf4d7da..fe608bc57 100644
--- a/wger/software/templates/features.html
+++ b/wger/software/templates/features.html
@@ -1,4 +1,4 @@
-{% extends "base_features.html" %}
+{% extends "template_features.html" %}
{% load i18n static wger_extras %}
{# #}
@@ -16,7 +16,7 @@
{# #}
{# Content #}
{# #}
-{% block content %}
+{% block template %}
<header>
<!-- navbar -->
<nav class="navbar navbar-expand-lg px-4">