{% extends "base.html" %}

{% block content %}
<h1>Flake details</h1>

<ul>
	<li>Flake: {{ uri }}</li>
</ul>

<h2>Revisions</h2>

<ul>
{% for revision in revisions %}
<li><a href="{{ revision.revision_link() }}">{{ revision.revision_uri }}</a> {% match revision.last_modified_time() %}{% when Some with (last_modified_time) %}({{ last_modified_time }}){% when None %}{% endmatch %}</li>
{% endfor %}
</ul>

<h2>Current Inputs</h2>

<ul>
{% for input in current_inputs %}
	<li>
		{{ input.input_name }}
		<ul>
			{% match input.locked_flake_uri %}
				{% when Some with (locked_flake_uri) %}
			<li>Flake: <a href="{{ input.locked_flake_link() }}">{{ locked_flake_uri }}</a></li>
				{% when None %}
			{% endmatch %}
		</ul>
	</li>
{% endfor %}
</ul>

{% endblock %}