|
|
@ -44,30 +44,25 @@ |
|
|
|
<label for="website">{{.locale.Tr "repo.settings.site"}}</label> |
|
|
|
<label for="website">{{.locale.Tr "repo.settings.site"}}</label> |
|
|
|
<input id="website" name="website" type="url" maxlength="1024" value="{{.Repository.Website}}"> |
|
|
|
<input id="website" name="website" type="url" maxlength="1024" value="{{.Repository.Website}}"> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="field"> |
|
|
|
<div class="field"> |
|
|
|
<button class="ui green button">{{$.locale.Tr "repo.settings.update_settings"}}</button> |
|
|
|
<button class="ui green button">{{$.locale.Tr "repo.settings.update_settings"}}</button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</form> |
|
|
|
</form> |
|
|
|
|
|
|
|
|
|
|
|
<div class="divider"></div> |
|
|
|
<div class="divider"></div> |
|
|
|
|
|
|
|
|
|
|
|
<form class="ui form" action="{{.Link}}/avatar" method="post" enctype="multipart/form-data"> |
|
|
|
<form class="ui form" action="{{.Link}}/avatar" method="post" enctype="multipart/form-data"> |
|
|
|
{{.CsrfTokenHtml}} |
|
|
|
{{.CsrfTokenHtml}} |
|
|
|
<div class="inline field"> |
|
|
|
<div class="inline field"> |
|
|
|
<label for="avatar">{{.locale.Tr "settings.choose_new_avatar"}}</label> |
|
|
|
<label for="avatar">{{.locale.Tr "settings.choose_new_avatar"}}</label> |
|
|
|
<input name="avatar" type="file" accept="image/png,image/jpeg,image/gif,image/webp"> |
|
|
|
<input name="avatar" type="file" accept="image/png,image/jpeg,image/gif,image/webp"> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="field"> |
|
|
|
<div class="field"> |
|
|
|
<button class="ui green button">{{$.locale.Tr "settings.update_avatar"}}</button> |
|
|
|
<button class="ui green button">{{$.locale.Tr "settings.update_avatar"}}</button> |
|
|
|
<button class="ui red button link-action" data-url="{{.Link}}/avatar/delete" data-redirect="{{.Link}}">{{$.locale.Tr "settings.delete_current_avatar"}}</button> |
|
|
|
<button class="ui red button link-action" data-url="{{.Link}}/avatar/delete" data-redirect="{{.Link}}">{{$.locale.Tr "settings.delete_current_avatar"}}</button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</form> |
|
|
|
</form> |
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{{/* These variables exist to make the logic in the Settings window easier to comprehend and are not used later on. */}} |
|
|
|
{{/* These variables exist to make the logic in the Settings window easier to comprehend and are not used later on. */}} |
|
|
|
{{$newMirrorsPartiallyEnabled := or (not .DisableNewPullMirrors) (not .DisableNewPushMirrors)}} |
|
|
|
{{$newMirrorsPartiallyEnabled := or (not .DisableNewPullMirrors) (not .DisableNewPushMirrors)}} |
|
|
|
{{/* .Repository.IsMirror is not always reliable if the repository is not actively acting as a mirror because of errors. */}} |
|
|
|
{{/* .Repository.IsMirror is not always reliable if the repository is not actively acting as a mirror because of errors. */}} |
|
|
|