2024-04-10 17:55:57 +02:00
|
|
|
<div class="w-full flex flex-col">
|
|
|
|
<div class="relative pl-2">
|
|
|
|
{% if has_parent %}
|
|
|
|
<div class="absolute top-4 left-[calc(-1rem-1px)] -translate-y-1/2 w-4 h-4 bg-white border-4 border-black radius-full"></div>
|
|
|
|
{% endif %}
|
|
|
|
<span class="text-2xl font-mono">{{name}} <span class="text-sm">{{weight}}</span></span>
|
|
|
|
<p>{{summary}}</p>
|
|
|
|
</div>
|
2024-04-09 16:35:18 +02:00
|
|
|
|
2024-04-10 17:55:57 +02:00
|
|
|
{% if dependencies != empty %}
|
|
|
|
<ul class="flex flex-col gap-y-1 pl-2 ml-8 border-l-2 border-black pt-4">
|
|
|
|
{% for dep in dependencies %}
|
|
|
|
<form class="p-2 w-full border border-black" hx-post="/api/dependency-tree" hx-swap="outerHTML" hx-trigger="load">
|
|
|
|
<input type="hidden" name="package" value="{{dep.name}}"/>
|
|
|
|
<p class="text-2xl font-mono">{{dep.name}}</p>
|
|
|
|
</form>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% else %}
|
|
|
|
<p class="pl-2">No dependencies</p>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|