{% extends "web/_base_rightbar.html" %}
{% block title %}{{ path }}{% endblock %}
{% block content-right %}
    {{ block.super }}
    <!-- TODO: link to work request -->
    <ul class="mt-3 list-unstyled">
        <li>Workspace: {{ buildlog.workspace.name }}</li>
        <li>Created: {{ buildlog.created_at }}</li>
        <li>Expire: {{ buildlog.expire_at | default:"-" }}</li>
        {% if buildlog.created_by_work_request %}
            <li>
                Created by work request:
                <a href="{% url "work_requests:detail" pk=buildlog.created_by_work_request %}">{{ buildlog.created_by_work_request }}</a>
            </li>
        {% endif %}
        <li>Created by user: {{ buildlog.created_by | default:"-" }}</li>
        <li>
            Data: <pre><code>{{ data_yaml }}</code></pre>
        </li>
    </ul>
{% endblock %}
{% block content %}
    <h1 class="mb-4">{{ path }}</h1>
    <ul class="list-unstyled font-monospace text-nowrap border shadow-sm p-1"
        id="buildlog-lines">
        {% for lineno, line in lines %}
            <li>
                <a class="text-decoration-none" id="L{{ lineno }}" href="#L{{ lineno }}">{{ lineno }}</a>
                <span>{{ line }}</span>
            </li>
        {% endfor %}
    </ul>
{% endblock %}
