<header class="mbd-grid-lcr mbd-bg-2">
	<nav>
		<ul>
			<li>{% mbd_api view.mbd_call %}</li>
			<li class="mbd-success">
				<strong><code>API call succeeded</code></strong>
			</li>
		</ul>
	</nav>
	<nav>
		<ul>
			<li>
				{% with url=view.mbd_call.url %}
					<details>
						<summary>URL</summary>
						<section>
							<a class="mbd-underline" href="{{ url }}" title="Only works for unconfirmable calls">Call again (as non-popup)</a>
							{% mbd_file content=url title="URL" %}
						</section>
					</details>
				{% endwith %}
			</li>
			<li><details><summary>CLI</summary><section>{% mbd_file content=view.mbd_call.command_line_full title="CLI" %}</section></details></li>
			<li><details><summary>JSON</summary><section>{% mbd_file content=view.mbd_call.json_pretty title="JSON" %}</section></details></li>
		</ul>
	</nav>
	<nav>
		<ul>
			<li>
				<a href="{% url 'home' %}">
					<img class="mbd-icon" src="{% static 'mini_buildd.svg' %}" alt="Home" title="Home: {{ mbd.daemon.get_title }}">
				</a>
			</li>
			<li>
				<a role="button" onclick="location.reload();">
					<img class="mbd-icon" src="{% static "icons/actions/view-refresh.svg" %}" alt="Reload" title="Reload Parent Page (F5)">
				</a>
			</li>
			<li>
				<a role="button" onclick="$('#mbd-api-popup').addClass('mbd-hidden');">
					<img class="mbd-icon" src="{% static "icons/actions/window-close.svg" %}" alt="Close" title="Close Popup (ESC)">
				</a>
			</li>
		</ul>
	</nav>
</header>

{% include "mini_buildd/includes/messages.html" %}

<section>
	{% block results %}{% endblock %}
</section>
