Self hosted FLOSS fitness/workout, nutrition and weight tracker
Use header CSS classes instead of header elements
Roland Geider2d0926a53887
diff --git a/wger/core/templates/tags/render_day.html b/wger/core/templates/tags/render_day.htmlindex c4ccc5701..adaa57394 100644--- a/wger/core/templates/tags/render_day.html+++ b/wger/core/templates/tags/render_day.html@@ -20,7 +20,7 @@ $(document).ready(function() {{{ day.days_of_week.text }} – {{ day.obj.description }}{% if editable %}- <span class="editoptions" style="float: right;">+ <span class="editoptions float-right"><a href="{% url 'manager:day:delete' day.obj.id %}"title="{% trans 'Delete' %}"><span class="{% fa_class 'trash' %}"></span></a>@@ -40,7 +40,7 @@ $(document).ready(function() {{% for set in day.set_list %}<tr data-id="{{ set.obj.id }}" id="set-{{ set.obj.id }}"><td style="width: 15%;border-right-width: 0px;">- <h5><strong>{{ forloop.counter }}</strong></h5>+ <p><strong>{{ forloop.counter }}</strong></p>{% if editable %}<span class="editoptions">@@ -87,9 +87,9 @@ $(document).ready(function() {<div class="media-body">- <h4 class="media-heading">+ <p class="media-heading h5">{{ exercise.obj.name }}- </h4>+ </p><p>{{exercise.setting_text}}</p>{% if editable %}diff --git a/wger/exercises/templates/equipment/overview.html b/wger/exercises/templates/equipment/overview.htmlindex a3100bd14..e021ea146 100644--- a/wger/exercises/templates/equipment/overview.html+++ b/wger/exercises/templates/equipment/overview.html@@ -64,7 +64,7 @@ $(function() {{% endif %}</div><div class="media-body" style="position: absolute; top: 10px; left: 100px;">- <h4 class="media-heading">{{ exercise.name }}</h4>+ <p class="media-heading h5">{{ exercise.name }}</p><span class="text-muted">{% trans exercise.category.name %}<!--diff --git a/wger/exercises/templates/exercise/overview.html b/wger/exercises/templates/exercise/overview.htmlindex 25a881db2..e5d740057 100644--- a/wger/exercises/templates/exercise/overview.html+++ b/wger/exercises/templates/exercise/overview.html@@ -70,7 +70,7 @@ $(document).ready(function() {src="{% static 'images/icons/image-placeholder.svg' %}">{% endif %}<div class="media-body">- <h4 class="mt-0">{{ exercise.name }}</h4>+ <p class="mt-0 h5">{{ exercise.name }}</p>{% for equipment in exercise.equipment.all %}{% trans equipment.name %}{% if not forloop.last %},{% endif %}diff --git a/wger/manager/templates/schedule/overview.html b/wger/manager/templates/schedule/overview.htmlindex 41021c566..222a7fcd8 100644--- a/wger/manager/templates/schedule/overview.html+++ b/wger/manager/templates/schedule/overview.html@@ -15,12 +15,12 @@<span class="glyphicon glyphicon-chevron-right float-right"></span>{% if schedule.is_active %}- <span class="badge badge-pill badge-primary">+ <span class="badge badge-pill badge-primary float-right">{% trans "active" %}</span>{% endif %}- <h4 class="list-group-item-heading">{{ schedule }}</h4>+ <p class="list-group-item-heading h5">{{ schedule }}</p><p class="list-group-item-text">{{ schedule.start_date }}</p></a>{% empty %}diff --git a/wger/manager/templates/workout/overview.html b/wger/manager/templates/workout/overview.htmlindex cc2ef4642..00ae82df7 100644--- a/wger/manager/templates/workout/overview.html+++ b/wger/manager/templates/workout/overview.html@@ -12,12 +12,12 @@<span class="glyphicon glyphicon-chevron-right float-right"></span>{% if workout == current_workout %}- <span class="badge">+ <span class="badge badge-primary float-right"><em>{% trans "active" %}</em></span>{% endif %}- <h4 class="list-group-item-heading">{{ workout }}</h4>+ <p class="list-group-item-heading h5">{{ workout }}</p><p class="list-group-item-text">{{ workout.creation_date }}</p></a>{% empty %}diff --git a/wger/manager/templates/workout/view.html b/wger/manager/templates/workout/view.htmlindex 16967ab2e..71b6b2bf6 100644--- a/wger/manager/templates/workout/view.html+++ b/wger/manager/templates/workout/view.html@@ -53,9 +53,9 @@ $(document).ready(function () {{% if workout.comment %}-<p>- <strong>{% trans "Goal" %}:</strong> {{workout.comment}}-</p>+<h4>+ {{workout.comment}}+</h4>{% endif %}{% for day in workout.canonical_representation.day_list %}diff --git a/wger/nutrition/templates/plan/overview.html b/wger/nutrition/templates/plan/overview.htmlindex 639a4118a..4c5389377 100644--- a/wger/nutrition/templates/plan/overview.html+++ b/wger/nutrition/templates/plan/overview.html@@ -11,7 +11,7 @@<a href="{{ plan.get_absolute_url }}" class="list-group-item"><span class="glyphicon glyphicon-chevron-right float-right"></span>- <h4 class="list-group-item-heading">{{plan}}</h4>+ <p class="list-group-item-heading h5">{{plan}}</p><p class="list-group-item-text">{{ plan.creation_date }} –{{ plan.get_nutritional_values.total.energy|floatformat }} {% trans "kcal" %}