diff options
author | KN4CK3R <admin@oldschoolhack.me> | 2021-06-15 03:12:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-14 21:12:33 -0400 |
commit | ebf253b841d56c5cb1e57cb1e5e50c06d315bdee (patch) | |
tree | 703f8c4d0302e578d402d6aa42635852303026df /templates/repo/diff/new_review.tmpl | |
parent | 0adcea9ba6946e9479314e188afe53dcb39da6b0 (diff) | |
download | gitea-ebf253b841d56c5cb1e57cb1e5e50c06d315bdee.tar.gz gitea-ebf253b841d56c5cb1e57cb1e5e50c06d315bdee.zip |
Add attachments for PR reviews (#16075)
* First step for multiple dropzones per page.
* Allow attachments on review comments.
* Lint.
* Fixed accidental initialize of the review textarea.
* Initialize SimpleMDE textarea.
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'templates/repo/diff/new_review.tmpl')
-rw-r--r-- | templates/repo/diff/new_review.tmpl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/templates/repo/diff/new_review.tmpl b/templates/repo/diff/new_review.tmpl index 9e65d6d420..cbaabe255e 100644 --- a/templates/repo/diff/new_review.tmpl +++ b/templates/repo/diff/new_review.tmpl @@ -15,6 +15,11 @@ <div class="ui field"> <textarea name="content" tabindex="0" rows="2" placeholder="{{$.i18n.Tr "repo.diff.review.placeholder"}}"></textarea> </div> + {{if .IsAttachmentEnabled}} + <div class="field"> + {{template "repo/upload" .}} + </div> + {{end}} <div class="ui divider"></div> <button type="submit" name="type" value="approve" {{ if and $.IsSigned ($.Issue.IsPoster $.SignedUser.ID) }} disabled {{ end }} class="ui submit green tiny button btn-submit">{{$.i18n.Tr "repo.diff.review.approve"}}</button> <button type="submit" name="type" value="comment" class="ui submit tiny basic button btn-submit">{{$.i18n.Tr "repo.diff.review.comment"}}</button> |