mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-11-27 12:16:10 +01:00
df789d962b
This PR implements a [Cargo registry](https://doc.rust-lang.org/cargo/) to manage Rust packages. This package type was a little bit more complicated because Cargo needs an additional Git repository to store its package index. Screenshots: ![grafik](https://user-images.githubusercontent.com/1666336/203102004-08d812ac-c066-4969-9bda-2fed818554eb.png) ![grafik](https://user-images.githubusercontent.com/1666336/203102141-d9970f14-dca6-4174-b17a-50ba1bd79087.png) ![grafik](https://user-images.githubusercontent.com/1666336/203102244-dc05743b-78b6-4d97-998e-ef76341a978f.png) --------- Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
25 lines
917 B
Handlebars
25 lines
917 B
Handlebars
<h4 class="ui top attached header">
|
|
{{.locale.Tr "packages.owner.settings.cargo.title"}}
|
|
</h4>
|
|
<div class="ui attached segment">
|
|
<div class="ui form">
|
|
<div class="field">
|
|
<label>{{$.locale.Tr "packages.owner.settings.cargo.initialize.description"}}</label>
|
|
</div>
|
|
<form class="field" action="{{.Link}}/cargo/initialize" method="post">
|
|
{{.CsrfTokenHtml}}
|
|
<button class="ui green button">{{$.locale.Tr "packages.owner.settings.cargo.initialize"}}</button>
|
|
</form>
|
|
<div class="field">
|
|
<label>{{$.locale.Tr "packages.owner.settings.cargo.rebuild.description"}}</label>
|
|
</div>
|
|
<form class="field" action="{{.Link}}/cargo/rebuild" method="post">
|
|
{{.CsrfTokenHtml}}
|
|
<button class="ui green button">{{$.locale.Tr "packages.owner.settings.cargo.rebuild"}}</button>
|
|
</form>
|
|
<div class="field">
|
|
<label>{{.locale.Tr "packages.cargo.documentation" | Safe}}</label>
|
|
</div>
|
|
</div>
|
|
</div>
|