From c87103df2a3dd9f5a848a3c4cb257775bcfe1520 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Thu, 16 Apr 2026 18:37:01 +0100 Subject: [PATCH] add migrate install button Signed-off-by: Andy Miller --- languages/en.yaml | 1 + .../dashboard-migration-notice.html.twig | 18 +++++++++++------- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/languages/en.yaml b/languages/en.yaml index 938d4357..3741decc 100644 --- a/languages/en.yaml +++ b/languages/en.yaml @@ -502,6 +502,7 @@ PLUGIN_ADMIN: GRAV_NEXT_MAJOR_DESCRIPTION: "A new major version of Grav is now available. This is not an automatic upgrade — moving from 1.x to 2.x is a migration. Follow the guide for details on what's new and how to import your existing site." GRAV_NEXT_MAJOR_LEARN_MORE: "Learn how to migrate" GRAV_NEXT_MAJOR_START_MIGRATION: "Start migration" + GRAV_NEXT_MAJOR_INSTALL_MIGRATE: "Install Migrate plugin" METADATA_KEY: "Key (e.g. 'Keywords')" METADATA_VALUE: "Value (e.g. 'Blog, Grav')" USERNAME_HELP: "Username should be between 3 and 16 characters, including lowercase letters, numbers, underscores, and hyphens. Uppercase letters, spaces, and special characters are not allowed" diff --git a/themes/grav/templates/partials/dashboard-migration-notice.html.twig b/themes/grav/templates/partials/dashboard-migration-notice.html.twig index 4a4117d9..ea17e4dd 100644 --- a/themes/grav/templates/partials/dashboard-migration-notice.html.twig +++ b/themes/grav/templates/partials/dashboard-migration-notice.html.twig @@ -78,9 +78,13 @@ } .grav-migration-callout .gmc-actions { flex: 0 0 auto; - display: inline-flex; + display: grid; + grid-template-columns: 1fr; gap: 8px; - flex-wrap: wrap; + width: 240px; + } + .grav-migration-callout .gmc-actions .gmc-cta { + justify-content: center; } .grav-migration-callout .gmc-cta { display: inline-flex; @@ -134,14 +138,14 @@ {{ "PLUGIN_ADMIN.GRAV_NEXT_MAJOR_START_MIGRATION"|t }} - - {{ "PLUGIN_ADMIN.GRAV_NEXT_MAJOR_LEARN_MORE"|t }} - {% else %} - - {{ "PLUGIN_ADMIN.GRAV_NEXT_MAJOR_LEARN_MORE"|t }} + + {{ "PLUGIN_ADMIN.GRAV_NEXT_MAJOR_INSTALL_MIGRATE"|t }} {% endif %} + + {{ "PLUGIN_ADMIN.GRAV_NEXT_MAJOR_LEARN_MORE"|t }} +