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