mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-08-24 19:23:53 +00:00
chore(ui): use repo/shabox template
Signed-off-by: iamyaash <iamyaash@outlook.com>
This commit is contained in:
parent
032c0f9391
commit
f15bc4b330
1 changed files with 6 additions and 4 deletions
|
@ -51,10 +51,12 @@
|
||||||
{{else if $.Reponame}}
|
{{else if $.Reponame}}
|
||||||
{{$commitShaLink = (printf "%s/commit/%s" $commitRepoLink (PathEscape .ID.String))}}
|
{{$commitShaLink = (printf "%s/commit/%s" $commitRepoLink (PathEscape .ID.String))}}
|
||||||
{{end}}
|
{{end}}
|
||||||
<a {{if $commitShaLink}}href="{{$commitShaLink}}"{{end}} class="{{$class}}">
|
{{template "repo/shabox" (dict
|
||||||
<span class="shortsha">{{ShortSha .ID.String}}</span>
|
"sha1" .ID.String
|
||||||
{{if .Signature}}{{template "repo/shabox_badge" dict "root" $ "verification" .Verification}}{{end}}
|
"commitLink" $commitShaLink
|
||||||
</a>
|
"signature" .Signature
|
||||||
|
"verification" .Verification
|
||||||
|
)}}
|
||||||
</td>
|
</td>
|
||||||
<td class="message">
|
<td class="message">
|
||||||
<span class="message-wrapper">
|
<span class="message-wrapper">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue