diff options
Diffstat (limited to 'templates/repo/issue/new_form.tmpl')
-rw-r--r-- | templates/repo/issue/new_form.tmpl | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/templates/repo/issue/new_form.tmpl b/templates/repo/issue/new_form.tmpl index e904ca4ba7..943a9b2467 100644 --- a/templates/repo/issue/new_form.tmpl +++ b/templates/repo/issue/new_form.tmpl @@ -13,7 +13,10 @@ </a> <div class="ui segment content"> <div class="field"> - <input name="title" placeholder="{{.i18n.Tr "repo.milestones.title"}}" value="{{.title}}" tabindex="3" autofocus required> + <input name="title" id="issue_title" placeholder="{{.i18n.Tr "repo.milestones.title"}}" value="{{.title}}" tabindex="3" autofocus required> + {{if .PageIsComparePull}} + <span class="title_wip_desc">{{.i18n.Tr "repo.pulls.title_wip_desc" (index .PullRequestWorkInProgressPrefixes 0) | Safe}}</span> + {{end}} </div> {{template "repo/issue/comment_tab" .}} <div class="text right"> @@ -150,3 +153,7 @@ </div> </div> </form> +{{if .PageIsComparePull}} + <script>window.wipPrefixes = {{.PullRequestWorkInProgressPrefixes}}</script> +{{end}} + |