{% extends "base.html" %}
{% set active_page = "projects" %}
{% set active_page_title = project.name %}
{% set active_page_subtitle = project.description %}
{% set active_project = project.short_name %}
{% import "projects/_helpers.html" as helper %}

{% block stylesheet %}
<style>
#project-synopsis {
	color:#FFF;
	background:#34495E;
	padding-top:2em;
	padding-bottom:2em;
}
</style>
{% endblock %}


{% block header %}
{{super()}}
{% if project and project.short_name != "geotagxblog" %}
	{% call bootstrap.render_container(id="project-synopsis") %}
		{% from "projects/_helpers.html" import render_project_profile %}
		{{render_project_profile(project, upload_method, owner, n_tasks, n_task_runs, overall_progress, last_activity, n_completed_tasks, n_volunteers, current_user)}}
	{% endcall %}
{% endif %}
{% endblock %}

{% extends "base.html" %}
{% set active_page = "projects" %}

{% if project %}
{% set active_page_title = project.name %}
{% set active_page_subtitle = project.description %}
{% set active_project = project.short_name %}
{% endif %}

{% import "projects/_helpers.html" as helper %}

{% block stylesheet %}
<style>
#project-synopsis {
	color:#FFF;
	background:#34495E;
	padding-top:2em;
	padding-bottom:2em;
}
</style>
{% endblock %}


{% block header %}
{{super()}}
{% if project and project.short_name != "geotagxblog" %}
	{% call bootstrap.render_container(id="project-synopsis") %}
		{{helper.render_project_profile(project, upload_method, owner, n_tasks, n_task_runs, overall_progress, last_activity, n_completed_tasks, n_volunteers, current_user)}}
	{% endcall %}
{% endif %}
{% endblock %}

Fix error when a project is undefined
Fix error when a project is undefined

An error occurs when viewing project categories (which use a template
that inherit from projects/base.html) since the project object is not
defined.
