mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-23 13:55:27 +00:00
56a8929605
* Implemented "Reference in new issue" * Fixed menu style on "pulls/x/files" because "button" has a style. * Added context menu for PR file comments. * Use only a single modal for every comment. * Use current repository as default. Added search filter. * Added suggested changes. * Fixed assignment. Co-authored-by: Andrew Thornton <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de>
31 lines
1.2 KiB
Handlebars
31 lines
1.2 KiB
Handlebars
<div class="ui small modal" id="reference-issue-modal">
|
|
<div class="header">
|
|
{{.i18n.Tr "repo.issues.context.reference_issue"}}
|
|
</div>
|
|
<div class="content" style="text-align:left">
|
|
<form class="ui form" action="{{ Printf "%s/issues/new" .Repository.Link }}" method="post">
|
|
{{.CsrfTokenHtml}}
|
|
<div class="ui segment content">
|
|
<div class="field">
|
|
<span class="text"><strong>{{.i18n.Tr "repository"}}</strong></span>
|
|
<div class="ui search normal selection dropdown issue_reference_repository_search">
|
|
<div class="default text">{{.Repository.FullName}}</div>
|
|
<div class="menu"></div>
|
|
</div>
|
|
</div>
|
|
<div class="field">
|
|
<span class="text"><strong>{{.i18n.Tr "repo.milestones.title"}}</strong></span>
|
|
<input name="title" value="" autofocus required maxlength="255" autocomplete="off">
|
|
</div>
|
|
<div class="field">
|
|
<span class="text"><strong>{{.i18n.Tr "repo.issues.reference_issue.body"}}</strong></span>
|
|
<textarea name="content" class="form-control"></textarea>
|
|
</div>
|
|
<div class="text right">
|
|
<button class="ui green button">{{.i18n.Tr "repo.issues.create"}}</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|