mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-03 23:54:25 +01:00 
			
		
		
		
	Minor UI improvements
This commit is contained in:
		
							parent
							
								
									a8dc699e74
								
							
						
					
					
						commit
						8ea8209c19
					
				@ -788,6 +788,9 @@ function initPullRequestReview() {
 | 
				
			|||||||
    $('.btn-review').on('click', function(e) {
 | 
					    $('.btn-review').on('click', function(e) {
 | 
				
			||||||
        e.preventDefault();
 | 
					        e.preventDefault();
 | 
				
			||||||
        $(this).closest('.dropdown').find('.menu').toggle('visible');
 | 
					        $(this).closest('.dropdown').find('.menu').toggle('visible');
 | 
				
			||||||
 | 
					    }).closest('.dropdown').find('.link.close').on('click', function(e) {
 | 
				
			||||||
 | 
					        e.preventDefault();
 | 
				
			||||||
 | 
					        $(this).closest('.menu').toggle('visible');
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    $('.code-view .lines-code,.code-view .lines-num')
 | 
					    $('.code-view .lines-code,.code-view .lines-num')
 | 
				
			||||||
 | 
				
			|||||||
@ -27,9 +27,9 @@
 | 
				
			|||||||
			{{else}}
 | 
								{{else}}
 | 
				
			||||||
				<button name="is_review" value="true"  type="submit"
 | 
									<button name="is_review" value="true"  type="submit"
 | 
				
			||||||
						class="ui submit green tiny button btn-start-review">{{$.root.i18n.Tr "repo.diff.comment.start_review"}}</button>
 | 
											class="ui submit green tiny button btn-start-review">{{$.root.i18n.Tr "repo.diff.comment.start_review"}}</button>
 | 
				
			||||||
 | 
									<button type="submit"
 | 
				
			||||||
 | 
											class="ui submit tiny basic button btn-add-single">{{$.root.i18n.Tr "repo.diff.comment.add_single_comment"}}</button>
 | 
				
			||||||
			{{end}}
 | 
								{{end}}
 | 
				
			||||||
			<button type="submit"
 | 
					 | 
				
			||||||
					class="ui submit tiny basic button btn-add-single">{{$.root.i18n.Tr "repo.diff.comment.add_single_comment"}}</button>
 | 
					 | 
				
			||||||
			<button type="button" class="ui submit tiny basic button btn-cancel">{{$.root.i18n.Tr "cancel"}}</button>
 | 
								<button type="button" class="ui submit tiny basic button btn-cancel">{{$.root.i18n.Tr "cancel"}}</button>
 | 
				
			||||||
		</div>
 | 
							</div>
 | 
				
			||||||
	</div>
 | 
						</div>
 | 
				
			||||||
 | 
				
			|||||||
@ -32,7 +32,7 @@
 | 
				
			|||||||
		<div class="ui attached segment">
 | 
							<div class="ui attached segment">
 | 
				
			||||||
			<div class="render-content markdown has-emoji">
 | 
								<div class="render-content markdown has-emoji">
 | 
				
			||||||
			{{if .RenderedContent}}
 | 
								{{if .RenderedContent}}
 | 
				
			||||||
							{{.RenderedContent|Str2html}}
 | 
									{{.RenderedContent|Str2html}}
 | 
				
			||||||
			{{else}}
 | 
								{{else}}
 | 
				
			||||||
				<span class="no-content">{{$.root.i18n.Tr "repo.issues.no_content"}}</span>
 | 
									<span class="no-content">{{$.root.i18n.Tr "repo.issues.no_content"}}</span>
 | 
				
			||||||
			{{end}}
 | 
								{{end}}
 | 
				
			||||||
@ -40,12 +40,12 @@
 | 
				
			|||||||
			<div class="raw-content hide">{{.Content}}</div>
 | 
								<div class="raw-content hide">{{.Content}}</div>
 | 
				
			||||||
			<div class="edit-content-zone hide" data-write="issuecomment-{{.ID}}-write" data-preview="issuecomment-{{.ID}}-preview" data-update-url="{{$.root.RepoLink}}/comments/{{.ID}}" data-context="{{$.root.RepoLink}}"></div>
 | 
								<div class="edit-content-zone hide" data-write="issuecomment-{{.ID}}-write" data-preview="issuecomment-{{.ID}}-preview" data-update-url="{{$.root.RepoLink}}/comments/{{.ID}}" data-context="{{$.root.RepoLink}}"></div>
 | 
				
			||||||
		</div>
 | 
							</div>
 | 
				
			||||||
	{{$reactions := .Reactions.GroupByType}}
 | 
							{{$reactions := .Reactions.GroupByType}}
 | 
				
			||||||
	{{if $reactions}}
 | 
							{{if $reactions}}
 | 
				
			||||||
		<div class="ui attached segment reactions">
 | 
								<div class="ui attached segment reactions">
 | 
				
			||||||
		{{template "repo/issue/view_content/reactions" Dict "ctx" $ "ActionURL" (Printf "%s/comments/%d/reactions" $.root.RepoLink .ID) "Reactions" $reactions }}
 | 
								{{template "repo/issue/view_content/reactions" Dict "ctx" $ "ActionURL" (Printf "%s/comments/%d/reactions" $.root.RepoLink .ID) "Reactions" $reactions }}
 | 
				
			||||||
		</div>
 | 
								</div>
 | 
				
			||||||
	{{end}}
 | 
							{{end}}
 | 
				
			||||||
	</div>
 | 
						</div>
 | 
				
			||||||
</div>
 | 
					</div>
 | 
				
			||||||
{{end}}
 | 
					{{end}}
 | 
				
			||||||
 | 
				
			|||||||
@ -7,9 +7,7 @@
 | 
				
			|||||||
		<div class="ui clearing segment">
 | 
							<div class="ui clearing segment">
 | 
				
			||||||
			<form class="ui form" action="{{.Link}}/reviews/submit" method="post">
 | 
								<form class="ui form" action="{{.Link}}/reviews/submit" method="post">
 | 
				
			||||||
			{{.CsrfTokenHtml}}
 | 
								{{.CsrfTokenHtml}}
 | 
				
			||||||
				<div class="ui right floated">
 | 
									<i class="ui right floated link icon close"></i>
 | 
				
			||||||
					<button onclick="$('.btn-review').click()" type="button" class="ui tiny icon button"><i class="icon close"></i></button>
 | 
					 | 
				
			||||||
				</div>
 | 
					 | 
				
			||||||
				<div class="header">
 | 
									<div class="header">
 | 
				
			||||||
				{{$.i18n.Tr "repo.diff.review.header"}}
 | 
									{{$.i18n.Tr "repo.diff.review.header"}}
 | 
				
			||||||
				</div>
 | 
									</div>
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user