AkurAI Build
Menu

AkurAI-Build

public

Latest change 909be28483bafa4a3a18032f28ce83d29788fd24 - fix(public-ui): resolve AKURAI-BUILD-17..21 by Ólafur Búi Ólafsson

{% extends "layouts/base.html" %}
{% block title %}{{ page.repository.name }} / {{ page.path or "Code" }} - AkurAI Build{% endblock %}
{% block page %}repository-code{% endblock %}
{% block body %}
{% if page.public %}
<main class="ab-public">
  {% include "partials/public-header.html" %}
  <section class="ab-code-header" aria-labelledby="code-title">
    <p class="ab-kicker">Public repository / {{ page.reference }}</p>
    <h1 id="code-title">{{ page.repository.name }}{% if page.path %} / {{ page.path }}{% endif %}</h1>
    <p>Browse source at a stable ref. Authentication is required only for private repositories.</p>
  </section>
  <section class="pt-panel pt-code-browser" aria-label="Repository code">
    <nav class="pt-breadcrumb" aria-label="Code breadcrumbs"><a href="{{ page.parent_href }}">Parent</a><span aria-hidden="true">/</span>{% for crumb in page.breadcrumbs %}{% if not loop.last %}<a href="{{ crumb.href }}">{{ crumb.label }}</a><span aria-hidden="true">/</span>{% else %}<strong>{{ crumb.label }}</strong>{% endif %}{% endfor %}</nav>
    {% include "partials/code-content.html" %}
  </section>
  {% include "partials/public-footer.html" %}
</main>
{% else %}
<div class="pt-app-shell">
  <aside class="pt-app-sidebar"><a class="pt-app-brand" href="/app" aria-label="AkurAI Build overview"><span class="pt-mark" aria-hidden="true">A</span><span><strong>AkurAI Build</strong><small>Git-native delivery</small></span></a><nav class="pt-app-nav" aria-label="Workspace"><a href="/app">Overview</a><a href="/app/repositories" aria-current="page">Repositories</a><a href="/app/runs">Runs</a><a href="/app/workers">Workers</a></nav></aside>
  <main class="pt-app-content">
    <p class="pt-breadcrumb"><a href="{{ page.parent_href }}">Parent</a><span aria-hidden="true">/</span>{% for crumb in page.breadcrumbs %}{% if not loop.last %}<a href="{{ crumb.href }}">{{ crumb.label }}</a><span aria-hidden="true">/</span>{% else %}<strong>{{ crumb.label }}</strong>{% endif %}{% endfor %}</p>
    <section class="pt-panel pt-code-browser">
      <div class="pt-panel-head"><div><p class="pt-eyebrow">{{ page.reference }}</p><h1>{{ page.repository.name }}{% if page.path %} / {{ page.path }}{% endif %}</h1></div><a class="pt-button pt-small" href="{{ page.parent_href }}">Parent</a></div>
      {% include "partials/code-content.html" %}
    </section>
  </main>
</div>
{% endif %}
{% endblock %}