Skip to content

Commit 5e3d0d0

Browse files
authored
Merge branch 'main' into lunny/fix_admin_change_email
2 parents 47c63ff + f23851f commit 5e3d0d0

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

options/locale/locale_pt-PT.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -898,6 +898,7 @@ migrate.clone_address_desc=O URL de clonagem HTTP(S) ou Git de um repositório e
898898
migrate.github_token_desc=Pode colocar aqui um ou mais códigos separados por vírgulas para tornar mais rápida a migração, para compensar a limitação de velocidade da API do GitHub. AVISO: O abuso desta funcionalidade poderá violar a política do seu fornecedor de serviço e levar ao bloqueio da conta.
899899
migrate.clone_local_path=ou um caminho no servidor local
900900
migrate.permission_denied=Não está autorizado a importar repositórios locais.
901+
migrate.permission_denied_blocked=Não pode importar de servidores não permitidos, por favor peça ao administrador para verificar as configurações ALLOWED_DOMAINS/ALLOW_LOCALNETWORKS/BLOCKED_DOMAINS.
901902
migrate.invalid_local_path=O caminho local é inválido. Não existe ou não é uma pasta.
902903
migrate.invalid_lfs_endpoint=O destino LFS não é válido.
903904
migrate.failed=A migração falhou: %v
@@ -944,6 +945,7 @@ clone_this_repo=Clonar este repositório
944945
create_new_repo_command=Criando um novo repositório na linha de comandos
945946
push_exist_repo=Enviando, pela linha de comandos, um repositório existente
946947
empty_message=Este repositório não contém qualquer conteúdo.
948+
broken_message=Os dados git subjacentes a este repositório não podem ser lidos. Contacte o administrador desta instância ou elimine este repositório.
947949

948950
code=Código
949951
code.desc=Aceder ao código fonte, ficheiros, cometimentos e ramos.
@@ -2034,6 +2036,7 @@ diff.file_suppressed=A apresentação das diferenças no ficheiro foi suprimida
20342036
diff.file_suppressed_line_too_long=A apresentação das diferenças entre ficheiros foi suprimida porque há linhas demasiado longas
20352037
diff.too_many_files=Alguns ficheiros não foram mostrados porque foram modificados demasiados ficheiros neste diff
20362038
diff.show_more=Mostrar mais
2039+
diff.load=Carregar diff
20372040
diff.comment.placeholder=Deixar um comentário
20382041
diff.comment.markdown_info=A formatação com markdown é suportada.
20392042
diff.comment.add_single_comment=Adicionar um único comentário

routers/web/org/org_labels.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ func NewLabel(ctx *context.Context) {
3434
form := web.GetForm(ctx).(*forms.CreateLabelForm)
3535
ctx.Data["Title"] = ctx.Tr("repo.labels")
3636
ctx.Data["PageIsLabels"] = true
37+
ctx.Data["PageIsOrgSettings"] = true
3738

3839
if ctx.HasError() {
3940
ctx.Flash.Error(ctx.Data["ErrorMsg"].(string))

routers/web/org/setting.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ const (
3939
// Settings render the main settings page
4040
func Settings(ctx *context.Context) {
4141
ctx.Data["Title"] = ctx.Tr("org.settings")
42+
ctx.Data["PageIsOrgSettings"] = true
4243
ctx.Data["PageIsSettingsOptions"] = true
4344
ctx.Data["CurrentVisibility"] = ctx.Org.Organization.Visibility
4445
ctx.Data["RepoAdminChangeTeamAccess"] = ctx.Org.Organization.RepoAdminChangeTeamAccess
@@ -49,6 +50,7 @@ func Settings(ctx *context.Context) {
4950
func SettingsPost(ctx *context.Context) {
5051
form := web.GetForm(ctx).(*forms.UpdateOrgSettingForm)
5152
ctx.Data["Title"] = ctx.Tr("org.settings")
53+
ctx.Data["PageIsOrgSettings"] = true
5254
ctx.Data["PageIsSettingsOptions"] = true
5355
ctx.Data["CurrentVisibility"] = ctx.Org.Organization.Visibility
5456

@@ -159,6 +161,7 @@ func SettingsDeleteAvatar(ctx *context.Context) {
159161
// SettingsDelete response for deleting an organization
160162
func SettingsDelete(ctx *context.Context) {
161163
ctx.Data["Title"] = ctx.Tr("org.settings")
164+
ctx.Data["PageIsOrgSettings"] = true
162165
ctx.Data["PageIsSettingsDelete"] = true
163166

164167
if ctx.Req.Method == "POST" {
@@ -188,6 +191,7 @@ func SettingsDelete(ctx *context.Context) {
188191
// Webhooks render webhook list page
189192
func Webhooks(ctx *context.Context) {
190193
ctx.Data["Title"] = ctx.Tr("org.settings")
194+
ctx.Data["PageIsOrgSettings"] = true
191195
ctx.Data["PageIsSettingsHooks"] = true
192196
ctx.Data["BaseLink"] = ctx.Org.OrgLink + "/settings/hooks"
193197
ctx.Data["BaseLinkNew"] = ctx.Org.OrgLink + "/settings/hooks"
@@ -219,6 +223,7 @@ func DeleteWebhook(ctx *context.Context) {
219223
// Labels render organization labels page
220224
func Labels(ctx *context.Context) {
221225
ctx.Data["Title"] = ctx.Tr("repo.labels")
226+
ctx.Data["PageIsOrgSettings"] = true
222227
ctx.Data["PageIsOrgSettingsLabels"] = true
223228
ctx.Data["RequireTribute"] = true
224229
ctx.Data["LabelTemplates"] = models.LabelTemplates

templates/org/menu.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
{{if .IsOrganizationOwner}}
2222
<div class="right menu">
23-
<a class="{{if .PageIsSettingsOptions}}active{{end}} item" href="{{.OrgLink}}/settings">
23+
<a class="{{if .PageIsOrgSettings}}active{{end}} item" href="{{.OrgLink}}/settings">
2424
{{svg "octicon-tools"}} {{.i18n.Tr "repo.settings"}}
2525
</a>
2626
</div>

0 commit comments

Comments
 (0)