Fix incorrect package link method calls in templates (#29580)

Fix #29562
Follow  #29531
pull/29490/head^2
wxiaoguang 9 months ago committed by GitHub
parent e2277d07ca
commit 7ec4c65ea5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      templates/admin/packages/list.tmpl
  2. 2
      templates/package/settings.tmpl
  3. 2
      templates/package/shared/cleanup_rules/preview.tmpl
  4. 2
      templates/package/shared/list.tmpl
  5. 2
      templates/package/shared/versionlist.tmpl

@ -63,7 +63,7 @@
</td> </td>
<td>{{.Package.Type.Name}}</td> <td>{{.Package.Type.Name}}</td>
<td class="gt-ellipsis gt-max-width-12rem">{{.Package.Name}}</td> <td class="gt-ellipsis gt-max-width-12rem">{{.Package.Name}}</td>
<td class="gt-ellipsis gt-max-width-12rem"><a href="{{.FullWebLink}}">{{.Version.Version}}</a></td> <td class="gt-ellipsis gt-max-width-12rem"><a href="{{.VersionWebLink}}">{{.Version.Version}}</a></td>
<td><a href="{{.Creator.HomeLink}}">{{.Creator.Name}}</a></td> <td><a href="{{.Creator.HomeLink}}">{{.Creator.Name}}</a></td>
<td> <td>
{{if .Repository}} {{if .Repository}}

@ -10,7 +10,7 @@
{{template "user/overview/header" .}} {{template "user/overview/header" .}}
{{end}} {{end}}
{{template "base/alert" .}} {{template "base/alert" .}}
<p><a href="{{.PackageDescriptor.FullWebLink}}">{{.PackageDescriptor.Package.Name}} ({{.PackageDescriptor.Version.Version}})</a> / <strong>{{ctx.Locale.Tr "repo.settings"}}</strong></p> <p><a href="{{.PackageDescriptor.VersionWebLink}}">{{.PackageDescriptor.Package.Name}} ({{.PackageDescriptor.Version.Version}})</a> / <strong>{{ctx.Locale.Tr "repo.settings"}}</strong></p>
<h4 class="ui top attached header"> <h4 class="ui top attached header">
{{ctx.Locale.Tr "packages.settings.link"}} {{ctx.Locale.Tr "packages.settings.link"}}
</h4> </h4>

@ -19,7 +19,7 @@
<tr> <tr>
<td>{{.Package.Type.Name}}</td> <td>{{.Package.Type.Name}}</td>
<td>{{.Package.Name}}</td> <td>{{.Package.Name}}</td>
<td><a href="{{.FullWebLink}}">{{.Version.Version}}</a></td> <td><a href="{{.VersionWebLink}}">{{.Version.Version}}</a></td>
<td><a href="{{.Creator.HomeLink}}">{{.Creator.Name}}</a></td> <td><a href="{{.Creator.HomeLink}}">{{.Creator.Name}}</a></td>
<td>{{FileSize .CalculateBlobSize}}</td> <td>{{FileSize .CalculateBlobSize}}</td>
<td>{{DateTime "short" .Version.CreatedUnix}}</td> <td>{{DateTime "short" .Version.CreatedUnix}}</td>

@ -20,7 +20,7 @@
<div class="flex-item"> <div class="flex-item">
<div class="flex-item-main"> <div class="flex-item-main">
<div class="flex-item-title"> <div class="flex-item-title">
<a href="{{.FullWebLink}}">{{.Package.Name}}</a> <a href="{{.VersionWebLink}}">{{.Package.Name}}</a>
<span class="ui label">{{svg .Package.Type.SVGName 16}} {{.Package.Type.Name}}</span> <span class="ui label">{{svg .Package.Type.SVGName 16}} {{.Package.Type.Name}}</span>
</div> </div>
<div class="flex-item-body"> <div class="flex-item-body">

@ -23,7 +23,7 @@
<div class="flex-list"> <div class="flex-list">
<div class="flex-item"> <div class="flex-item">
<div class="flex-item-main"> <div class="flex-item-main">
<a class="flex-item-title" href="{{.FullWebLink}}">{{.Version.LowerVersion}}</a> <a class="flex-item-title" href="{{.VersionWebLink}}">{{.Version.LowerVersion}}</a>
<div class="flex-item-body"> <div class="flex-item-body">
{{ctx.Locale.Tr "packages.published_by" (TimeSinceUnix .Version.CreatedUnix ctx.Locale) .Creator.HomeLink .Creator.GetDisplayName}} {{ctx.Locale.Tr "packages.published_by" (TimeSinceUnix .Version.CreatedUnix ctx.Locale) .Creator.HomeLink .Creator.GetDisplayName}}
</div> </div>

Loading…
Cancel
Save