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<x-vbox class="nopad"> 45<label for="site-branch">{% trans %}Site branch{% endtrans %}</label> 46<select id="site-branch" name="site_branch"> 47<option value="">{% trans %}No sites{% endtrans %}</option> 48{% for branch in branches %} 49<option value="{{ branch }}" {% if branch == repo_data.site_branch %}selected{% endif %}>{{ branch }}</option> 50{% endfor %} 51</select> 52</x-vbox> 53<label> 54<input type="checkbox" name="primary_site" value="1" {% if repo_data.has_site == 2 %}checked{% endif %}> 55{% trans %}Make this the primary site{% endtrans %} 56</label> 57<p> 58{% trans link=site_link, primary_link=primary_site_link %} 59Host static sites for your projects, for free. The files in your site branch will be served at 60{{ link }} or {{ primary_link }} if you make this the primary site. 61{% endtrans %} 62</p> 63<button type="submit">Update</button> 64</x-vbox> 65</form> 66</section> 67</article> 68</x-vbox> 69</x-frame> 70</x-vbox> 71{% endblock %} 72