Skip to content

Commit

Permalink
Improve commit record's ui in comment list (go-gitea#26619)
Browse files Browse the repository at this point in the history
  • Loading branch information
yp05327 and silverwind authored Mar 14, 2024
1 parent 03753cb commit ce085b2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
16 changes: 8 additions & 8 deletions templates/repo/issue/view_content/comments.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
</span>
{{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>
</div>
</div>
Expand All @@ -160,7 +160,7 @@
{{template "shared/user/authorlink" .Poster}}
{{ctx.Locale.Tr "repo.issues.commit_ref_at" .EventTag $createdStr}}
</span>
<div class="detail">
<div class="detail flex-text-block">
{{svg "octicon-git-commit"}}
<span class="text grey muted-links">{{.Content | SanitizeHTML}}</span>
</div>
Expand Down Expand Up @@ -252,7 +252,7 @@
{{ctx.Locale.Tr "repo.issues.stop_tracking_history" $createdStr}}
</span>
{{template "repo/issue/view_content/comments_delete_time" dict "ctxData" $ "comment" .}}
<div class="detail">
<div class="detail flex-text-block">
{{svg "octicon-clock"}}
{{if .RenderedContent}}
{{/* compatibility with time comments made before v1.21 */}}
Expand All @@ -271,7 +271,7 @@
{{ctx.Locale.Tr "repo.issues.add_time_history" $createdStr}}
</span>
{{template "repo/issue/view_content/comments_delete_time" dict "ctxData" $ "comment" .}}
<div class="detail">
<div class="detail flex-text-block">
{{svg "octicon-clock"}}
{{if .RenderedContent}}
{{/* compatibility with time comments made before v1.21 */}}
Expand Down Expand Up @@ -331,7 +331,7 @@
{{ctx.Locale.Tr "repo.issues.dependency.added_dependency" $createdStr}}
</span>
{{if .DependentIssue}}
<div class="detail">
<div class="detail flex-text-block">
{{svg "octicon-plus"}}
<span class="text grey muted-links">
<a href="{{.DependentIssue.Link}}">
Expand All @@ -354,8 +354,8 @@
{{ctx.Locale.Tr "repo.issues.dependency.removed_dependency" $createdStr}}
</span>
{{if .DependentIssue}}
<div class="detail">
<span class="text grey muted-links">{{svg "octicon-trash"}}</span>
<div class="detail flex-text-block">
{{svg "octicon-trash"}}
<span class="text grey muted-links">
<a href="{{.DependentIssue.Link}}">
{{if eq .DependentIssue.RepoID .Issue.RepoID}}
Expand Down Expand Up @@ -506,7 +506,7 @@

{{ctx.Locale.Tr "repo.issues.del_time_history" $createdStr}}
</span>
<div class="detail">
<div class="detail flex-text-block">
{{svg "octicon-clock"}}
{{if .RenderedContent}}
{{/* compatibility with time comments made before v1.21 */}}
Expand Down
6 changes: 1 addition & 5 deletions web_src/css/repo.css
Original file line number Diff line number Diff line change
Expand Up @@ -1065,11 +1065,7 @@

.repository.view.issue .comment-list .event .detail {
margin-top: 4px;
margin-left: 14px;
}

.repository.view.issue .comment-list .event .detail .svg {
margin-right: 2px;
margin-left: 15px;
}

.repository.view.issue .comment-list .event .segments {
Expand Down

0 comments on commit ce085b2

Please sign in to comment.