[GITEA] Tidy up archive modal (squash) ctx.Locale

This commit is contained in:
Earl Warren 2023-11-06 18:16:34 +01:00
parent 40447752ff
commit 4bb6ee71f0
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -988,8 +988,8 @@
<input type="hidden" name="action" value="{{if .Repository.IsArchived}}unarchive{{else}}archive{{end}}"> <input type="hidden" name="action" value="{{if .Repository.IsArchived}}unarchive{{else}}archive{{end}}">
<input type="hidden" name="repo_id" value="{{.Repository.ID}}"> <input type="hidden" name="repo_id" value="{{.Repository.ID}}">
<div class="text right actions"> <div class="text right actions">
<button class="ui cancel button">{{.locale.Tr "settings.cancel"}}</button> <button class="ui cancel button">{{ctx.Locale.Tr "settings.cancel"}}</button>
<button class="ui red button">{{.locale.Tr "repo.settings.archive.button"}}</button> <button class="ui red button">{{ctx.Locale.Tr "repo.settings.archive.button"}}</button>
</div> </div>
</form> </form>
</div> </div>