AkurAI Build
Menu

AkurAI-Build

public

Latest change e16ed955e37bc7f7b00de000a208ef91006cf60e - Adopt the AkurAI ID SSO contract and inject pipeline build context by AkurAI Build

{% extends "layouts/base.html" %}
{% block title %}{{ page.repository.name }}{% if page.path %} / {{ page.path }}{% endif %} — AkurAI Build{% endblock %}
{% block page %}repository-code{% endblock %}
{% block body %}
{% if page.public %}
<main class="ab-public">
  {% include "partials/public-header.html" %}
  <div class="ab-repo-page">
    <header class="ab-repo-head">
      <div class="ab-repo-title-row">
        <span class="pt-repo-icon" aria-hidden="true"><svg width="18" height="18" viewBox="0 0 16 16" fill="currentColor"><path d="M2 2.5A2.5 2.5 0 0 1 4.5 0h8.75a.75.75 0 0 1 .75.75v12.5a.75.75 0 0 1-.75.75h-2.5a.75.75 0 0 1 0-1.5h1.75v-2h-8a1 1 0 0 0-.714 1.7.75.75 0 1 1-1.072 1.05A2.495 2.495 0 0 1 2 11.5Zm10.5-1h-8a1 1 0 0 0-1 1v6.708A2.486 2.486 0 0 1 4.5 9h8Z"/></svg></span>
        <h1><a href="/repos/{{ page.repository.name }}">{{ page.repository.name }}</a></h1>
        <span class="pt-badge" data-visibility="{{ page.repository.visibility }}">{{ page.repository.visibility }}</span>
      </div>
      {% if page.description %}<p class="ab-repo-description">{{ page.description }}</p>{% endif %}
    </header>

    {% if page.path or page.is_file %}
    <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>
    {% endif %}

    <div class="ab-repo-grid{% if page.path or page.is_file %} ab-repo-grid-full{% endif %}">
      <div class="ab-repo-main">
        {% if page.counts %}
        <div class="ab-repo-meta-bar">
          <span class="ab-repo-ref"><svg width="14" height="14" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M9.5 3.25a2.25 2.25 0 1 1 3 2.122V6A2.5 2.5 0 0 1 10 8.5H6a1 1 0 0 0-1 1v1.128a2.251 2.251 0 1 1-1.5 0V5.372a2.25 2.25 0 1 1 1.5 0v1.836A2.493 2.493 0 0 1 6 7h4a1 1 0 0 0 1-1v-.628A2.25 2.25 0 0 1 9.5 3.25Z"/></svg>{{ page.reference }}</span>
          <span class="ab-repo-counts">
            <span><b>{{ page.counts.commits }}</b> commits</span>
            <span><b>{{ page.counts.branches }}</b> branches</span>
            <span><b>{{ page.counts.tags }}</b> tags</span>
          </span>
        </div>
        {% endif %}

        {% if page.is_file %}
        <section class="pt-panel pt-code-browser" aria-label="File content">
          {% include "partials/code-content.html" %}
        </section>
        {% else %}
        <div class="pt-attached-table pt-repo-files">
          {% if page.latest_commit %}
          <div class="pt-repo-latest-commit">
            <span class="pt-commit-author">{{ page.latest_commit.author }}</span>
            <span class="pt-commit-msg">{{ page.latest_commit.message }}</span>
            {% if page.commit_href %}<a class="ab-commit-sha" href="{{ page.commit_href }}"><code>{{ page.latest_commit.sha[:7] }}</code></a>{% endif %}
          </div>
          {% endif %}
          <div class="pt-repo-file-list">
            {% for entry in page.entries %}
            <a class="pt-repo-file-row" href="{{ entry.href }}">
              <span class="pt-repo-file-name" data-kind="{{ entry.kind }}">
                {% if entry.kind == "tree" %}<svg width="14" height="14" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M1.75 1A1.75 1.75 0 0 0 0 2.75v10.5C0 14.216.784 15 1.75 15h12.5A1.75 1.75 0 0 0 16 13.25v-8.5A1.75 1.75 0 0 0 14.25 3H7.5a.25.25 0 0 1-.2-.1l-.9-1.2C6.07 1.26 5.55 1 5 1Z"/></svg>{% else %}<svg width="14" height="14" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M2 1.75C2 .784 2.784 0 3.75 0h6.586c.464 0 .909.184 1.237.513l2.914 2.914c.329.328.513.773.513 1.237v9.586A1.75 1.75 0 0 1 13.25 16h-9.5A1.75 1.75 0 0 1 2 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h9.5a.25.25 0 0 0 .25-.25V6h-2.75A1.75 1.75 0 0 1 9 4.25V1.5Zm6.75.062V4.25c0 .138.112.25.25.25h2.688l-.011-.013-2.914-2.914-.013-.011Z"/></svg>{% endif %}
                <span>{{ entry.name }}</span>
              </span>
              <span class="pt-repo-file-msg">{{ entry.commit_message or "" }}</span>
              <span class="pt-repo-file-age">{% if entry.kind == "tree" %}&mdash;{% else %}{{ entry.size }}{% endif %}</span>
            </a>
            {% else %}
            <p class="pt-empty">This directory is empty.</p>
            {% endfor %}
          </div>
        </div>

        {% if page.readme_html %}
        <div class="pt-attached-table pt-repo-readme">
          <div class="pt-attached-table-header" id="readme"><svg width="14" height="14" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" style="vertical-align:-2px;margin-right:6px"><path d="M0 1.75A.75.75 0 0 1 .75 1h4.253c1.227 0 2.317.59 3 1.501A3.743 3.743 0 0 1 11.006 1h4.245a.75.75 0 0 1 .75.75v10.5a.75.75 0 0 1-.75.75h-4.507a2.25 2.25 0 0 0-1.591.659l-.622.621a.75.75 0 0 1-1.06 0l-.622-.621A2.25 2.25 0 0 0 5.258 13H.75a.75.75 0 0 1-.75-.75Zm7.251 10.324.004-5.073-.002-2.253A2.25 2.25 0 0 0 5.003 2.5H1.5v9h3.757a3.75 3.75 0 0 1 1.994.574ZM8.755 4.75l-.004 7.322a3.752 3.752 0 0 1 1.992-.572H14.5v-9h-3.495a2.25 2.25 0 0 0-2.25 2.25Z"/></svg>{{ page.readme_name }}</div>
          <div class="pt-panel-body pt-markdown">{{ page.readme_html | safe }}</div>
        </div>
        {% endif %}
        {% endif %}
      </div>

      {% if not page.path and not page.is_file %}
      <aside class="pt-repo-sidebar" aria-label="Repository information">
        <section class="pt-repo-side-section">
          <h2>About</h2>
          {% if page.description %}<p class="pt-repo-about-description">{{ page.description }}</p>{% else %}<p class="pt-repo-empty-state">No description provided.</p>{% endif %}
          {% if page.readme_name %}<nav class="pt-repo-about-links" aria-label="Repository resources"><a href="#readme">{{ page.readme_name }}</a></nav>{% endif %}
          <h3 class="pt-repo-side-label">Clone</h3>
          <div class="pt-repo-clone-url"><code>{{ page.repository.url }}</code></div>
        </section>

        {% if page.recent_commits %}
        <section class="pt-repo-side-section">
          <h2>Recent commits</h2>
          <ol class="pt-repo-commit-list">
            {% for commit in page.recent_commits %}
            <li class="pt-repo-commit-item">
              <a class="pt-repo-commit-link" href="{{ commit.href }}">
                <p class="pt-repo-commit-message">{{ commit.message }}</p>
                <span class="pt-repo-commit-meta"><span>{{ commit.author }}</span><time>{{ commit.date }}</time></span>
              </a>
            </li>
            {% endfor %}
          </ol>
        </section>
        {% endif %}

        {% if page.contributors %}
        <section class="pt-repo-side-section">
          <h2>Contributors</h2>
          <ul class="pt-repo-contributor-list">
            {% for contributor in page.contributors %}
            <li class="pt-repo-contributor">
              <span class="pt-repo-contributor-avatar" role="img" aria-label="{{ contributor.name }} initials">{{ contributor.initial }}</span>
              <span class="pt-repo-contributor-details"><strong>{{ contributor.name }}</strong><small>{{ contributor.commit_count }} commit{% if contributor.commit_count != 1 %}s{% endif %}</small></span>
            </li>
            {% endfor %}
          </ul>
        </section>
        {% endif %}

        {% if page.languages %}
        <section class="pt-repo-side-section">
          <h2>Languages</h2>
          <div class="pt-repo-language-bar" role="img" aria-label="{% for language in page.languages %}{{ language.name }} {{ language.percentage_label }}%{% if not loop.last %}, {% endif %}{% endfor %}">
            <svg viewBox="0 0 100 8" preserveAspectRatio="none" aria-hidden="true">{% for language in page.languages %}<rect x="{{ language.offset }}" width="{{ language.percentage }}" height="8" fill="{{ language.color }}"></rect>{% endfor %}</svg>
          </div>
          <ul class="pt-repo-language-list">
            {% for language in page.languages %}
            <li><span class="pt-repo-language-name"><svg class="pt-repo-language-dot" viewBox="0 0 8 8" aria-hidden="true"><circle cx="4" cy="4" r="4" fill="{{ language.color }}"></circle></svg><span>{{ language.name }}</span></span><strong>{{ language.percentage_label }}%</strong></li>
            {% endfor %}
          </ul>
        </section>
        {% endif %}
      </aside>
      {% endif %}
    </div>
  </div>
  {% 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>{% include "partials/app-account.html" %}</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 %}