Self hosted FLOSS fitness/workout, nutrition and weight tracker
First try at making the feature page a bit prettier
Roland Geider16d8222443a3
diff --git a/wger/core/templates/base_features.html b/wger/core/templates/base_features.htmlnew file mode 100644index 000000000..5d863f977--- /dev/null+++ b/wger/core/templates/base_features.html@@ -0,0 +1,9 @@+{% extends "template_features.html" %}+{% block template %}+<h2 id="page-title" class="page-header">{% block title %}{% endblock %}</h2>+<div class="row">+ <div class="col-md-12" id="main-content">+ {% block content %}{% endblock %}+ </div>+</div>+{% endblock %}diff --git a/wger/core/templates/template_features.html b/wger/core/templates/template_features.htmlnew file mode 100644index 000000000..a8ccff51c--- /dev/null+++ b/wger/core/templates/template_features.html@@ -0,0 +1,88 @@+<!DOCTYPE html>+{% load i18n %}+{% load browserid %}+{% load staticfiles %}+{% load wger_extras %}+{% load compress %}+<html lang="{{language.short_name}}">+<head>+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />+ <meta charset="utf-8">+ <meta name="author" content="Roland Geider">++ <!--+ This file is part of Workout Manager++ Workout Manager is free software: you can redistribute it and/or modify+ it under the terms of the GNU Affero General Public License as published by+ the Free Software Foundation, either version 3 of the License, or+ (at your option) any later version.++ Workout Manager is distributed in the hope that it will be useful,+ but WITHOUT ANY WARRANTY; without even the implied warranty of+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+ GNU Affero General Public License for more details.++ You should have received a copy of the GNU Affero General Public License+ along with Workout Manager. If not, see <http://www.gnu.org/licenses/>.+ -->++ {% compress css %}+ <link rel="stylesheet" type="text/css" href="{% static 'css/workout-manager.css' %}">+ <link rel="stylesheet" type="text/css" href="{% static 'css/workout-manager-common.css' %}">+ <link rel="stylesheet" type="text/css" href="{% static 'css/jquery-ui.css' %}">+ <link rel="stylesheet" type="text/css" href="{% static 'css/jquery-ui-custom.css' %}">+ <link rel="stylesheet" type="text/css" href="{% static 'css/bootstrap.min.css' %}">+ <link rel="stylesheet" type="text/css" href="{% static 'css/bootstrap-custom.css' %}">+ <link rel="stylesheet" type="text/css" href="{% static 'css/datepicker3.css' %}">+ {% endcompress %}+ <link rel="icon" href="{% static 'images/favicon.png' %}" type="image/png">++ {% compress js %}+ <script src="{% static 'js/jquery.js' %}" type="text/javascript"></script>+ <script src="{% static 'js/jquery-ui.js' %}" type="text/javascript"></script>+ <script src="{% static 'js/d3.js' %}" type="text/javascript"></script>+ <script src="{% static 'js/workout-manager.js' %}" type="text/javascript"></script>+ <script src="{% static 'js/browserid.js' %}" type="text/javascript"></script>+ <script src="{% static 'js/ubuntu-unity.js' %}" type="text/javascript"></script>+ <script src="{% static 'js/bootstrap.min.js' %}" type="text/javascript"></script>+ <script src="{% static 'js/bootstrap-datepicker/bootstrap-datepicker.min.js' %}" type="text/javascript"></script>+ <script src="{% static 'js/exercises.js' %}" type="text/javascript"></script>+ <script src="{% static 'js/weight.js' %}" type="text/javascript"></script>+ <script src="{% static 'js/nutrition.js' %}" type="text/javascript"></script>+ {% endcompress %}++ <title>{% block title %}{% endblock %}</title>+</head>+<body>++{% include 'navigation.html' %}+<div id="main">+ <div class="container">+ {% block template %}{% endblock %}+ </div>+</div>++++<footer id="main-footer">+ <div class="container">+ <a href="https://github.com/rolandgeider/wger" class="no-hover">+ <img src="{% static 'images/agpl-v3.svg' %}"+ width="88"+ height="31"+ alt="{% trans 'Released under the Affero GPL' %}"+ title="{% trans 'Released under the Affero GPL' %}">+ </a>++ <a href="{% url 'core:about' %}">{% trans "About" %}</a>+ | <a href="{% url 'software:contribute' %}">{% trans "Contribute!" %}</a>+ | <a href="{% url 'core:contact' %}">{% trans "Get in touch" %}</a>++ <div class="navbar-right">+ <em class="text-muted" style="font-size: 80%;">{{version}}</em>+ </div>+ </div>+</footer>+</body>+</html>diff --git a/wger/software/templates/functions.html b/wger/software/templates/functions.htmlindex a59fda9ba..7dc7641c8 100644--- a/wger/software/templates/functions.html+++ b/wger/software/templates/functions.html@@ -1,269 +1,227 @@-{% extends "base.html" %}-{% load i18n %}-{% load staticfiles %}-{% load wger_extras %}+{% extends "base_features.html" %}+{% load i18n staticfiles wger_extras %}{% block title %}{% trans "Features" %}{% endblock %}{% block content %}-<p>{% blocktrans %}wger Workout Manager is a free, open source web application that manages++<div class="row">+ <div class="col-sm-8 col-xs-12">+ {% 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 other-people could also find useful.{% endblocktrans %}</p>--<div id="feature-carousel" class="carousel slide" data-ride="carousel" style="border: 1px solid rgb(221, 221, 221);margin-top: 1em;">-- <div class="carousel-inner">- <div class="item active">- <img src="{% static 'images/screen7-crop.png' %}" width="700">- <div class="carousel-caption">- <h4>{%trans "Edit window for a new set" %}</h4>- <p>{% blocktrans %}With this simple form you create-a new set with the repetitions and exercises you want. Repeat this-step a couple of times, and you have your workout ready.{% endblocktrans %}</p>- </div>- </div>- <div class="item">- <img src="{% static 'images/screen1-crop.png' %}" width="700">- <div class="carousel-caption">- <h4>{%trans "The workout manager" %}</h4>- <p>{% blocktrans %}A day of a simple workout with a few exercises.-If you don't want to see the comments for correct execution, you can hide-them.{% endblocktrans %}</p>- </div>- </div>-- <div class="item">- <img src="{% static 'images/screen2-crop.png' %}" width="700">- <div class="carousel-caption">- <h4>{%trans "Weight log" %}</h4>- <p>{% blocktrans %}Some weight entries for two exercises. Each-colour represents a different repetition so you can see how well you are-doing.{% endblocktrans %}</p>- </div>- </div>- <div class="item">- <img src="{% static 'images/screen3-crop.png' %}" width="700">- <div class="carousel-caption">- <h4>{%trans "Muscle overview" %}</h4>- <p>{% blocktrans %}An overview of the body's muscles and the-available exercises that mainly train the currently selected one.{% endblocktrans %}</p>- </div>- </div>- <div class="item">- <img src="{% static 'images/screen4-crop.png' %}" width="700">- <div class="carousel-caption">- <h4>{%trans "Body weight" %}</h4>- <p>{% blocktrans %}The chart shows the evolution of the-body weight. With the small version below, you can zoom in a time period.{% endblocktrans %}</p>- </div>- </div>- <div class="item">- <img src="{% static 'images/screen5-crop.png' %}" width="700">- <div class="carousel-caption">- <h4>{%trans "Nutrition plan" %}</h4>- <p>{% blocktrans %}The two first meals of a nutritional plan.-The nutritional values (energy, protein, etc.) are calculated too, but-are not shown in the picture.{% endblocktrans %}</p>- </div>- </div>- <div class="item">- <img src="{% static 'images/screen6-crop.png' %}" width="700">- <div class="carousel-caption">- <h4>{%trans "Ingredient detail view" %}</h4>- <p>{% blocktrans %}A detail view of an ingredient. With the-calculator on the top it's possible to quickly calculate the nutritional-values for a amount. 'Human' units such as slices are available for some-ingredients.{% endblocktrans %}</p>- </div>- </div>+people could also find useful.{% endblocktrans %}</div>- <!-- Carousel nav -->- <a class="carousel-control left" href="#feature-carousel" data-slide="prev">‹</a>- <a class="carousel-control right" href="#feature-carousel" data-slide="next">›</a></div>--<h3>{% trans "In short:" %}</h3>-+<div class="jumbotron"><div class="row">- <div class="col-md-4">- <div class="panel panel-primary">- <div class="panel-heading">- <h3 class="panel-title">{% trans "a workout manager" %}</h3>- </div>- <div class="panel-body">- {% blocktrans %}create and manage your workout routines by selecting how- many days your workout constists of, and adding different exercises to each.- Print the generated PDF to keep a log.{% endblocktrans %}- </div>- </div>+ <div class="col-sm-4 col-xs-6">+ <img src="{% static 'images/logos/logo-marketplace.svg' %}" style="width: 100%;"></div>- <div class="col-md-4">- <div class="panel panel-primary">- <div class="panel-heading">- <h3 class="panel-title">{% trans "a weight tracker" %}</h3>- </div>- <div class="panel-body">- {% blocktrans %}keep track of your progress with the weight log chart- for each exercise and your own body weight. This makes it easy to see if you- are reaching your goals or need to adjust something.{% endblocktrans %}- </div>- </div>+ <div class="col-sm-5 col-xs-6">+ <h2>{% trans "Your body." %}</h2>+ <h2>{% trans "Your workouts." %}</h2>+ <h2>{% trans "Your control." %}</h2>+ <h2>{% trans "Your cheesy slogan." %}</h2></div>- <div class="col-md-4">- <div class="panel panel-primary">- <div class="panel-heading">- <h3 class="panel-title">{% trans "a nutrition manager" %}</h3>- </div>- <div class="panel-body">{% blocktrans %}create a diet plan and see its nutritional- values (total energy, protein, carbohydrates, and so on) about- it. Select from more than 8000 ingredients for this.{% endblocktrans %}- </div>- </div>+ <div class="col-sm-3 col-xs-12">+ {% if not user.is_authenticated or user.userprofile.is_temporary %}+ <p>+ <a href="{% url 'core:demo-entries' %}" class="btn btn-success btn-lg btn-block">{% trans "Try it now" %}</a>+ </p>++ <p>+ <a href="{% url 'core:registration' %}" class="btn btn-default btn-lg btn-block">{% trans "Register" %}</a>+ </p>++ <p>+ <a href="{% url 'core:login' %}" class="btn btn-default btn-lg btn-block">{% trans "Login" %}</a>+ </p>+ {% endif %}</div></div>+</div>-<a name="workout-manager"></a>-<h2>{% trans "The workout manager" %}</h2>--<p>{% blocktrans %}You probably guessed, this is the main function.-It creates the workout you tell it, the way you tell it. It is pretty flexible-so if you do supersets, no need to worry, it is supported and you will-know which exercises <em>belong together</em>. Each set can have a different-number of repetitions you want to reach and which you enter yourself.-This means that other training forms like pyramid training or similar are-not a problem.{% endblocktrans %}</p>--<img src="{% static 'images/workout-manager-1.0.3-en.png' %}"- class="img-responsive img-rounded"- alt="">--<p>{% blocktrans %}<strong>Note:</strong> it has no 'preset' workouts that you-can simply use (e.g. beginner, etc.). It will happily make the routine you tell-it to do, but you have to decide which exercises and how many repetitions you'll-do.{% endblocktrans %}</p>--<a name="pdf-export"></a>-<h3>{% trans "PDF export" %}</h3>--{% with link='href="/static/pdf/workout-pdf-1.4-en.pdf" data-ajax="false"' %}-<p>{% blocktrans %}It can also generate a PDF with your current routine.-This is suitable for printing so you can bring it to the gym and keep a log-for 7 weeks. In case you wonder how it looks like, <a {{link}}>here's a sample</a>.{% endblocktrans %}-</p>-{% endwith %}-<a name="exercise-log"></a>-<h3>{% trans "Exercise log" %}</h3>-<p>{% blocktrans %}The electronic version of the above PDF output, you can enter+<div class="row" style="margin-top: 1em;">+ <div class="col-sm-4 col-xs-12">+ <h4>+ <strong>+ <span class="glyphicon glyphicon-user"></span>+ {% trans "Workouts" %}+ </strong>+ </h4>+ <p>{% blocktrans %}create and manage your workout routines by selecting how+many days your workout constists of, and adding different exercises to each.{% endblocktrans %}+ </p>+ <img src="{% static 'images/workout-manager-1.0.3-en.png' %}"+ class="img-responsive img-rounded"+ alt="">+ </div>+ <div class="col-sm-4 col-xs-6">+ <h4>+ <strong>+ <span class="glyphicon glyphicon-stats"></span>+ {% trans "Workout log" %}+ </strong>+ </h4>+ <p>{% blocktrans %}You can enterthe weights and repetitions you did for each exercise. As with the (body) weight,it will generate some diagrams so so you can see at a glance how well you are doing.-The raw numbers are still accessible as a table.{% endblocktrans %}</p>--<img src="{% static 'images/workout-log-1.1-en.png' %}"- class="img-responsive img-rounded">--<a name="workout-schedules"></a>-<h3>{% trans "Workout schedules" %}</h3>+The raw numbers are still accessible as a table.{% endblocktrans %}+ {% trans "You can also enter notes and a general impression (great, neutral, etc.)" %}</p>+ <img src="{% static 'images/workout-log-1.1-en.png' %}"+ class="img-responsive img-rounded"+ alt="">+ </div>+ <div class="col-sm-4 col-xs-6">+ <h4>+ <strong>+ <span class="glyphicon glyphicon-list-alt"></span>+ {% trans "Nutrition" %}+ </strong>+ </h4>+ <p>{% blocktrans %}create a diet plan and see its nutritional+values (total energy, protein, carbohydrates, and so on) about+it. Select from more than 8000 ingredients for this.{% endblocktrans %}</p>+ <img src="{% static 'images/nutrition-manager-1.0.3-en.png' %}"+ class="img-responsive img-rounded"+ alt="">+ </div>+</div>-<p>{% blocktrans %}If you always do a couple of workouts in succession or-are following a program that changes each week, you can manage this with-the workout schedules. You enter how many weeks you want to do each individual-workout and whether it should loop after reaching the last one. The correct-currently active workout will then be shown on your dashboard.{% endblocktrans %}</p>+<div class="row" style="margin-top: 1em;">+ <div class="col-sm-4 col-xs-12">+ <h4>+ <strong>+ <span class="glyphicon glyphicon-signal"></span>+ {% trans "Weight tracker" %}+ </strong>+ </h4>+ <p>{% blocktrans %}keep track of your progress with the weight log chart+for each exercise and your own body weight. This makes it easy to see if you+are reaching your goals or need to adjust something.{% endblocktrans %}</p>+ <img src="{% static 'images/weight-chart-1.0.3-en.png' %}"+ class="img-responsive img-rounded"+ alt="">+ </div>+ <div class="col-sm-4 col-xs-6">+ <h4>+ <strong>+ <span class="glyphicon glyphicon-ok"></span>+ {% trans "Exercise database" %}+ </strong>+ </h4>-<a name="muscle-exercise-db"></a>-<h2>{% trans "Muscle and exercise database" %}</h2>-<p>{% blocktrans %}The exercise database contains around hundred exercises+ <p>{% blocktrans %}The exercise database contains around hundred exercisesfrom which you can choose when creating a workout. Some have important notesabout the form to perform them. This is displayed in the workout overviewpage, so you keep them in mind.{% endblocktrans %}</p>--<p>{% blocktrans %}If you entered weight logs for the currently shown exercise, it-will display your progress.{% endblocktrans %}</p>--<p>{% blocktrans %}You can also submit your own, if you miss one. After a quick-review, it will be added to the general database.{% endblocktrans %}</p>---<img src="{% static 'images/muscle-overview-1.1-en.png' %}"+ <img src="{% static 'images/muscle-overview-1.1-en.png' %}"class="img-responsive img-rounded"alt="">+ </div>+ <div class="col-sm-4 col-xs-6">+ <h4>+ <strong>+ <span class="glyphicon glyphicon-th-list"></span>+ {% trans "Routine generator" %}+ </strong>+ </h4>+ <p>{% blocktrans %}Automatically generate a routine according to+your current strength level. You can either print them as a PDF or add them+to your own collection and custimize them them till you are happy with the+result. {% endblocktrans %} {% trans "The routines include among others:" %}</p>+ <ul>+ <li>{% trans "Foobar 5-3-1" %}</li>+ <li>{% trans "Foobar cool" %}</li>+ <li>{% trans "Foobar even cooler" %}</li>+ </ul>-<a name="weight-tracker"></a>-<h2>{% trans "The weight tracker" %}</h2>-<p>{% blocktrans %}This simple part lets you log your body weight. From this-data it generates a rather nice looking chart, so you can see if you are-reaching your goals (be it gaining mass or losing it).{% endblocktrans %}</p>--<p>{% blocktrans %}In case you want to jump ship after inputing your data from the-last years, simply export the data as CSV.{% endblocktrans %}</p>--<img src="{% static 'images/weight-chart-1.0.3-en.png' %}"- class="img-responsive img-rounded"- alt="">--<a name="weight-import"></a>-<h3>{% trans "Import" %}</h3>--<p>{% blocktrans %}If you already kept your weight in a spreadsheet, you can just-import it by copy-and-paste'ing it into the import assistant.{% endblocktrans %}</p>---<a name="nutritional-plans"></a>-<h2>{% trans "The nutrition schedule manager" %}</h2>-<p>{% blocktrans %}And finally it is a nutrition schedule manager. Here you can-create a diet plan and see some nutritional values (total energy, protein,-carbohydrates, and so on) about it. For the ingredients, it uses the very complete-list provided by the US Department of Agriculture, with around 8000-entries.{% endblocktrans %}</p>--<img src="{% static 'images/nutrition-manager-1.0.3-en.png' %}"- class="img-responsive img-rounded"- alt="">--<p>{% blocktrans %}<strong>Note:</strong> this is not a log keeper. It does not-keep track of what you actually ate during the day and how it compares to-what the plan says. It simply shows you the nutritional values of the plan-you create.{% endblocktrans %}</p>--{% with link='href="/static/pdf/nutrition-plan-pdf-1.4-en.pdf" data-ajax="false"' %}-<p>{% blocktrans %}It can also be downloaded as a PDF you can keep on your-fridge, so you don't forget to follow the plan... And as with the workout-log, <a {{link}}>here's a sample</a>.{% endblocktrans %}</p>-{% endwith %}-{% endblock %}+ <a href="" class="btn btn-default btn-xs pull-right">+ {% trans "Take a look" %}+ <span class="glyphicon glyphicon-chevron-right"></span>+ </a>+ </div>+</div>-{% block sidebar %}-<h3>{% trans "Overview" %}</h3>-<ul>- <li>- <a href="#workout-manager">{% trans "The workout manager" %}</a>- <ul>- <li><a href="#pdf-export">{% trans "PDF export" %}</a></li>- <li><a href="#exercise-log">{% trans "Exercise log" %}</a></li>- <li><a href="#workout-schedules">{% trans "Workout schedules" %}</a></li>- </ul>- </li>+<div class="row" style="margin-top: 1em;">+ <div class="col-sm-4 col-xs-12">+ <h4>+ <strong>+ <span class="glyphicon glyphicon-eye-open"></span>+ {% trans "100% Open Source" %}+ </strong>+ </h4>+ <p>{% blocktrans %}All of the code running wger is open source, allowing+the public to openly review its security and anyone can contribute towards+the development of wger.{% endblocktrans %}</p>+ </div>+ <div class="col-sm-4 col-xs-6">+ <h4>+ <strong>+ <span class="glyphicon glyphicon-globe"></span>+ {% trans "Join and help" %}+ </strong>+ </h4>+ <a href="https://github.com/rolandgeider/wger" class="btn btn-primary btn-block">+ {% trans "Join development" %}+ <span class="glyphicon glyphicon-chevron-right"></span>+ </a>+ <a href="{% url 'software:issues' %}" class="btn btn-primary btn-block">+ {% trans "Report an issue" %}+ <span class="glyphicon glyphicon-chevron-right"></span>+ </a>+ <a href="https://www.transifex.com/projects/p/wger-workout-manager/" class="btn btn-primary btn-block">+ {% trans "Translate" %}+ <span class="glyphicon glyphicon-chevron-right"></span>+ </a>+ </div>+ <div class="col-sm-4 col-xs-6">+ <h4>+ <strong>+ <span class="glyphicon glyphicon-retweet"></span>+ {% trans "REST API" %}+ </strong>+ </h4>+ <p>{% blocktrans %}wger provides a REST API with full read write access+to all data. To access publicly accessible data such as exercises you don't need+any form of authentication, for other objects such as workouts you need to get+an API key.{% endblocktrans %}</p>++ <a href="{% url 'software:api' %}" class="btn btn-default btn-xs pull-right">+ {% trans "Take a look" %}+ <span class="glyphicon glyphicon-chevron-right"></span>+ </a>+ </div>+</div>- <li>- <a href="#muscle-exercise-db">{% trans "Muscle and exercise database" %}</a>- </li>- <li>- <a href="#weight-tracker">{% trans "The weight tracker" %}</a>+<div class="row">+ <div class="col-sm-8">+ <h4>+ <strong>+ <span class="glyphicon glyphicon-plus"></span>+ {% trans "Other features" %}+ </strong>+ </h4><ul>- <li><a href="#weight-import">{% trans "Import" %}</a>+ <li>{% trans "Smooth performance and easy user interface." %}</li>+ <li>{% trans "Export workouts, nutrition plans and routines as PDF" %}</li>+ <li>{% trans "Create complex routines, specify how much the exercise weights increase each week" %}</li>+ <li>{% trans "Gym-optimised view with countdown to easily log weights during the workout" %}</li>+ <li>{% trans "Export your routines to an application such as iCal or google calendar." %}</li>+ <li>{% trans "Receive email notifications to remind you to change your routine (optional)" %}</li>+ <li>{% trans "Calendar view with last workouts for easy overview and control" %}</li>+ <li>{% trans "BMI and daily calories calculator" %}</li>+ <li>{% trans "Automatically calculated grams per body weight of your diet plan" %}</li>+ <li>{% trans "Mobile and desktop versions" %}</li></ul>- </li>- <li>- <a href="#nutritional-plans">{% trans "The nutrition schedule manager" %}</a>-- </li>-</ul>+ </div>+</div>{% endblock %}