mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-03 21:08:25 +00:00 
			
		
		
		
	Improve commit record's ui in comment list (#26619)
Before:   After:   --------- Co-authored-by: silverwind <me@silverwind.io>
This commit is contained in:
		@@ -148,7 +148,7 @@
 | 
				
			|||||||
				</span>
 | 
									</span>
 | 
				
			||||||
				{{if eq .RefAction 3}}</del>{{end}}
 | 
									{{if eq .RefAction 3}}</del>{{end}}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
				<div class="detail">
 | 
									<div class="detail flex-text-block">
 | 
				
			||||||
					<span class="text grey muted-links"><a href="{{.RefIssueLink ctx}}"><b>{{.RefIssueTitle ctx}}</b> {{.RefIssueIdent ctx}}</a></span>
 | 
										<span class="text grey muted-links"><a href="{{.RefIssueLink ctx}}"><b>{{.RefIssueTitle ctx}}</b> {{.RefIssueIdent ctx}}</a></span>
 | 
				
			||||||
				</div>
 | 
									</div>
 | 
				
			||||||
			</div>
 | 
								</div>
 | 
				
			||||||
@@ -160,7 +160,7 @@
 | 
				
			|||||||
					{{template "shared/user/authorlink" .Poster}}
 | 
										{{template "shared/user/authorlink" .Poster}}
 | 
				
			||||||
					{{ctx.Locale.Tr "repo.issues.commit_ref_at" .EventTag $createdStr}}
 | 
										{{ctx.Locale.Tr "repo.issues.commit_ref_at" .EventTag $createdStr}}
 | 
				
			||||||
				</span>
 | 
									</span>
 | 
				
			||||||
				<div class="detail">
 | 
									<div class="detail flex-text-block">
 | 
				
			||||||
					{{svg "octicon-git-commit"}}
 | 
										{{svg "octicon-git-commit"}}
 | 
				
			||||||
					<span class="text grey muted-links">{{.Content | SanitizeHTML}}</span>
 | 
										<span class="text grey muted-links">{{.Content | SanitizeHTML}}</span>
 | 
				
			||||||
				</div>
 | 
									</div>
 | 
				
			||||||
@@ -252,7 +252,7 @@
 | 
				
			|||||||
					{{ctx.Locale.Tr "repo.issues.stop_tracking_history" $createdStr}}
 | 
										{{ctx.Locale.Tr "repo.issues.stop_tracking_history" $createdStr}}
 | 
				
			||||||
				</span>
 | 
									</span>
 | 
				
			||||||
				{{template "repo/issue/view_content/comments_delete_time" dict "ctxData" $ "comment" .}}
 | 
									{{template "repo/issue/view_content/comments_delete_time" dict "ctxData" $ "comment" .}}
 | 
				
			||||||
				<div class="detail">
 | 
									<div class="detail flex-text-block">
 | 
				
			||||||
					{{svg "octicon-clock"}}
 | 
										{{svg "octicon-clock"}}
 | 
				
			||||||
					{{if .RenderedContent}}
 | 
										{{if .RenderedContent}}
 | 
				
			||||||
						{{/* compatibility with time comments made before v1.21 */}}
 | 
											{{/* compatibility with time comments made before v1.21 */}}
 | 
				
			||||||
@@ -271,7 +271,7 @@
 | 
				
			|||||||
					{{ctx.Locale.Tr "repo.issues.add_time_history" $createdStr}}
 | 
										{{ctx.Locale.Tr "repo.issues.add_time_history" $createdStr}}
 | 
				
			||||||
				</span>
 | 
									</span>
 | 
				
			||||||
				{{template "repo/issue/view_content/comments_delete_time" dict "ctxData" $ "comment" .}}
 | 
									{{template "repo/issue/view_content/comments_delete_time" dict "ctxData" $ "comment" .}}
 | 
				
			||||||
				<div class="detail">
 | 
									<div class="detail flex-text-block">
 | 
				
			||||||
					{{svg "octicon-clock"}}
 | 
										{{svg "octicon-clock"}}
 | 
				
			||||||
					{{if .RenderedContent}}
 | 
										{{if .RenderedContent}}
 | 
				
			||||||
						{{/* compatibility with time comments made before v1.21 */}}
 | 
											{{/* compatibility with time comments made before v1.21 */}}
 | 
				
			||||||
