{% extends "base.html" %}

{% block title %}Smello - {{ captured.method }} {{ captured.host }}{% endblock %}

{% block content %}
<p><a href="/">&larr; Back to list</a></p>

{% include "partials/request_detail_partial.html" %}
{% endblock %}

{% block scripts %}
<script>
function copyText(id) {
    const el = document.getElementById(id);
    navigator.clipboard.writeText(el.textContent);
}

document.addEventListener('DOMContentLoaded', () => {
    document.querySelectorAll('.json-viewer').forEach(initJsonViewer);
});
</script>
{% endblock %}
