repo-settings.html
ASCII text
1{% extends "repo.html" %} 2{% set active_page = "settings" %} 3 4{% block title %} 5{% trans username=username, repository=repository %}Settings of {{ username }}/{{ repository }}{% endtrans %} 6{% endblock %} 7{% block content %} 8<x-vbox> 9<x-frame style="--width: 896px;" class="flexible-space"> 10<x-vbox> 11<article class="card"> 12<section class="card-main"> 13<form method="post"> 14<x-vbox> 15<x-hbox> 16<label>{% trans %}Visibility:{% endtrans %}</label> 17<label> 18{% trans %}Public{% endtrans %} 19<input type="radio" name="visibility" value="2" {% if repo_data.visibility == 2 %}checked{% endif %}> 20</label> 21<label> 22{% trans %}Unlisted{% endtrans %} 23<input type="radio" name="visibility" value="1" {% if repo_data.visibility == 1 %}checked{% endif %}> 24</label> 25<label> 26{% trans %}Private{% endtrans %} 27<input type="radio" name="visibility" value="0" {% if repo_data.visibility == 0 %}checked{% endif %}> 28</label> 29</x-hbox> 30<x-vbox class="nopad"> 31<label for="description">{% trans %}Description{% endtrans %}</label> 32<textarea id="description" name="description" rows="4">{% if repo_data.info %}{{ repo_data.info }}{% endif %}</textarea> 33</x-vbox> 34<x-vbox class="nopad"> 35<label for="default-branch">{% trans %}Default branch{% endtrans %}</label> 36<select id="default-branch" name="default_branch"> 37{% for branch in branches %} 38<option value="{{ branch }}" {% if branch == repo_data.default_branch %}selected{% endif %}>{{ branch }}</option> 39{% endfor %} 40</select> 41{% trans %}This is the branch the application will redirect to automatically if one is not specified. 42Note that only branch names are supported, not other references like tags or commit hashes.{% endtrans %} 43</x-vbox> 44<button type="submit">Update</button> 45</x-vbox> 46</form> 47</section> 48</article> 49</x-vbox> 50</x-frame> 51</x-vbox> 52{% endblock %} 53