更新 test3
This commit is contained in:
parent
028612f6cc
commit
88861a0549
57
test3
57
test3
@ -15,18 +15,51 @@ fds
|
|||||||
af
|
af
|
||||||
asdfasdf
|
asdfasdf
|
||||||
asdfasdf
|
asdfasdf
|
||||||
asd
|
a{{if and $.root.SignedUserID (not $.Repository.IsArchived)}}
|
||||||
fas
|
<form class="ui form {{if $.hidden}}gt-hidden comment-form{{end}}" action="{{$.root.Issue.Link}}/files/reviews/comments" method="post">
|
||||||
df
|
{{$.root.CsrfTokenHtml}}
|
||||||
asdf
|
<input type="hidden" name="origin" value="{{if $.root.PageIsPullFiles}}diff{{else}}timeline{{end}}">
|
||||||
asd
|
<input type="hidden" name="latest_commit_id" value="{{$.root.AfterCommitID}}">
|
||||||
f
|
<input type="hidden" name="side" value="{{if $.Side}}{{$.Side}}{{end}}">
|
||||||
asdf
|
<input type="hidden" name="line" value="{{if $.Line}}{{$.Line}}{{end}}">
|
||||||
asd
|
<input type="hidden" name="path" value="{{if $.File}}{{$.File}}{{end}}">
|
||||||
f
|
<input type="hidden" name="diff_start_cid">
|
||||||
asdf
|
<input type="hidden" name="diff_end_cid">
|
||||||
asd
|
<input type="hidden" name="diff_base_cid">
|
||||||
fas
|
|
||||||
|
{{template "shared/combomarkdowneditor" (dict
|
||||||
|
"locale" $.root.locale
|
||||||
|
"MarkdownPreviewUrl" (print $.root.Repository.Link "/markup")
|
||||||
|
"MarkdownPreviewContext" $.root.RepoLink
|
||||||
|
"TextareaName" "content"
|
||||||
|
"TextareaPlaceholder" ($.locale.Tr "repo.diff.comment.placeholder")
|
||||||
|
"DropzoneParentContainer" "form"
|
||||||
|
"DisableAutosize" "true"
|
||||||
|
)}}
|
||||||
|
|
||||||
|
<div class="field footer gt-mx-3">
|
||||||
|
<span class="markup-info">{{svg "octicon-markup"}} {{$.root.locale.Tr "repo.diff.comment.markdown_info"}}</span>
|
||||||
|
<div class="ui right">
|
||||||
|
{{if $.reply}}
|
||||||
|
<button class="ui submit green tiny button btn-reply" type="submit">{{$.root.locale.Tr "repo.diff.comment.reply"}}</button>
|
||||||
|
<input type="hidden" name="reply" value="{{$.reply}}">
|
||||||
|
<input type="hidden" name="single_review" value="true">
|
||||||
|
{{else}}
|
||||||
|
{{if $.root.CurrentReview}}
|
||||||
|
<button name="pending_review" type="submit" class="ui submit green tiny button btn-add-comment">{{$.root.locale.Tr "repo.diff.comment.add_review_comment"}}</button>
|
||||||
|
{{else}}
|
||||||
|
<button name="pending_review" type="submit" class="ui submit green tiny button btn-start-review">{{$.root.locale.Tr "repo.diff.comment.start_review"}}</button>
|
||||||
|
<button name="single_review" value="true" type="submit" class="ui submit tiny basic button btn-add-single">{{$.root.locale.Tr "repo.diff.comment.add_single_comment"}}</button>
|
||||||
|
{{end}}
|
||||||
|
{{end}}
|
||||||
|
{{if or (not $.HasComments) $.hidden}}
|
||||||
|
<button type="button" class="ui submit tiny basic button btn-cancel cancel-code-comment">{{$.root.locale.Tr "cancel"}}</button>
|
||||||
|
{{end}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
{{end}}
|
||||||
|
|
||||||
df
|
df
|
||||||
asd
|
asd
|
||||||
fa
|
fa
|
||||||
|
Loading…
x
Reference in New Issue
Block a user