2020-09-11 10:48:39 -04:00
|
|
|
{{template "base/head" .}}
|
2023-02-01 17:56:10 -05:00
|
|
|
<div role="main" aria-label="{{.Title}}" class="page-content repository new issue">
|
2020-09-11 10:48:39 -04:00
|
|
|
{{template "repo/header" .}}
|
|
|
|
<div class="ui container">
|
2022-09-02 03:58:49 -04:00
|
|
|
{{template "base/alert" .}}
|
2024-04-02 07:48:07 -04:00
|
|
|
<div class="issue-navbar">
|
2020-09-11 10:48:39 -04:00
|
|
|
{{template "repo/issue/navbar" .}}
|
|
|
|
</div>
|
2023-06-29 08:24:22 -04:00
|
|
|
<div class="divider"></div>
|
2020-09-11 10:48:39 -04:00
|
|
|
{{range .IssueTemplates}}
|
|
|
|
<div class="ui attached segment">
|
|
|
|
<div class="ui two column grid">
|
|
|
|
<div class="column left aligned">
|
2024-02-24 17:34:51 -05:00
|
|
|
<strong>{{.Name}}</strong>
|
|
|
|
<br>{{.About}}
|
2020-09-11 10:48:39 -04:00
|
|
|
</div>
|
|
|
|
<div class="column right aligned">
|
2023-09-25 04:56:50 -04:00
|
|
|
<a href="{{$.RepoLink}}/issues/new?template={{.FileName}}{{if $.milestone}}&milestone={{$.milestone}}{{end}}{{if $.project}}&project={{$.project}}{{end}}" class="ui primary button">{{ctx.Locale.Tr "repo.issues.choose.get_started"}}</a>
|
2020-09-11 10:48:39 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
2023-03-28 14:22:07 -04:00
|
|
|
{{range .IssueConfig.ContactLinks}}
|
|
|
|
<div class="ui attached segment">
|
|
|
|
<div class="ui two column grid">
|
|
|
|
<div class="column left aligned">
|
2024-02-24 17:34:51 -05:00
|
|
|
<strong>{{.Name}}</strong>
|
|
|
|
<br>{{.About}}
|
2023-03-28 14:22:07 -04:00
|
|
|
</div>
|
|
|
|
<div class="column right aligned">
|
2023-09-25 04:56:50 -04:00
|
|
|
<a href="{{.URL}}" class="ui primary button">{{svg "octicon-link-external"}} {{ctx.Locale.Tr "repo.issues.choose.open_external_link"}}</a>
|
2023-03-28 14:22:07 -04:00
|
|
|
</div>
|
2020-09-15 22:07:09 -04:00
|
|
|
</div>
|
2023-03-28 14:22:07 -04:00
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
{{if .IssueConfig.BlankIssuesEnabled}}
|
|
|
|
<div class="ui attached segment">
|
|
|
|
<div class="ui two column grid">
|
|
|
|
<div class="column left aligned">
|
2023-09-25 04:56:50 -04:00
|
|
|
<strong>{{ctx.Locale.Tr "repo.issues.choose.blank"}}</strong>
|
|
|
|
<br/>{{ctx.Locale.Tr "repo.issues.choose.blank_about"}}
|
2023-03-28 14:22:07 -04:00
|
|
|
</div>
|
|
|
|
<div class="column right aligned">
|
2023-09-25 04:56:50 -04:00
|
|
|
<a href="{{.RepoLink}}/issues/new?{{if .milestone}}&milestone={{.milestone}}{{end}}{{if $.project}}&project={{$.project}}{{end}}" class="ui primary button">{{ctx.Locale.Tr "repo.issues.choose.get_started"}}</a>
|
2023-03-28 14:22:07 -04:00
|
|
|
</div>
|
2020-09-15 22:07:09 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-03-28 14:22:07 -04:00
|
|
|
{{end}}
|
|
|
|
{{- if .IssueConfigError}}{{/* normal warning flash makes problems here*/}}
|
|
|
|
<div class="ui warning message">
|
|
|
|
<div class="text left">
|
2023-09-25 04:56:50 -04:00
|
|
|
<div>{{ctx.Locale.Tr "repo.issues.choose.invalid_config"}}</div>
|
2023-06-14 14:17:58 -04:00
|
|
|
<div>{{.IssueConfigError}}</div>
|
2023-03-28 14:22:07 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
2020-09-11 10:48:39 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{template "base/footer" .}}
|