{% extends "withnav_template.html" %}
{% from "components/banner.html" import banner %}
{% from "components/ajax-block.html" import ajax_block %}
{% from "components/page-footer.html" import page_footer %}

{% block service_page_title %}
  {{ uploaded_file_name }}
{% endblock %}

{% block maincolumn_content %}

    <h1 class="heading-large">
      {{ uploaded_file_name }}
    </h1>

    {{ template|string }}

    {{ ajax_block(partials, updates_url, 'status', finished=finished) }}
    {{ ajax_block(partials, updates_url, 'counts', finished=finished) }}
    {{ ajax_block(partials, updates_url, 'notifications', finished=finished) }}

    {% if not help %}
      {{ page_footer(
        secondary_link=url_for('.view_template', service_id=current_service.id, template_id=template.id),
        secondary_link_text='Back to {}'.format(template.name)
      ) }}
    {% endif %}

{% endblock %}
