Menu
AkurAI-Build
publicLatest change 909be28483bafa4a3a18032f28ce83d29788fd24 - fix(public-ui): resolve AKURAI-BUILD-17..21 by Ólafur Búi Ólafsson
{% if page.latest_commit %}
<p class="pt-code-commit">Latest change <a href="{{ page.commit_href }}" aria-label="Browse repository at commit {{ page.latest_commit.sha }}"><code>{{ page.latest_commit.sha }}</code></a> - {{ page.latest_commit.message }} by {{ page.latest_commit.author }}</p>
{% endif %}
{% if page.is_file %}
<pre class="pt-code-source" tabindex="0" aria-label="Source of {{ page.path }}">{{ page.source }}</pre>
{% else %}
<div class="pt-table-wrap" role="region" aria-label="Files in {{ page.path or page.repository.name }}" tabindex="0" data-scrollable>
<table class="pt-data-table">
<caption class="pt-sr-only">Files in {{ page.path or page.repository.name }}</caption>
<thead><tr><th scope="col">Name</th><th scope="col">Kind</th><th scope="col">Size</th><th scope="col">Latest commit</th></tr></thead>
<tbody>
{% for entry in page.entries %}
<tr>
<td data-label="Name"><a class="pt-table-link" href="{{ entry.href }}" aria-label="Open {{ entry.kind }} {{ entry.name }}">{{ entry.name }}</a></td>
<td data-label="Kind">{{ entry.kind }}</td>
<td data-label="Size">{% if entry.kind == "tree" %}<span class="pt-sr-only">Not applicable</span>{% else %}{{ entry.size }}{% endif %}</td>
<td data-label="Latest commit">{{ entry.commit_message or "-" }}</td>
</tr>
{% else %}
<tr><td colspan="4">This directory is empty.</td></tr>
{% endfor %}
</tbody>
</table>
</div>
{% endif %}