mirror of https://github.com/go-gitea/gitea
parent
8685b315a2
commit
85e1ad593a
File diff suppressed because one or more lines are too long
@ -0,0 +1,94 @@ |
|||||||
|
.ui.button.add-code-comment { |
||||||
|
font-size: 14px; |
||||||
|
height: 16px; |
||||||
|
padding: 0; |
||||||
|
padding-top: 2px; |
||||||
|
position: absolute; |
||||||
|
width: 16px; |
||||||
|
display: none; |
||||||
|
|
||||||
|
&:hover { |
||||||
|
font-size:16px; |
||||||
|
margin-top: -2px; |
||||||
|
margin-left: -2px; |
||||||
|
height: 20px; |
||||||
|
width: 20px; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
.focus-lines-new .ui.button.add-code-comment.add-code-comment-right, |
||||||
|
.focus-lines-old .ui.button.add-code-comment.add-code-comment-left { |
||||||
|
display: inline-block; |
||||||
|
} |
||||||
|
|
||||||
|
.comment-code-cloud { |
||||||
|
padding: 4px; |
||||||
|
margin: 0 auto; |
||||||
|
position: relative; |
||||||
|
border: 1px solid #f1f1f1; |
||||||
|
margin-top: 13px; |
||||||
|
margin-right: 10px; |
||||||
|
margin-bottom: 5px; |
||||||
|
|
||||||
|
&:before { |
||||||
|
content: " "; |
||||||
|
width: 0; |
||||||
|
height: 0; |
||||||
|
border-left: 13px solid transparent; |
||||||
|
border-right: 13px solid transparent; |
||||||
|
border-bottom: 13px solid #f1f1f1; |
||||||
|
left: 20px; |
||||||
|
position: absolute; |
||||||
|
top: -13px; |
||||||
|
} |
||||||
|
|
||||||
|
.attached.tab { |
||||||
|
border: none; |
||||||
|
padding: 0; |
||||||
|
margin: 0; |
||||||
|
|
||||||
|
&.markdown { |
||||||
|
padding: 1em; |
||||||
|
min-height: 168px; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
.right.menu.options .item { |
||||||
|
padding: 0.85714286em 0.442857em; |
||||||
|
cursor: pointer; |
||||||
|
} |
||||||
|
|
||||||
|
.ui.form textarea { |
||||||
|
border: 0px; |
||||||
|
} |
||||||
|
|
||||||
|
.ui.attached.tabular.menu { |
||||||
|
background: #f7f7f7; |
||||||
|
border: 1px solid #d4d4d5; |
||||||
|
padding-top: 5px; |
||||||
|
padding-left: 5px; |
||||||
|
margin-top: 0px; |
||||||
|
} |
||||||
|
|
||||||
|
.footer { |
||||||
|
border-top: 1px solid #f1f1f1; |
||||||
|
margin-top: 10px; |
||||||
|
|
||||||
|
.markdown-info { |
||||||
|
display: inline-block; |
||||||
|
margin: 5px 0; |
||||||
|
font-size: 12px; |
||||||
|
color: rgba(0,0,0,.6) |
||||||
|
} |
||||||
|
|
||||||
|
.ui.right.floated { |
||||||
|
padding-top: 6px; |
||||||
|
} |
||||||
|
|
||||||
|
&:after{ |
||||||
|
clear: both; |
||||||
|
content: ""; |
||||||
|
display: block; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,33 @@ |
|||||||
|
<div class="field comment-code-cloud"> |
||||||
|
<form class="ui form" action="{{.Link}}" method="post"> |
||||||
|
{{.CsrfTokenHtml}} |
||||||
|
<input type="hidden" name="side"> |
||||||
|
<input type="hidden" name="line"> |
||||||
|
<input type="hidden" name="path"> |
||||||
|
<input type="hidden" name="commit_id"> |
||||||
|
<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> |
||||||
|
<div class="ui submit green tiny button btn-add-comment">{{$.i18n.Tr "repo.diff.comment.add_review_comment"}}</div> |
||||||
|
<div class="ui submit green tiny button btn-start-review">{{$.i18n.Tr "repo.diff.comment.start_review"}}</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</form> |
||||||
|
</div> |
@ -0,0 +1,26 @@ |
|||||||
|
<div class="ui top right pointing dropdown custom"> |
||||||
|
<div class="ui tiny green button btn-review"> |
||||||
|
<span class="text">{{.i18n.Tr "repo.diff.review"}}</span> |
||||||
|
<i class="dropdown icon"></i> |
||||||
|
</div> |
||||||
|
<div class="menu"> |
||||||
|
<div class="ui clearing segment"> |
||||||
|
<form class="ui form" action="{{.Link}}" method="post"> |
||||||
|
{{.CsrfTokenHtml}} |
||||||
|
<div class="ui right floated"> |
||||||
|
<a href="#" class="close"><i class="icon close"></i></a> |
||||||
|
</div> |
||||||
|
<div class="header"> |
||||||
|
{{$.i18n.Tr "repo.diff.review.header"}} |
||||||
|
</div> |
||||||
|
<div class="ui field"> |
||||||
|
<textarea name="comment" tabindex="0" rows="2" placeholder="{{$.i18n.Tr "repo.diff.review.placeholder"}}"></textarea> |
||||||
|
</div> |
||||||
|
<div class="ui divider"></div> |
||||||
|
<div class="ui submit green tiny button btn-submit">{{$.i18n.Tr "repo.diff.review.approve"}}</div> |
||||||
|
<div class="ui submit tiny basic button btn-submit">{{$.i18n.Tr "repo.diff.review.comment"}}</div> |
||||||
|
<div class="ui submit red tiny button btn-submit">{{$.i18n.Tr "repo.diff.review.reject"}}</div> |
||||||
|
</form> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
Loading…
Reference in new issue