By using this site, you agree to have cookies stored on your device, strictly for functional purposes, such as storing your session and preferences.

Dismiss

 repo-settings.html

View raw Download
text/plain • 4.3 kiB
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="default-branch">
35
{% trans %}Default branch{% endtrans %}
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.
42
Note that only branch names are supported, not other references like tags or commit hashes.{% endtrans %}
43
</label>
44
<label for="site-branch">
45
{% trans %}Site branch{% endtrans %}
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
</label>
53
<label>
54
<input type="checkbox" name="primary_site" {% 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 %}
59
Host 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
<p>
64
{% trans %}Even if this repository is private, the site will not have access control.{% endtrans %}
65
</p>
66
<button type="submit">Update</button>
67
</x-vbox>
68
</form>
69
</section>
70
</article>
71
</x-vbox>
72
</x-frame>
73
</x-vbox>
74
{% endblock %}
75