mirror of
https://github.com/go-gitea/gitea.git
synced 2025-02-02 15:09:33 -05:00
parent
7da8a01d39
commit
6a516a0d14
@ -38,6 +38,8 @@ so this template should be kept as small as possbile, DO NOT put large component
|
|||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- if $verification.Warning -}}
|
{{- if $verification.Warning -}}
|
||||||
{{- $extraClass = print $extraClass " sign-warning" -}}
|
{{- $extraClass = print $extraClass " sign-warning" -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- $extraClass = "" -}}{{/* the commit is not signed */}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- $msgReason = ctx.Locale.Tr $verification.Reason -}}{{- /* dirty part: it is the translation key ..... */ -}}
|
{{- $msgReason = ctx.Locale.Tr $verification.Reason -}}{{- /* dirty part: it is the translation key ..... */ -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
@ -57,6 +59,7 @@ so this template should be kept as small as possbile, DO NOT put large component
|
|||||||
<a {{if $commitBaseLink}}href="{{$commitBaseLink}}/{{$commit.ID}}"{{end}} class="ui label commit-id-short {{$extraClass}}" rel="nofollow">
|
<a {{if $commitBaseLink}}href="{{$commitBaseLink}}/{{$commit.ID}}"{{end}} class="ui label commit-id-short {{$extraClass}}" rel="nofollow">
|
||||||
{{- ShortSha $commit.ID.String -}}
|
{{- ShortSha $commit.ID.String -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
{{- if or (not $commit) $extraClass}}{{/* only show the lock icon if there is no commit info (icon only) or the commit is really signed */}}
|
||||||
<span class="ui label commit-sign-badge {{$extraClass}}">
|
<span class="ui label commit-sign-badge {{$extraClass}}">
|
||||||
{{- if $verified -}}
|
{{- if $verified -}}
|
||||||
{{- if and $signingUser $signingUser.ID -}}
|
{{- if and $signingUser $signingUser.ID -}}
|
||||||
@ -70,7 +73,7 @@ so this template should be kept as small as possbile, DO NOT put large component
|
|||||||
<span data-tooltip-content="{{$msgReason}}">{{svg "gitea-unlock"}}</span>
|
<span data-tooltip-content="{{$msgReason}}">{{svg "gitea-unlock"}}</span>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
</span>
|
</span>
|
||||||
|
{{- end -}}
|
||||||
{{- if $commit -}}
|
{{- if $commit -}}
|
||||||
</a>
|
</a>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
|
|
||||||
.ui.label.commit-id-short {
|
.ui.label.commit-id-short {
|
||||||
font-family: var(--fonts-monospace);
|
font-family: var(--fonts-monospace);
|
||||||
|
height: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ui.label.commit-id-short > .commit-sign-badge {
|
.ui.label.commit-id-short > .commit-sign-badge {
|
||||||
@ -16,7 +17,7 @@
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
border: 0 !important;
|
border: 0 !important;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
background: transparent;
|
background: transparent !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ui.label.commit-id-short > .commit-sign-badge:hover {
|
.ui.label.commit-id-short > .commit-sign-badge:hover {
|
||||||
|
Loading…
Reference in New Issue
Block a user