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<input type="radio" name="visibility" value="2" {% if repo_data.visibility == 2 %}checked{% endif %}> 19{% trans %}Public{% endtrans %} 20</label> 21<label> 22<input type="radio" name="visibility" value="1" {% if repo_data.visibility == 1 %}checked{% endif %}> 23{% trans %}Unlisted{% endtrans %} 24</label> 25<label> 26<input type="radio" name="visibility" value="0" {% if repo_data.visibility == 0 %}checked{% endif %}> 27{% trans %}Private{% endtrans %} 28</label> 29</x-hbox> 30<label for="description"> 31{% trans %}Description{% endtrans %} 32<textarea id="description" name="description" rows="4">{% if repo_data.info %}{{ repo_data.info }}{% endif %}</textarea> 33</label> 34<label for="url"> 35{% trans %}Homepage{% endtrans %} 36<input id="url" name="url" type="url" value="{% if repo_data.url %}{{ repo_data.url }}{% endif %}"> 37</label> 38<label for="default-branch"> 39{% trans %}Default branch{% endtrans %} 40<select id="default-branch" name="default_branch"> 41{% for branch in branches %} 42<option value="{{ branch }}" {% if branch == repo_data.default_branch %}selected{% endif %}>{{ branch }}</option> 43{% endfor %} 44</select> 45{% trans %}This is the branch the application will redirect to automatically if one is not specified. 46Note that only branch names are supported, not other references like tags or commit hashes.{% endtrans %} 47</label> 48<label for="site-branch"> 49{% trans %}Site branch{% endtrans %} 50<select id="site-branch" name="site_branch"> 51<option value="">{% trans %}No sites{% endtrans %}</option> 52{% for branch in branches %} 53<option value="{{ branch }}" {% if branch == repo_data.site_branch %}selected{% endif %}>{{ branch }}</option> 54{% endfor %} 55</select> 56</label> 57<label> 58<input type="checkbox" name="primary_site" {% if repo_data.has_site == 2 %}checked{% endif %}> 59{% trans %}Make this the primary site{% endtrans %} 60</label> 61<p> 62{% trans link=site_link, primary_link=primary_site_link %} 63Host static sites for your projects, for free. The files in your site branch will be served at 64{{ site_link }} or {{ primary_site_link }} if you make this the primary site. 65{% endtrans %} 66</p> 67<p> 68{% trans %}Even if this repository is private, the site will not have access control.{% endtrans %} 69</p> 70<button type="submit">Update</button> 71</x-vbox> 72</form> 73</section> 74</article> 75</x-vbox> 76</x-frame> 77</x-vbox> 78{% endblock %} 79