{% extends "base.html" %}


{% block content %}
Name: {{ profile.full_name }} <br />

Gender: {{ profile.gender }} <br />
<hr />
About: {{ profile.aboutme|linebreaksbr }} <br />

{% if comp_tasks %}
Tasks completed by {{viewing_profile.full_name}}:
<ul>
  {% for task in comp_tasks %}
  <li><a href="{% url view_task task.id %}">{{task.title}}</a></li>
  {% endfor %}
</ul>
{% endif %}

{% if working_tasks %}
Tasks {{viewing_profile.full_name}} is currently working on:
<ul>
  {% for task in working_tasks %}
  <li><a href="{% url view_task task.id %}">{{task.title}}</a></li>
  {% endfor %}
</ul>
{% endif %}

{% if reviewing_tasks %}
Tasks reviewed by {{viewing_profile.full_name}}:
<ul>
  {% for task in reviewing_tasks %}
  <li><a href="{% url view_task task.id %}">{{task.title}}</a></li>
  {% endfor %}
</ul>
{% endif %}

{% if claimed_tasks and can_view_info %}
<ul>
  {% for task in claimed_tasks %}
  <li><a href="{% url view_task task.id %}">{{task.title}}</a></li>
  {% endfor %}
</ul>
{% endif %}

{% endblock %}

{% extends "base.html" %}


{% block content %}
Name: {{ profile.full_name }} <br />

Gender: {{ profile.gender }} <br />
<hr />
About: {{ profile.aboutme|linebreaksbr }} <br />

{% if comp_tasks %}
Tasks completed by {{ profile.full_name }}:
<ul>
  {% for task in comp_tasks %}
  <li><a href="{% url view_task task.id %}">{{ task.title }}</a></li>
  {% endfor %}
</ul>
{% endif %}

{% if working_tasks %}
Tasks {{ profile.full_name }} is currently working on:
<ul>
  {% for task in working_tasks %}
  <li><a href="{% url view_task task.id %}">{{ task.title }}</a></li>
  {% endfor %}
</ul>
{% endif %}

{% if reviewing_tasks %}
Tasks reviewed by {{ profile.full_name }}:
<ul>
  {% for task in reviewing_tasks %}
  <li><a href="{% url view_task task.id %}">{{ task.title }}</a></li>
  {% endfor %}
</ul>
{% endif %}

{% if claimed_tasks and can_view_info %}
<ul>
  {% for task in claimed_tasks %}
  <li><a href="{% url view_task task.id %}">{{ task.title }}</a></li>
  {% endfor %}
</ul>
{% endif %}

{% endblock %}

Use profile instead of viewing_profile as the context variable.
Use profile instead of viewing_profile as the context variable.

Also make some style fixes.
