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 • 5.31 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 vbox">
13
<form method="post" class="vbox">
14
<x-hbox>
15
<label>{% trans %}Visibility:{% endtrans %}</label>
16
<label>
17
<input type="radio" name="visibility" value="2" {% if repo_data.visibility == 2 %}checked{% endif %}>
18
{% trans %}Public{% endtrans %}
19
</label>
20
<label>
21
<input type="radio" name="visibility" value="1" {% if repo_data.visibility == 1 %}checked{% endif %}>
22
{% trans %}Unlisted{% endtrans %}
23
</label>
24
<label>
25
<input type="radio" name="visibility" value="0" {% if repo_data.visibility == 0 %}checked{% endif %}>
26
{% trans %}Private{% endtrans %}
27
</label>
28
</x-hbox>
29
<label for="description">
30
{% trans %}Description{% endtrans %}
31
<textarea id="description" name="description" rows="4">{% if repo_data.info %}{{ repo_data.info }}{% endif %}</textarea>
32
</label>
33
<label for="url">
34
{% trans %}Homepage{% endtrans %}
35
<input id="url" name="url" type="url" value="{% if repo_data.url %}{{ repo_data.url }}{% endif %}">
36
</label>
37
<label for="default-branch">
38
{% trans %}Default branch{% endtrans %}
39
<select id="default-branch" name="default_branch">
40
{% for branch in branches %}
41
<option value="{{ branch }}" {% if branch == repo_data.default_branch %}selected{% endif %}>{{ branch }}</option>
42
{% endfor %}
43
</select>
44
{% trans %}This is the branch the application will redirect to automatically if one is not specified.
45
Note that only branch names are supported, not other references like tags or commit hashes.{% endtrans %}
46
</label>
47
<label for="site-branch">
48
{% trans %}Site branch{% endtrans %}
49
<select id="site-branch" name="site_branch">
50
<option value="">{% trans %}No sites{% endtrans %}</option>
51
{% for branch in branches %}
52
<option value="{{ branch }}" {% if branch == repo_data.site_branch %}selected{% endif %}>{{ branch }}</option>
53
{% endfor %}
54
</select>
55
</label>
56
<label>
57
<input type="checkbox" name="primary_site" {% if repo_data.has_site == 2 %}checked{% endif %}>
58
{% trans %}Make this the primary site{% endtrans %}
59
</label>
60
<p>
61
{% trans link=site_link, primary_link=primary_site_link %}
62
Host static sites for your projects, for free. The files in your site branch will be served at
63
{{ site_link }} or {{ primary_site_link }} if you make this the primary site.
64
{% endtrans %}
65
</p>
66
<p>
67
{% trans %}Even if this repository is private, the site will not have access control.{% endtrans %}
68
</p>
69
<button type="submit">{% trans %}Update{% endtrans %}</button>
70
</form>
71
{% if logged_in_user == username %}
72
<form action="/{{ username }}/{{ repository }}/settings/delete" method="post" class="vbox">
73
<h2>{% trans %}Delete repository{% endtrans %}</h2>
74
<p>
75
{% trans %}Deleting a repository will permanently remove its git database, forum, settings and other associated data. THIS CANNOT BE UNDONE IN ANY WAY!{% endtrans %}
76
</p>
77
<label>
78
{% trans %}Account password{% endtrans %}
79
<input type="password" name="password" placeholder="{% trans %}Write your password to confirm deletion{% endtrans %}" required>
80
</label>
81
<button type="submit">{% trans %}Delete repository{% endtrans %}</button>
82
</form>
83
{% endif %}
84
</section>
85
</article>
86
</x-vbox>
87
</x-frame>
88
</x-vbox>
89
{% endblock %}
90