Self hosted FLOSS fitness/workout, nutrition and weight tracker
Set the page's title outside #main-content
Roland Geider291ab32d5ed4
diff --git a/wger/exercises/templates/exercise_search.html b/wger/exercises/templates/exercise_search.htmlindex a798d8a52..49d272a06 100644--- a/wger/exercises/templates/exercise_search.html+++ b/wger/exercises/templates/exercise_search.html@@ -4,16 +4,13 @@<!--Title-->-{% block title %}{% trans "Search results" %}{% endblock %}+{% block title %}{% trans "Search results" %}- "{{ search_term }}"{% endblock %}<!--Main Content-->{% block content %}--<h2>{% trans "Search results" %} - "{{ search_term }}"</h2>-<form action="{% url wger.exercises.views.exercise_search %}"method="get"id="exercise_search_form">diff --git a/wger/exercises/templates/muscle_overview.html b/wger/exercises/templates/muscle_overview.htmlindex 8c8764f6d..c80b55dab 100644--- a/wger/exercises/templates/muscle_overview.html+++ b/wger/exercises/templates/muscle_overview.html@@ -61,7 +61,6 @@ $(document).ready(function() {Main Content-->{% block content %}-<h2>{% trans "Muscle overview" %} </h2>{% trans "Hover with the mouse over the muscles to show corresponding exercises." %}<div class="ym-grid linearize-level-1">diff --git a/wger/exercises/templates/overview.html b/wger/exercises/templates/overview.htmlindex 4e6906ca0..bbca6c4cd 100644--- a/wger/exercises/templates/overview.html+++ b/wger/exercises/templates/overview.html@@ -54,9 +54,6 @@ $(document).ready(function() {Main Content-->{% block content %}--<h2> {% trans "Exercises" %} </h2>-<div id="tabs"><ul>{% for category in categories %}diff --git a/wger/exercises/templates/view.html b/wger/exercises/templates/view.htmlindex 40dfa1601..b4282efdd 100644--- a/wger/exercises/templates/view.html+++ b/wger/exercises/templates/view.html@@ -28,9 +28,6 @@ function custom_modal_init()Main Content-->{% block content %}--<h2>{{ exercise.name }}</h2>-<p>{% trans "Category" %}: <strong>{{ exercise.category.name }}</strong></p><p>{{ exercise.description|safe }}</p>diff --git a/wger/manager/static/css/workout-manager.css b/wger/manager/static/css/workout-manager.cssindex 00a610005..347d5de4e 100644--- a/wger/manager/static/css/workout-manager.css+++ b/wger/manager/static/css/workout-manager.css@@ -327,6 +327,17 @@ header span.regular{color: white;}+/*+ * Make more space for the page title+ */+#page-title{+ margin-top: 0px;+}++#content-wrapper{+ padding-top: 0.8em;+}+/** Links in warning boxes get a different style, the default blue doesn't matchdiff --git a/wger/manager/static/js/workout-manager.js b/wger/manager/static/js/workout-manager.jsindex c4ba732b7..e96ec55ec 100644--- a/wger/manager/static/js/workout-manager.js+++ b/wger/manager/static/js/workout-manager.js@@ -260,8 +260,7 @@ function form_modal_dialog()}// Set the new title- $("#ajax-info").dialog({title: $(responseText).find("#main-content h2").html()});-+ $("#ajax-info").dialog({title: $(responseText).find("#page-title").html()});// If there is a form in the modal dialog (there usually is) prevent the submit// button from submitting it and do it here with an AJAX request. If therediff --git a/wger/manager/templates/base.html b/wger/manager/templates/base.htmlindex 14d6d5de8..95172c7bb 100644--- a/wger/manager/templates/base.html+++ b/wger/manager/templates/base.html@@ -1,5 +1,6 @@{% extends "template.html" %}{% block template %}+ <h2 id="page-title">{% block title %}{% endblock %}</h2><article><div class="ym-g66 ym-gl content"><div class="ym-gbox-left ym-clearfix" id="main-content">diff --git a/wger/manager/templates/day/log.html b/wger/manager/templates/day/log.htmlindex b49d46189..cf687c029 100644--- a/wger/manager/templates/day/log.html+++ b/wger/manager/templates/day/log.html@@ -18,8 +18,6 @@ $(document).ready(function () {{% endblock %}{% block content %}-<h2>{% trans "New weight log" %} – {{day.description}}</h2>-<form action="{{form_action}}" method="POST" class="ym-form" style="overflow-x: auto;">{% csrf_token %}{{formset.management_form}}diff --git a/wger/manager/templates/form.html b/wger/manager/templates/form.htmlindex 8082b1bb3..e711a58f5 100644--- a/wger/manager/templates/form.html+++ b/wger/manager/templates/form.html@@ -25,9 +25,6 @@Main Content-->{% block content %}-<h2>{{title}}</h2>--<form action="{{form_action}}"method="post"class="ym-form">diff --git a/wger/manager/templates/index.html b/wger/manager/templates/index.htmlindex 7c73673a4..b4b4f682c 100644--- a/wger/manager/templates/index.html+++ b/wger/manager/templates/index.html@@ -2,14 +2,14 @@{% load i18n %}{% load staticfiles %}-{% block title %} {% trans "Workout list" %}{% endblock %}+{% block title %} {% trans "Dashboard" %}{% endblock %}{% block content %}<div class="ym-grid linearize-level-1"><div class="ym-g50 ym-gl"><div class="ym-gbox-left">- <h2>{% trans "Workout"%}</h2>+ <h3>{% trans "Workout"%}</h3>{% if current_workout %}<a href="{% url wger.manager.views.view_workout current_workout.id %}">{% if current_workout.comment %}@@ -19,34 +19,34 @@{% endif %}</a><br> – {{ current_workout.creation_date }}--++<ul>{% for day, exercise, is_workout in weekdays %}<li>{% if not is_workout %}<span class="dimmed">{% endif%}{{ day }}:-- {{ exercise }}++ {{ exercise }}{% if not is_workout %}</span>{% endif%}-+</li>{% endfor %}</ul>-+{% else %}<div class="box warning">- {% trans "No workouts found." %} {% trans "Use link to add one." %}+ {% trans "No workouts found." %} {% trans "Use link to add one." %}</div>{% endif %}</div></div><div class="ym-g50 ym-gr"><div class="ym-gbox-right">--- <h2>{% trans "Nutrition plan"%}</h2>-+++ <h3>{% trans "Nutrition plan"%}</h3>+{% if plan %}<a href="{% url wger.nutrition.views.view plan.id %}">{% if plan.description %}@@ -56,7 +56,7 @@{% endif %}</a><br> – {{ plan.creation_date }}-+<ul><li>{% trans "Energy" %}: {{nutritional_info.energy}} kcal@@ -74,7 +74,7 @@{% else %}<div class="box warning">- {% trans "No nutrition plans." %} {% trans "Use link to add one." %}+ {% trans "No nutrition plans." %} {% trans "Use link to add one." %}</div>{% endif %}{% if weight %}diff --git a/wger/manager/templates/set/edit.html b/wger/manager/templates/set/edit.htmlindex 482c11256..90f13fcf5 100644--- a/wger/manager/templates/set/edit.html+++ b/wger/manager/templates/set/edit.html@@ -25,10 +25,6 @@ function custom_page_init()Main Content-->{% block content %}--<h2>{% trans "Edit" %} {{ day.description }}</h2>--<form action="{% url wger.manager.views.edit_set workout.id day.id set.id %}"method="post"class="ym-form">diff --git a/wger/manager/templates/template.html b/wger/manager/templates/template.htmlindex f03093b0e..16a0e7042 100644--- a/wger/manager/templates/template.html+++ b/wger/manager/templates/template.html@@ -216,6 +216,7 @@<section class="ym-grid linearize-level-1"><div id="current-url" data-current-url="{{request_full_path}}"></div><div id="current-language" data-current-language="{{language.short_name}}"></div>+{% if user.get_profile.is_temporary %}<div class="box info" style="padding:0.6em; margin: 0em 0em 1em 0em;">{% trans "You are using a temporary account, this user will be deleted after some time."%}diff --git a/wger/manager/templates/user/change_password.html b/wger/manager/templates/user/change_password.htmlindex e73967155..bb8189a3e 100644--- a/wger/manager/templates/user/change_password.html+++ b/wger/manager/templates/user/change_password.html@@ -6,9 +6,6 @@{% block content %}-<h2>{% trans "Change password" %}</h2>--<form action="{% url change-password %}"method="post"class="ym-form">diff --git a/wger/manager/templates/user/demo.html b/wger/manager/templates/user/demo.htmlindex d484fa34d..d4be35c1d 100644--- a/wger/manager/templates/user/demo.html+++ b/wger/manager/templates/user/demo.html@@ -7,8 +7,6 @@{% block title %}{% trans "Demo account" %}{% endblock %}{% block content %}-<h2>{% trans "Demo account" %}</h2>-<p>{% blocktrans %}Create a temporary user by filling in the form below.{% endblocktrans %}</p>diff --git a/wger/manager/templates/user/login.html b/wger/manager/templates/user/login.htmlindex 911e79d03..c893667b6 100644--- a/wger/manager/templates/user/login.html+++ b/wger/manager/templates/user/login.html@@ -12,7 +12,6 @@{% block content %}{% if not user.is_authenticated %}-<h2>{% trans "Login" %}</h2><form action="{% url login %}"method="post"class="ym-form">diff --git a/wger/manager/templates/user/password_reset_complete.html b/wger/manager/templates/user/password_reset_complete.htmlindex dbbaa3457..971c6f15e 100644--- a/wger/manager/templates/user/password_reset_complete.html+++ b/wger/manager/templates/user/password_reset_complete.html@@ -6,10 +6,6 @@{% block content %}--{% comment %}Translators: Don't translate, this is already done by Django{% endcomment %}-<h2>{% trans 'Password reset complete' %}</h2>-{% comment %}Translators: Don't translate, this is already done by Django{% endcomment %}<p>{% trans "Your password has been set. You may go ahead and log in now." %}</p>diff --git a/wger/manager/templates/user/password_reset_done.html b/wger/manager/templates/user/password_reset_done.htmlindex 958e16287..550297b8b 100644--- a/wger/manager/templates/user/password_reset_done.html+++ b/wger/manager/templates/user/password_reset_done.html@@ -6,10 +6,6 @@{% block content %}--{% comment %}Translators: Don't translate, this is already done by Django{% endcomment %}-<h2>{% trans 'Password reset successful' %}</h2>-{% comment %}Translators: Don't translate, this is already done by Django{% endcomment %}<p>{% trans "We've e-mailed you instructions for setting your password to the e-mail address you submitted. You should be receiving it shortly." %}</p>diff --git a/wger/manager/templates/user/password_reset_form.html b/wger/manager/templates/user/password_reset_form.htmlindex 58f281a34..efce8a561 100644--- a/wger/manager/templates/user/password_reset_form.html+++ b/wger/manager/templates/user/password_reset_form.html@@ -7,9 +7,6 @@{% block content %}-{% comment %}Translators: Don't translate, this is already done by Django{% endcomment %}-<h2>{% trans "Password reset" %}</h2>-<form action=""method="post"class="ym-form">diff --git a/wger/manager/templates/user/preferences.html b/wger/manager/templates/user/preferences.htmlindex f88198bd8..122899b51 100644--- a/wger/manager/templates/user/preferences.html+++ b/wger/manager/templates/user/preferences.html@@ -7,9 +7,6 @@{% block content %}--<h2>{% trans "Preferences" %}</h2>-<form action="{% url wger.manager.views.preferences %}"method="post"class="ym-form">diff --git a/wger/manager/templates/workout/log.html b/wger/manager/templates/workout/log.htmlindex 98b86caaf..d4c6e18e6 100644--- a/wger/manager/templates/workout/log.html+++ b/wger/manager/templates/workout/log.html@@ -22,9 +22,6 @@ function custom_modal_init(){% endblock %}{% block content %}-<h2>{% trans "Weight log for workout" %}</h2>--{% if workout.comment %}<p><strong>{% trans "Goal" %}:</strong>diff --git a/wger/manager/templates/workout/overview.html b/wger/manager/templates/workout/overview.htmlindex bdbc95848..440d830ad 100644--- a/wger/manager/templates/workout/overview.html+++ b/wger/manager/templates/workout/overview.html@@ -6,10 +6,6 @@{% block content %}--<h2>{% trans "Your workouts" %}</h2>--{% if workouts %}<table id="workout-table"><thead>diff --git a/wger/manager/templates/workout/view.html b/wger/manager/templates/workout/view.htmlindex 6fb115d66..c2d6067dd 100644--- a/wger/manager/templates/workout/view.html+++ b/wger/manager/templates/workout/view.html@@ -32,7 +32,6 @@ $(document).ready(function() {{% endblock %}{% block content %}-<h2>{% trans "Workout" %} – {{ workout.creation_date }}</h2>{% if workout.comment %}diff --git a/wger/nutrition/templates/ingredient_overview.html b/wger/nutrition/templates/ingredient_overview.htmlindex 6a4048cf9..878b03eba 100644--- a/wger/nutrition/templates/ingredient_overview.html+++ b/wger/nutrition/templates/ingredient_overview.html@@ -8,8 +8,6 @@{% block content %}-<h2>{% trans "Ingredient overview" %}</h2>-{% if ingredients %}<ul>{% for ingredient in ingredients %}diff --git a/wger/nutrition/templates/nutrition_overview.html b/wger/nutrition/templates/nutrition_overview.htmlindex 53ad6154e..521777c63 100644--- a/wger/nutrition/templates/nutrition_overview.html+++ b/wger/nutrition/templates/nutrition_overview.html@@ -6,9 +6,6 @@{% block content %}--<h2>{% trans "Your nutrition plans" %}</h2>-{% if plans %}<table><thead>diff --git a/wger/nutrition/templates/view_ingredient.html b/wger/nutrition/templates/view_ingredient.htmlindex 63a226725..20bf65703 100644--- a/wger/nutrition/templates/view_ingredient.html+++ b/wger/nutrition/templates/view_ingredient.html@@ -9,7 +9,7 @@{% block content %}<div itemscope itemtype="http://schema.org/NutritionInformation">-<h2 itemprop="name">{{ingredient.name}}</h2>+<meta itemprop="name" content="{{ingredient.name}}" /><p>{% trans "Nutritional values in 100g of product." %}</p>diff --git a/wger/software/templates/changelog.html b/wger/software/templates/changelog.htmlindex 06ab29fca..6fa91786e 100644--- a/wger/software/templates/changelog.html+++ b/wger/software/templates/changelog.html@@ -7,7 +7,6 @@{% block title %}{% trans "Changelog" %}{% endblock %}{% block content %}-<h2>{% trans "Changelog" %}</h2><h3>1.1</h3><h4>2013-xx-xx</h4>diff --git a/wger/software/templates/code.html b/wger/software/templates/code.htmlindex b59e0b03d..89d2b3e4f 100644--- a/wger/software/templates/code.html+++ b/wger/software/templates/code.html@@ -7,8 +7,6 @@{% block title %}{% trans "Get the code" %}{% endblock %}{% block content %}-<h2>{% trans "Download" %}</h2>-<h3>{% trans "Stable version" %}</h3><p>{% blocktrans %}Click here to download the last stable version. Fordiff --git a/wger/software/templates/functions.html b/wger/software/templates/functions.htmlindex 43d1c13c8..5d6d80caf 100644--- a/wger/software/templates/functions.html+++ b/wger/software/templates/functions.html@@ -7,8 +7,6 @@{% block title %}{% trans "Features" %}{% endblock %}{% block content %}-<h2>{% trans "What is this?" %}</h2>-<p>{% blocktrans %}wger Workout Manager is a free, open source web application that managesyour exercises and workouts. It started as a pet project of mine to replace mygrowing collection of different spreadsheets, but it has become something otherdiff --git a/wger/software/templates/issues.html b/wger/software/templates/issues.htmlindex 261026ec5..7f6372b91 100644--- a/wger/software/templates/issues.html+++ b/wger/software/templates/issues.html@@ -5,8 +5,6 @@{% block title %}{% trans "Reporting a problem" %}{% endblock %}{% block content %}-<h2>{% trans "Reporting a problem" %}</h2>-<p>{% blocktrans %}No software is perfect. For some severe errors, an email will be automatically sent, butnot always, so I depend on you reporting everything that didn't behave as expected.diff --git a/wger/software/templates/license.html b/wger/software/templates/license.htmlindex 7c1ab8ca0..0b65eafd3 100644--- a/wger/software/templates/license.html+++ b/wger/software/templates/license.html@@ -7,9 +7,6 @@{% block title %}{% trans "License" %}{% endblock %}{% block content %}-<h2>{% trans "License" %}</h2>--<p>{% blocktrans %}wger Workout Manager is Free/Libre Open SourceSoftware (FLOSS).{% endblocktrans %}</p>diff --git a/wger/weight/templates/import_csv_form.html b/wger/weight/templates/import_csv_form.htmlindex 73c239bef..d4cf425a4 100644--- a/wger/weight/templates/import_csv_form.html+++ b/wger/weight/templates/import_csv_form.html@@ -5,8 +5,6 @@{% block title %}{% trans "Import weight logs" %}{% endblock %}{% block content %}-<h2>{% trans "Import weight logs" %}</h2>-<form action="{{form_action}}"method="post"class="ym-form">diff --git a/wger/weight/templates/import_csv_preview.html b/wger/weight/templates/import_csv_preview.htmlindex 29e05887a..bcdbae503 100644--- a/wger/weight/templates/import_csv_preview.html+++ b/wger/weight/templates/import_csv_preview.html@@ -7,9 +7,6 @@{% block content %}--<h2>{% trans "Preview imported CSV entries" %}</h2>-<h3>{% trans "Sucessfully converted values" %}</h3><div class="box success">{% trans "The following values could be converted." %}</div><table class="narrow">diff --git a/wger/weight/templates/weight_overview.html b/wger/weight/templates/weight_overview.htmlindex 290e5cda8..430beee8d 100644--- a/wger/weight/templates/weight_overview.html+++ b/wger/weight/templates/weight_overview.html@@ -77,9 +77,6 @@ $(document).ready(function () {Main Content-->{% block content %}--<h2>{% trans "Weight overview" %}</h2>-{% if not min_date %}<div class="box warning" id="weight-box-warning">{% trans "There is no chart here because there are no weight entries." %}