This commit is contained in:
2024-07-23 13:09:26 +02:00
commit 58f37a4602
486 changed files with 52128 additions and 0 deletions
templates
admin
api
packages
base
custom
devtest
explore
home.tmplinstall.tmpl
mail
org
package
post-install.tmpl
projects
repo
actions
activity.tmplblame.tmpl
branch
branch_dropdown.tmpl
cite
clone_buttons.tmplclone_script.tmpl
code
code_frequency.tmplcommit_load_branches_and_tags.tmplcommit_page.tmplcommit_status.tmplcommit_statuses.tmplcommits.tmplcommits_list.tmplcommits_list_small.tmplcommits_search_dropdown.tmplcommits_table.tmplcontributors.tmplcreate.tmplcreate_helper.tmpl
diff
editor
empty.tmplfile_info.tmpl
find
forks.tmplgraph.tmpl
graph
header.tmplhome.tmplicon.tmpl
issue
latest_commit.tmpl
migrate
navbar.tmplpackages.tmpl
projects
pulls
pulse.tmplrecent_commits.tmpl
release
release_tag_header.tmplsearch.tmplsearch_name.tmpl
settings
shabox_badge.tmplstar_unstar.tmplsub_menu.tmpl
tag
unicode_escape_prompt.tmplupload.tmpluser_cards.tmplview_file.tmplview_list.tmplwatch_unwatch.tmplwatchers.tmpl
wiki
shared
status
swagger
user
webhook

@ -0,0 +1,14 @@
{{if eq .PackageDescriptor.Package.Type "go"}}
<h4 class="ui top attached header">{{ctx.Locale.Tr "packages.installation"}}</h4>
<div class="ui attached segment">
<div class="ui form">
<div class="field">
<label>{{svg "octicon-terminal"}} {{ctx.Locale.Tr "packages.go.install"}}</label>
<div class="markup"><pre class="code-block"><code>GOPROXY=<origin-url data-url="{{AppSubUrl}}/api/packages/{{$.PackageDescriptor.Owner.Name}}/go"></origin-url> go install {{$.PackageDescriptor.Package.Name}}@{{$.PackageDescriptor.Version.Version}}</code></pre></div>
</div>
<div class="field">
<label>{{ctx.Locale.Tr "packages.registry.documentation" "Go" "https://docs.gitea.com/usage/packages/go"}}</label>
</div>
</div>
</div>
{{end}}