GameOver1337 / GitClone Public
К репозиторию
4.2 KB
templates/release-new.html
4.2 KB
1{{define "title"}}Новый релиз · {{.Repo.Owner.Username}}/{{.Repo.Name}}{{end}}
2{{define "content"}}
3<div class="repo-topline">
4 <a class="repo-topline-link" href="/{{.Repo.CloneURL}}">
5 <svg class="octicon" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true">
6 <path d="M2 2.5A2.5 2.5 0 0 1 4.5 0h8.75a.75.75 0 0 1 .75.75v12.5a.75.75 0 0 1-.75.75h-2.5a.75.75 0 0 1 0-1.5h1.75v-2h-8a1 1 0 0 0-.714 1.7.75.75 0 1 1-1.072 1.05A2.495 2.495 0 0 1 2 11.5Zm10.5-1h-8a1 1 0 0 0-1 1v6.708A2.486 2.486 0 0 1 4.5 9h8ZM5 12.25a.25.25 0 0 1 .25-.25h3.5a.25.25 0 0 1 .25.25v3.25a.25.25 0 0 1-.4.2l-1.45-1.087a.249.249 0 0 0-.3 0L5.4 15.7a.25.25 0 0 1-.4-.2Z"/>
7 </svg>
8 <span class="repo-topline-owner">{{.Repo.Owner.Username}}</span>
9 <span class="repo-topline-sep">/</span>
10 <strong class="repo-topline-name">{{.Repo.Name}}</strong>
11 </a>
12 {{if .Repo.IsPrivate}}
13 <span class="badge badge-outline">Private</span>
14 {{else}}
15 <span class="badge badge-outline">Public</span>
16 {{end}}
17 <div class="toolbar-spacer"></div>
18 <a class="btn btn-sm" href="/{{.Repo.CloneURL}}/releases">← К релизам</a>
19</div>
20
21<nav class="repo-tabs" aria-label="Разделы репозитория">
22 <a href="/{{.Repo.CloneURL}}">
23 <svg class="octicon" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="m11.28 3.22 4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L13.94 8l-3.72-3.72a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215Zm-6.56 0a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042L2.06 8l3.72 3.72a.749.749 0 1 1-1.06 1.06L.47 8.53a.75.75 0 0 1 0-1.06Z"/></svg>
24 Code
25 </a>
26 <a href="/builds?repo={{.Repo.CloneURL}}">
27 <svg class="octicon" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Zm4.879-2.773 4.264 2.559a.25.25 0 0 1 0 .428l-4.264 2.559A.25.25 0 0 1 6 10.559V5.442a.25.25 0 0 1 .379-.215Z"/></svg>
28 Actions
29 </a>
30 <a class="active" href="/{{.Repo.CloneURL}}/releases">
31 <svg class="octicon" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16ZM4.5 8.5l2.5 2.5 4.5-4.5a1 1 0 0 0-1.414-1.414L6.99 8.172 5.914 7.086A1 1 0 0 0 4.5 8.5Z"/></svg>
32 Releases
33 </a>
34</nav>
35
36<div class="page-heading">
37 <h1>Новый релиз</h1>
38</div>
39
40<form method="POST" action="/{{.Repo.CloneURL}}/releases/new" class="box release-form">
41 <div class="box-body">
42 <input type="hidden" name="csrf_token" value="{{.CSRF}}">
43 {{if .Error}}<div class="flash flash-error">{{.Error}}</div>{{end}}
44
45 <div class="form-group">
46 <label for="tag">Тег <span class="muted">(обязательно)</span></label>
47 <input id="tag" class="form-control" type="text" name="tag" value="{{.Tag}}" placeholder="v1.0.0" autocomplete="off" required autofocus>
48 <p class="form-hint">Например: <code>v1.0.0</code>, <code>v1.1.0-beta.1</code> или <code>release/2026-11</code>.</p>
49 </div>
50
51 <div class="form-group">
52 <label for="title">Название</label>
53 <input id="title" class="form-control" type="text" name="title" value="{{.Title}}" placeholder="Первый стабильный релиз" autocomplete="off">
54 <p class="form-hint">Если оставить пустым, будет использован тег.</p>
55 </div>
56
57 <div class="form-group">
58 <label for="body">Описание</label>
59 <textarea id="body" class="form-control" name="body" rows="10" placeholder="Что нового в этом релизе">{{.Body}}</textarea>
60 </div>
61
62 <div class="form-group">
63 <label class="checkbox-label">
64 <input type="checkbox" name="prerelease" {{if .IsPrerelease}}checked{{end}}>
65 <span>Предварительная версия (pre-release)</span>
66 </label>
67 </div>
68
69 <div class="form-actions">
70 <button type="submit" class="btn btn-primary">Опубликовать релиз</button>
71 <a class="btn" href="/{{.Repo.CloneURL}}/releases">Отмена</a>
72 </div>
73 </div>
74</form>
75{{end}}