diff --git a/app/views/admin/communication/websites/_sidebar.html.erb b/app/views/admin/communication/websites/_sidebar.html.erb index 0dc2d76f02cf1214899ef674619817b04bc6d81c..d9c4071137851401284acc3f3c115a76b25a9624 100644 --- a/app/views/admin/communication/websites/_sidebar.html.erb +++ b/app/views/admin/communication/websites/_sidebar.html.erb @@ -10,7 +10,7 @@ ability: can?(:read, @website) }, { - title: Communication::Website::Page.model_name.human(count: 2), + title: t('admin.communication.website.pages.structure'), path: admin_communication_website_pages_path(website_id: @website), ability: can?(:read, Communication::Website::Page) }, diff --git a/config/locales/communication/en.yml b/config/locales/communication/en.yml index 040b292d9b04eb20d2d3e640d6cc4f68c47b4c9f..d5a598f4992998f5d7c83c55cd8edcb6de0be20a 100644 --- a/config/locales/communication/en.yml +++ b/config/locales/communication/en.yml @@ -153,6 +153,7 @@ en: website: pages: delete_special_page_notice: Can't delete this page + structure: Structure communication: authors: one: Author diff --git a/config/locales/communication/fr.yml b/config/locales/communication/fr.yml index 2d3b1caf67bb9ba713890b6571a1cafec091ad9b..fcbe1f5a36a43a0c24a882f95a22f2d40fb65620 100644 --- a/config/locales/communication/fr.yml +++ b/config/locales/communication/fr.yml @@ -153,6 +153,7 @@ fr: website: pages: delete_special_page_notice: Impossible de supprimer cette page + structure: Arborescence communication: authors: one: Auteur·rice diff --git a/db/schema.rb b/db/schema.rb index 0f82db6656eebdd52b462edce6787191a91e1fcf..2417eca45698ed6143e3a9654d29d3d9678c7e01 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -83,7 +83,7 @@ ActiveRecord::Schema.define(version: 2022_04_08_105051) do t.uuid "university_id", null: false t.string "about_type" t.uuid "about_id" - t.integer "template_kind", default: 0, null: false + t.integer "template", default: 0, null: false t.jsonb "data" t.integer "position", default: 0, null: false t.datetime "created_at", precision: 6, null: false