mirror of
https://github.com/go-gitea/gitea
synced 2024-08-19 22:00:48 +02:00
33 lines
1.7 KiB
Cheetah
33 lines
1.7 KiB
Cheetah
<form class="ui form" action="{{.Link}}/reviews/comments" method="post">
|
|
{{.CsrfTokenHtml}}
|
|
<input type="hidden" name="side" value="previous">
|
|
<input type="hidden" name="line" value="2">
|
|
<input type="hidden" name="path" value="README.md">
|
|
<input type="hidden" name="commit_id" value="e324f1688f063d6fd9268fb8f02149c9eb1a867c">
|
|
<input type="hidden" name="is_review" value="true">
|
|
<input type="hidden" name="diff_start_cid">
|
|
<input type="hidden" name="diff_end_cid">
|
|
<input type="hidden" name="diff_base_cid">
|
|
<div class="ui top attached tabular menu" data-write="write" data-preview="preview">
|
|
<a class="active item" data-tab="write">{{.i18n.Tr "write"}}</a>
|
|
<a class="item" data-tab="preview" data-url="{{AppSubUrl}}/api/v1/markdown" data-context="{{.RepoLink}}">{{.i18n.Tr "preview"}}</a>
|
|
</div>
|
|
<div class="ui bottom attached active tab segment" data-tab="write">
|
|
<div class="field">
|
|
<textarea name="content" placeholder="{{$.i18n.Tr "repo.diff.comment.placeholder"}}"></textarea>
|
|
</div>
|
|
</div>
|
|
<div class="ui bottom attached tab segment markdown" data-tab="preview">
|
|
{{.i18n.Tr "loading"}}
|
|
</div>
|
|
<div class="footer">
|
|
<span class="markdown-info"><i class="octicon octicon-markdown"></i> {{$.i18n.Tr "repo.diff.comment.markdown_info"}}</span>
|
|
<div class="ui right floated">
|
|
<div class="ui submit tiny basic button btn-cancel">{{$.i18n.Tr "cancel"}}</div>
|
|
<div class="ui submit tiny basic button btn-add-single">{{$.i18n.Tr "repo.diff.comment.add_single_comment"}}</div>
|
|
<button type="submit" class="ui submit green tiny button btn-add-comment">{{$.i18n.Tr "repo.diff.comment.add_review_comment"}}</button>
|
|
<div class="ui submit green tiny button btn-start-review">{{$.i18n.Tr "repo.diff.comment.start_review"}}</div>
|
|
</div>
|
|
</div>
|
|
</form>
|