Browse Source

Add ui style for "Open a blank issue" button (#12824)

* Add ui style for "Open a blank issue" button

Signed-off-by: a1012112796 <1012112796@qq.com>

* Apply review suggestion @silverwind

* format

* format 2

* fix message

Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
for-closed-social
赵智超 4 years ago
committed by GitHub
parent
commit
d8b5235ded
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 2 deletions
  1. +2
    -1
      options/locale/locale_en-US.ini
  2. +11
    -1
      templates/repo/issue/choose.tmpl

+ 2
- 1
options/locale/locale_en-US.ini View File

@ -940,7 +940,8 @@ issues.new.no_assignees = No Assignees
issues.new.no_reviewers = No reviewers issues.new.no_reviewers = No reviewers
issues.new.add_reviewer_title = Request review issues.new.add_reviewer_title = Request review
issues.choose.get_started = Get Started issues.choose.get_started = Get Started
issues.choose.blank = Open a blank issue
issues.choose.blank = Default
issues.choose.blank_about = Create an issue from default template.
issues.no_ref = No Branch/Tag Specified issues.no_ref = No Branch/Tag Specified
issues.create = Create Issue issues.create = Create Issue
issues.new_label = New Label issues.new_label = New Label

+ 11
- 1
templates/repo/issue/choose.tmpl View File

@ -19,7 +19,17 @@
</div> </div>
</div> </div>
{{end}} {{end}}
<a href="{{.RepoLink}}/issues/new{{if .milestone}}?milestone={{.milestone}}{{end}}">{{.i18n.Tr "repo.issues.choose.blank"}}</a>
<div class="ui attached segment">
<div class="ui two column grid">
<div class="column left aligned">
<strong>{{.i18n.Tr "repo.issues.choose.blank"}}</strong>
<br/>{{.i18n.Tr "repo.issues.choose.blank_about"}}
</div>
<div class="column right aligned">
<a href="{{.RepoLink}}/issues/new{{if .milestone}}?milestone={{.milestone}}{{end}}" class="ui green button">{{$.i18n.Tr "repo.issues.choose.get_started"}}</a>
</div>
</div>
</div>
</div> </div>
</div> </div>
{{template "base/footer" .}} {{template "base/footer" .}}

Loading…
Cancel
Save