add migrate install button

Signed-off-by: Andy Miller <rhuk@mac.com>
This commit is contained in:
Andy Miller
2026-04-16 18:37:01 +01:00
parent 38efb7d892
commit c87103df2a
2 changed files with 12 additions and 7 deletions

View File

@@ -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"

View File

@@ -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 @@
<a class="gmc-cta gmc-cta-primary" href="{{ base_url_relative }}/migrate-grav">
<i class="fa fa-rocket"></i> {{ "PLUGIN_ADMIN.GRAV_NEXT_MAJOR_START_MIGRATION"|t }}
</a>
<a class="gmc-cta gmc-cta-secondary" href="{{ grav_next_major.migration_url }}" target="_blank" rel="noopener">
{{ "PLUGIN_ADMIN.GRAV_NEXT_MAJOR_LEARN_MORE"|t }} <i class="fa fa-external-link"></i>
</a>
{% else %}
<a class="gmc-cta gmc-cta-primary" href="{{ grav_next_major.migration_url }}" target="_blank" rel="noopener">
{{ "PLUGIN_ADMIN.GRAV_NEXT_MAJOR_LEARN_MORE"|t }} <i class="fa fa-arrow-right"></i>
<a class="gmc-cta gmc-cta-primary" href="{{ base_url_relative }}/plugins/migrate-grav">
<i class="fa fa-download"></i> {{ "PLUGIN_ADMIN.GRAV_NEXT_MAJOR_INSTALL_MIGRATE"|t }}
</a>
{% endif %}
<a class="gmc-cta gmc-cta-secondary" href="{{ grav_next_major.migration_url }}" target="_blank" rel="noopener">
{{ "PLUGIN_ADMIN.GRAV_NEXT_MAJOR_LEARN_MORE"|t }} <i class="fa fa-external-link"></i>
</a>
</div>
</div>
</div>