mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 03:18:24 +00:00 
			
		
		
		
	Followup to https://github.com/go-gitea/gitea/pull/21784. - Restore muted effect on timeline author and issuelist comment icon - Remove whitespace inside shared user templates, fixing link hover underline - Use shared author link template more - Use `bold` class instead of CSS - Fix grey-light color being too dark on arc-green - Add missing black-light color - Fix issuelist progress bar color - Fix various other cases of missing `.muted` <img width="416" alt="Screenshot 2022-11-13 at 12 15 22" src="https://user-images.githubusercontent.com/115237/201519497-1d4725c6-bc8b-47b5-9f68-1278ac9a8c92.png"> <img width="324" alt="Screenshot 2022-11-13 at 12 16 52" src="https://user-images.githubusercontent.com/115237/201519501-c0d03700-f9af-4316-ab46-482f2c7c738b.png"> <img width="79" alt="Screenshot 2022-11-13 at 12 30 55" src="https://user-images.githubusercontent.com/115237/201519502-46dc2d73-bbdf-4a2e-84d3-d2976f793163.png"> <img width="440" alt="Screenshot 2022-11-13 at 12 41 03" src="https://user-images.githubusercontent.com/115237/201519876-ada33948-f84a-4aeb-a40d-5c873f9a49e9.png"> <img width="213" alt="Screenshot 2022-11-13 at 12 52 54" src="https://user-images.githubusercontent.com/115237/201520291-a4d7238e-aeca-46c7-9008-8b644b1b676e.png"> <img width="208" alt="Screenshot 2022-11-13 at 12 56 16" src="https://user-images.githubusercontent.com/115237/201520436-aa8ba109-b959-42fb-831a-021e806c7082.png"> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
		
			
				
	
	
		
			69 lines
		
	
	
		
			3.2 KiB
		
	
	
	
		
			Handlebars
		
	
	
	
	
	
			
		
		
	
	
			69 lines
		
	
	
		
			3.2 KiB
		
	
	
	
		
			Handlebars
		
	
	
	
	
	
| {{range .comments}}
 | |
| 
 | |
| {{$createdStr:= TimeSinceUnix .CreatedUnix $.root.locale}}
 | |
| <div class="comment" id="{{.HashTag}}">
 | |
| 	{{if .OriginalAuthor}}
 | |
| 		<span class="avatar"><img src="{{AppSubUrl}}/assets/img/avatar_default.png"></span>
 | |
| 	{{else}}
 | |
| 		{{template "shared/user/avatarlink" .Poster}}
 | |
| 	{{end}}
 | |
| 	<div class="content comment-container">
 | |
| 		<div class="ui top attached header comment-header df ac sb">
 | |
| 			<div class="comment-header-left df ac">
 | |
| 				{{if .OriginalAuthor}}
 | |
| 					<span class="text black bold mr-2">
 | |
| 						{{svg (MigrationIcon $.root.Repository.GetOriginalURLHostname)}}
 | |
| 						{{.OriginalAuthor}}
 | |
| 					</span>
 | |
| 					<span class="text grey">
 | |
| 						{{$.root.locale.Tr "repo.issues.commented_at" (.HashTag|Escape) $createdStr | Safe}}
 | |
| 					</span>
 | |
| 					<span class="text migrate">
 | |
| 						{{if $.root.Repository.OriginalURL}}
 | |
| 							({{$.root.locale.Tr "repo.migrated_from" ($.root.Repository.OriginalURL | Escape) ($.root.Repository.GetOriginalURLHostname | Escape) | Safe}})
 | |
| 						{{end}}
 | |
| 					</span>
 | |
| 				{{else}}
 | |
| 					<span class="text grey">
 | |
| 						{{template "shared/user/namelink" .Poster}}
 | |
| 						{{$.root.locale.Tr "repo.issues.commented_at" (.HashTag|Escape) $createdStr | Safe}}
 | |
| 					</span>
 | |
| 				{{end}}
 | |
| 			</div>
 | |
| 			<div class="comment-header-right actions df ac">
 | |
| 				{{if and .Review}}
 | |
| 					{{if eq .Review.Type 0}}
 | |
| 						<div class="ui label basic small yellow pending-label tooltip" data-content="{{$.root.locale.Tr "repo.issues.review.pending.tooltip" ($.root.locale.Tr "repo.diff.review") ($.root.locale.Tr "repo.diff.review.approve") ($.root.locale.Tr "repo.diff.review.comment") ($.root.locale.Tr "repo.diff.review.reject")}}">
 | |
| 						{{$.root.locale.Tr "repo.issues.review.pending"}}
 | |
| 						</div>
 | |
| 					{{else}}
 | |
| 						<div class="ui label basic small">
 | |
| 						{{$.root.locale.Tr "repo.issues.review.review"}}
 | |
| 						</div>
 | |
| 					{{end}}
 | |
| 				{{end}}
 | |
| 				{{template "repo/issue/view_content/add_reaction" Dict "ctx" $.root "ActionURL" (Printf "%s/comments/%d/reactions" $.root.RepoLink .ID)}}
 | |
| 				{{template "repo/issue/view_content/context_menu" Dict "ctx" $.root "item" . "delete" true "issue" false "diff" true "IsCommentPoster" (and $.root.IsSigned (eq $.root.SignedUserID .PosterID))}}
 | |
| 			</div>
 | |
| 		</div>
 | |
| 		<div class="ui attached segment comment-body">
 | |
| 			<div class="render-content markup" {{if or $.Permission.IsAdmin $.HasIssuesOrPullsWritePermission (and $.root.IsSigned (eq $.root.SignedUserID .PosterID))}}data-can-edit="true"{{end}}>
 | |
| 			{{if .RenderedContent}}
 | |
| 				{{.RenderedContent|Str2html}}
 | |
| 			{{else}}
 | |
| 				<span class="no-content">{{$.root.locale.Tr "repo.issues.no_content"}}</span>
 | |
| 			{{end}}
 | |
| 			</div>
 | |
| 			<div id="comment-{{.ID}}" 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>
 | |
| 		{{$reactions := .Reactions.GroupByType}}
 | |
| 		{{if $reactions}}
 | |
| 			<div class="ui attached segment reactions">
 | |
| 			{{template "repo/issue/view_content/reactions" Dict "ctx" $.root "ActionURL" (Printf "%s/comments/%d/reactions" $.root.RepoLink .ID) "Reactions" $reactions}}
 | |
| 			</div>
 | |
| 		{{end}}
 | |
| 	</div>
 | |
| </div>
 | |
| {{end}}
 |