52 lines
2.6 KiB
HTML
Executable File
52 lines
2.6 KiB
HTML
Executable File
{% extends "base.html" %}
|
|
{% block content %}
|
|
{% include "aes_nav.html" %}
|
|
<p class="sz"><a href="/erweiterungen/aes/forge">← Forge</a></p>
|
|
<h1 class="page-title">Repository: {{ name }}</h1>
|
|
|
|
{% if !hinweis.is_empty() %}<div class="panel"><p class="sz">{{ hinweis }}</p></div>{% endif %}
|
|
{% if !fehler.is_empty() %}<div class="panel"><p class="err">{{ fehler }}</p></div>{% endif %}
|
|
|
|
<div style="display:flex;flex-wrap:wrap;gap:10px">
|
|
<div class="card" style="flex:1;min-width:180px"><div class="sz">Default-Branch</div><div style="font-size:18px;font-weight:700">{{ default_branch }}</div></div>
|
|
<div class="card" style="flex:1;min-width:180px"><div class="sz">Sichtbarkeit</div><div style="font-size:18px;font-weight:700">{% if private %}privat{% else %}oeffentlich{% endif %}</div></div>
|
|
<div class="card" style="flex:2;min-width:240px"><div class="sz">Clone-URL</div><div class="sz" style="font-family:monospace;margin-top:6px">{{ clone_url }}</div></div>
|
|
</div>
|
|
|
|
<h2 class="page-title" style="font-size:18px;margin-top:20px">Pull Requests</h2>
|
|
{% if pulls.is_empty() %}
|
|
<p class="sz">Keine Pull Requests.</p>
|
|
{% else %}
|
|
<table class="tickets">
|
|
<thead><tr><th>#</th><th>Titel</th><th>Quelle → Ziel</th><th>Status</th><th></th></tr></thead>
|
|
<tbody>
|
|
{% for p in pulls %}
|
|
<tr>
|
|
<td class="sz">{{ p.number }}</td>
|
|
<td><b>{{ p.title }}</b></td>
|
|
<td class="sz">{{ p.head }} → {{ p.base }}</td>
|
|
<td><span class="badge {% if p.state == "open" %}ok{% else %}unknown{% endif %}">{{ p.state }}</span></td>
|
|
<td>
|
|
<form method="post" action="/erweiterungen/aes/forge/{{ name }}/pulls/{{ p.number }}/merge" class="inline-form" data-confirm="PR #{{ p.number }} mergen?">
|
|
<input type="hidden" name="_csrf" value="{{ ctx.csrf }}">
|
|
<button class="btn ghost mini" type="submit">Mergen</button>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% endif %}
|
|
|
|
<div class="panel" style="margin-top:14px">
|
|
<h3 style="margin-top:0">Pull Request eroeffnen</h3>
|
|
<form method="post" action="/erweiterungen/aes/forge/{{ name }}/pulls">
|
|
<input type="hidden" name="_csrf" value="{{ ctx.csrf }}">
|
|
<div class="formrow"><input type="text" name="title" placeholder="Titel" required></div>
|
|
<div class="formrow"><input type="text" name="head" placeholder="head-Branch (Quelle)" pattern="[A-Za-z0-9_./-]+" required></div>
|
|
<div class="formrow"><input type="text" name="base" placeholder="base-Branch (Ziel, z.B. main)" pattern="[A-Za-z0-9_./-]+" required></div>
|
|
<button class="btn" type="submit">PR anlegen</button>
|
|
</form>
|
|
</div>
|
|
{% endblock %}
|