| 1 |
{% extends "base.html" %} |
| 2 |
{% import "repo_tabs.html" as m %} |
| 3 |
{% block title %}Fork {{ repo.owner }}/{{ repo.name }}{% endblock %} |
| 4 |
{% block tabs %}{% call m::tabs(repo, "code") %}{% endblock %} |
| 5 |
{% block content %} |
| 6 |
<div class="head"><h1>Fork <small>{{ repo.owner }}/{{ repo.name }}</small></h1></div> |
| 7 |
{% if let Some(e) = error %}<p class="error">{{ e }}</p>{% endif %} |
| 8 |
<form class="card" method="post" action="{{ repo.url }}/fork"> |
| 9 |
<input type="hidden" name="_csrf" value="{{ shell.csrf }}"> |
| 10 |
<label for="owner">Owner</label> |
| 11 |
<select id="owner" name="owner">{% for o in owners %}<option value="{{ o }}">{{ o }}</option>{% endfor %}</select> |
| 12 |
<label for="name">Name</label><input type="text" id="name" name="name" value="{{ name }}" required> |
| 13 |
<p class="small mute">The fork is a repository of its own, with every change and bookmark of this one and the same visibility. Its trust policy starts empty. Propose its changes back here from its page.</p> |
| 14 |
<button type="submit">FORK</button> |
| 15 |
</form> |
| 16 |
{% endblock %} |