By using this site, you agree to have cookies stored on your device, strictly for functional purposes, such as storing your session and preferences.

Dismiss

 repo-prs.html

View raw Download
text/html • 2.36 kiB
HTML document, ASCII text
        
            
1
{% extends "repo.html" %}
2
{% set active_page = "prs" %}
3
4
{% block title %}
5
PRs of {{ username }}/{{ repository }}
6
{% endblock %}
7
{% block content %}
8
<x-vbox>
9
{% if logged_in_user %}
10
<x-frame style="--width: 896px;" class="flexible-space">
11
<form method="post">
12
<x-hbox>
13
<input name="headroute" value="{{ repo_data.route }}" required>
14
<input name="head" style="flex: 0 1 auto;" required placeholder="Head branch">
15
16
<iconify-icon icon="mdi-light:arrow-right" style="font-size: 2em;"></iconify-icon>
17
18
<select name="base" style="flex: 0 1 auto;" required>
19
<option value="" selected>Base branch</option>
20
{% for branch in branches %}
21
<option value="{{ branch }}">{{ branch }}</option>
22
{% endfor %}
23
</select>
24
<button type="submit">Request merging</button>
25
</x-hbox>
26
</form>
27
</x-frame>
28
{% endif %}
29
<x-frame style="--width: 896px;" class="flexible-space">
30
<x-vbox>
31
{% for pr in repo_data.bases %}
32
<article class="card card-horizontal">
33
<section class="card-main flexible-space">
34
<h3>{{ pr.head_route }} ({{ pr.head_branch }})<br>{{ pr.base_route }} ({{ pr.base_branch }})</h3>
35
<p>Requested by <a href="/{{ pr.owner.username }}">{{ pr.owner.username }}</a> &bull; {{ pr.timestamp | strftime("%A, %e %B %Y, %H:%M:%S") }}</p>
36
</section>
37
<section>
38
<x-hbox>
39
<form action="delete" method="post">
40
<input type="hidden" name="id" value="{{ pr.id }}">
41
<button type="submit" class="button-flat">Deny</button>
42
</form>
43
<form action="merge" method="post">
44
<input type="hidden" name="id" value="{{ pr.id }}">
45
<button type="submit">Merge</button>
46
</form>
47
</x-hbox>
48
</section>
49
</article>
50
{% endfor %}
51
</x-vbox>
52
</x-frame>
53
</x-vbox>
54
{% endblock %}
55