summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/static_site_editor/components/invalid_content_message.vue
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/static_site_editor/components/invalid_content_message.vue')
-rw-r--r--app/assets/javascripts/static_site_editor/components/invalid_content_message.vue29
1 files changed, 29 insertions, 0 deletions
diff --git a/app/assets/javascripts/static_site_editor/components/invalid_content_message.vue b/app/assets/javascripts/static_site_editor/components/invalid_content_message.vue
new file mode 100644
index 00000000000..fef87057307
--- /dev/null
+++ b/app/assets/javascripts/static_site_editor/components/invalid_content_message.vue
@@ -0,0 +1,29 @@
+<script>
+import { GlButton } from '@gitlab/ui';
+
+export default {
+ components: {
+ GlButton,
+ },
+};
+</script>
+
+<template>
+ <div>
+ <h3>{{ s__('StaticSiteEditor|Incompatible file content') }}</h3>
+ <p>
+ {{
+ s__(
+ 'StaticSiteEditor|The Static Site Editor is currently configured to only edit Markdown content on pages generated from Middleman. Visit the documentation to learn more about configuring your site to use the Static Site Editor.',
+ )
+ }}
+ </p>
+ <div>
+ <gl-button
+ ref="documentationButton"
+ href="https://gitlab.com/gitlab-org/project-templates/static-site-editor-middleman"
+ >{{ s__('StaticSiteEditor|View documentation') }}</gl-button
+ >
+ </div>
+ </div>
+</template>