AkurAI Build
Menu

Public repository / 8d41f1e10aceed387d425b43038f2070e399a349

AkurAI-Build / app/pages/notifications.html

Latest change e8aa34a9be50d7d7ea72f66991ff82dfca7d23e1 - OLI-276: Git over SSH, forks and mirrors, code search through akurai-index, repository insights by Ólafur Búi Ólafsson

{% extends "layouts/base.html" %}
{% block title %}Notifications — AkurAI Build{% endblock %}
{% block page %}notifications{% endblock %}
{% block body %}
<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">Repositories</a><a href="/app/runs">Runs</a><a href="/app/workers">Workers</a><a href="/app/search">Search</a><a href="/app/notifications" aria-current="page">Notifications</a><a href="/app/settings/ssh-keys">SSH keys</a></nav>
    <div class="pt-health"><span class="pt-dot" aria-hidden="true"></span><span id="health">connecting</span><span class="pt-version">v{{ version }}</span></div>
  </aside>
  <main class="pt-app-content">
  <div class="pt-admin-header">
    <h1 class="pt-admin-title">Notifications</h1>
    <span class="pt-muted">{{ unread }} unread</span>
    {% if unread > 0 %}<form method="post" action="/app/notifications/read-all"><button class="pt-button pt-small" type="submit">Mark all read</button></form>{% endif %}
  </div>
  <ol class="pt-commit-list pt-notifications">
    {% for n in items %}
    <li class="{% if not n.read_at %}pt-unread{% endif %}">
      <strong>{{ n.title }}</strong> <small>{{ n.repository }} · {{ n.kind }}</small>
      {% if n.body %}<p>{{ n.body }}</p>{% endif %}
      {% if n.link %}<a href="{{ n.link }}">Open</a>{% endif %}
      {% if not n.read_at %}<form method="post" action="/app/notifications/{{ n.id }}/read" class="pt-inline"><button class="pt-button pt-small" type="submit">Read</button></form>{% endif %}
    </li>
    {% else %}<li>Nothing yet.</li>{% endfor %}
  </ol>
  </main>
</div>
{% endblock %}