Source

django-fitlog / fitlog / templates / fitlog / fitlog.html

{% extends "fitlog/base.html" %}
{% load fitlog_tags %}
{% block body %}
<a href='{% url 'add_log' %}'>Add New Fitness Log</a>

<h1>FitLog</h1>
{% ifequal fitlog.member.id user.id %}
    [<a href='{% url 'edit_fitlog' fitlog.id %}'>Edit FitLog</a>]
{% endifequal %}
{% view_fitlog_detail fitlog %}

<h2>Cardio</h2>
{% ifequal fitlog.member.id user.id %}
    [<a href='{% url 'add_cardio' fitlog.id %}'>Add Cardio</a>]
{% endifequal %}
{% cardio_list fitlog %}

<h2>Weight Training</h2>
{% ifequal fitlog.member.id user.id %}
    [<a href='{% url 'add_weight_training_log' fitlog.id %}'>Add Weight Training</a>]
{% endifequal %}
{% weight_training_list fitlog %}

{% endblock body %}