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