@@ -331,7 +331,7 @@
 | 
				
			|||||||
					{{ctx.Locale.Tr "repo.issues.dependency.added_dependency" $createdStr}}
 | 
										{{ctx.Locale.Tr "repo.issues.dependency.added_dependency" $createdStr}}
 | 
				
			||||||
				</span>
 | 
									</span>
 | 
				
			||||||
				{{if .DependentIssue}}
 | 
									{{if .DependentIssue}}
 | 
				
			||||||
					<div class="detail">
 | 
										<div class="detail flex-text-block">
 | 
				
			||||||
						{{svg "octicon-plus"}}
 | 
											{{svg "octicon-plus"}}
 | 
				
			||||||
						<span class="text grey muted-links">
 | 
											<span class="text grey muted-links">
 | 
				
			||||||
							<a href="{{.DependentIssue.Link}}">
 | 
												<a href="{{.DependentIssue.Link}}">
 | 
				
			||||||
@@ -354,8 +354,8 @@
 | 
				
			|||||||
					{{ctx.Locale.Tr "repo.issues.dependency.removed_dependency" $createdStr}}
 | 
										{{ctx.Locale.Tr "repo.issues.dependency.removed_dependency" $createdStr}}
 | 
				
			||||||
				</span>
 | 
									</span>
 | 
				
			||||||
				{{if .DependentIssue}}
 | 
									{{if .DependentIssue}}
 | 
				
			||||||
					<div class="detail">
 | 
										<div class="detail flex-text-block">
 | 
				
			||||||
						<span class="text grey muted-links">{{svg "octicon-trash"}}</span>
 | 
											{{svg "octicon-trash"}}
 | 
				
			||||||
						<span class="text grey muted-links">
 | 
											<span class="text grey muted-links">
 | 
				
			||||||
							<a href="{{.DependentIssue.Link}}">
 | 
												<a href="{{.DependentIssue.Link}}">
 | 
				
			||||||
								{{if eq .DependentIssue.RepoID .Issue.RepoID}}
 | 
													{{if eq .DependentIssue.RepoID .Issue.RepoID}}
 | 
				
			||||||
@@ -506,7 +506,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
					{{ctx.Locale.Tr "repo.issues.del_time_history" $createdStr}}
 | 
										{{ctx.Locale.Tr "repo.issues.del_time_history" $createdStr}}
 | 
				
			||||||
				</span>
 | 
									</span>
 | 
				
			||||||
				<div class="detail">
 | 
									<div class="detail flex-text-block">
 | 
				
			||||||
					{{svg "octicon-clock"}}
 | 
										{{svg "octicon-clock"}}
 | 
				
			||||||
					{{if .RenderedContent}}
 | 
										{{if .RenderedContent}}
 | 
				
			||||||
						{{/* compatibility with time comments made before v1.21 */}}
 | 
											{{/* compatibility with time comments made before v1.21 */}}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1065,11 +1065,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
.repository.view.issue .comment-list .event .detail {
 | 
					.repository.view.issue .comment-list .event .detail {
 | 
				
			||||||
  margin-top: 4px;
 | 
					  margin-top: 4px;
 | 
				
			||||||
  margin-left: 14px;
 | 
					  margin-left: 15px;
 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
.repository.view.issue .comment-list .event .detail .svg {
 | 
					 | 
				
			||||||
  margin-right: 2px;
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.repository.view.issue .comment-list .event .segments {
 | 
					.repository.view.issue .comment-list .event .segments {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user