mirror of
https://github.com/go-gitea/gitea
synced 2025-07-31 22:58:35 +00:00
Refactor packages (func name & UI) (#34773)
1. Use `OpenXxx` instead of `GetXxx` because the returned readers should be correctly closed, and clarify the behaviors of the functions: they increase the download counter 2. Use `packages-content` styles instead of `issue-content`
This commit is contained in:
@@ -84,7 +84,7 @@
|
||||
{{end}}
|
||||
</h4>
|
||||
<div class="ui attached segment tw-break-anywhere">
|
||||
<table class="ui very basic compact table">
|
||||
<table class="ui very basic compact table tw-font-mono">
|
||||
<tbody>
|
||||
{{range $imageMetadata.ImageLayers}}
|
||||
<tr>
|
||||
@@ -98,7 +98,7 @@
|
||||
{{if $imageMetadata.Labels}}
|
||||
<h4 class="ui top attached header">{{ctx.Locale.Tr "packages.container.labels"}}</h4>
|
||||
<div class="ui attached segment">
|
||||
<table class="ui very basic compact table">
|
||||
<table class="ui very basic compact table tw-font-mono">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ctx.Locale.Tr "packages.container.labels.key"}}</th>
|
||||
|
@@ -10,8 +10,8 @@
|
||||
{{end}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="issue-content">
|
||||
<div class="issue-content-left">
|
||||
<div class="packages-content">
|
||||
<div class="packages-content-left">
|
||||
{{template "package/content/alpine" .}}
|
||||
{{template "package/content/arch" .}}
|
||||
{{template "package/content/cargo" .}}
|
||||
@@ -35,7 +35,7 @@
|
||||
{{template "package/content/swift" .}}
|
||||
{{template "package/content/vagrant" .}}
|
||||
</div>
|
||||
<div class="issue-content-right ui segment">
|
||||
<div class="ui segment packages-content-right">
|
||||
<strong>{{ctx.Locale.Tr "packages.details"}}</strong>
|
||||
<div class="ui relaxed list flex-items-block">
|
||||
<div class="item">{{svg .PackageDescriptor.Package.Type.SVGName}} {{.PackageDescriptor.Package.Type.Name}}</div>
|
||||
@@ -76,7 +76,7 @@
|
||||
{{range .PackageDescriptor.Files}}
|
||||
<div class="item">
|
||||
<a href="{{$packageVersionLink}}/files/{{.File.ID}}">{{.File.Name}}</a>
|
||||
<span class="text small file-size">{{FileSize .Blob.Size}}</span>
|
||||
<span class="text small tw-whitespace-nowrap">{{FileSize .Blob.Size}}</span>
|
||||
</div>
|
||||
{{end}}
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user