Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-10-16 12:09:06 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-10-16 12:09:06 +0300
commited7568cc8083a9f8923d1a26bc0d8f60e3f629a3 (patch)
tree147bef3e0dd36eb5ccf915799d527b73f4b696f0 /app/assets/javascripts/static_site_editor
parente94d662e5aabd4918de373b37c4f084325c7c1f8 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/static_site_editor')
-rw-r--r--app/assets/javascripts/static_site_editor/pages/success.vue75
-rw-r--r--app/assets/javascripts/static_site_editor/services/templater.js2
2 files changed, 39 insertions, 38 deletions
diff --git a/app/assets/javascripts/static_site_editor/pages/success.vue b/app/assets/javascripts/static_site_editor/pages/success.vue
index 5b013c27c35..1ee1a3b0edf 100644
--- a/app/assets/javascripts/static_site_editor/pages/success.vue
+++ b/app/assets/javascripts/static_site_editor/pages/success.vue
@@ -61,45 +61,46 @@ export default {
};
</script>
<template>
- <div class="container gl-flex-grow-1 gl-display-flex gl-flex-direction-column">
- <div
- v-if="savedContentMeta"
- class="gl-fixed gl-left-0 gl-right-0 gl-border-b-solid gl-border-b-1 gl-border-b-gray-100"
- >
+ <div>
+ <div class="gl-border-b-solid gl-border-b-1 gl-border-b-gray-100">
<div class="container gl-py-4">
- <gl-button
- v-if="appData.returnUrl"
- ref="returnToSiteButton"
- class="gl-mr-5"
- :href="appData.returnUrl"
- >{{ $options.returnToSiteBtnText }}</gl-button
- >
- <strong>
- {{ updatedFileDescription }}
- </strong>
+ <div class="gl-display-flex">
+ <gl-button
+ v-if="appData.returnUrl"
+ ref="returnToSiteButton"
+ class="gl-mr-5 gl-align-self-start"
+ :href="appData.returnUrl"
+ >{{ $options.returnToSiteBtnText }}</gl-button
+ >
+ <strong class="gl-mt-2">
+ {{ updatedFileDescription }}
+ </strong>
+ </div>
</div>
</div>
- <gl-empty-state
- class="gl-my-9"
- :title="savedContentMeta ? $options.title : $options.submittingTitle"
- :primary-button-text="savedContentMeta && $options.primaryButtonText"
- :primary-button-link="savedContentMeta && savedContentMeta.mergeRequest.url"
- :svg-path="mergeRequestsIllustrationPath"
- :svg-height="146"
- >
- <template #description>
- <div v-if="savedContentMeta">
- <p>{{ $options.mergeRequestInstructionsHeading }}</p>
- <p>{{ $options.addTitleInstruction }}</p>
- <p>{{ $options.addDescriptionInstruction }}</p>
- <p>{{ $options.assignMergeRequestInstruction }}</p>
- </div>
- <div v-else>
- <p>{{ $options.submittingNotePrimary }}</p>
- <p>{{ $options.submittingNoteSecondary }}</p>
- <gl-loading-icon size="xl" />
- </div>
- </template>
- </gl-empty-state>
+ <div class="container">
+ <gl-empty-state
+ class="gl-my-7"
+ :title="savedContentMeta ? $options.title : $options.submittingTitle"
+ :primary-button-text="savedContentMeta && $options.primaryButtonText"
+ :primary-button-link="savedContentMeta && savedContentMeta.mergeRequest.url"
+ :svg-path="mergeRequestsIllustrationPath"
+ :svg-height="146"
+ >
+ <template #description>
+ <div v-if="savedContentMeta">
+ <p>{{ $options.mergeRequestInstructionsHeading }}</p>
+ <p>{{ $options.addTitleInstruction }}</p>
+ <p>{{ $options.addDescriptionInstruction }}</p>
+ <p>{{ $options.assignMergeRequestInstruction }}</p>
+ </div>
+ <div v-else>
+ <p>{{ $options.submittingNotePrimary }}</p>
+ <p>{{ $options.submittingNoteSecondary }}</p>
+ <gl-loading-icon size="xl" />
+ </div>
+ </template>
+ </gl-empty-state>
+ </div>
</div>
</template>
diff --git a/app/assets/javascripts/static_site_editor/services/templater.js b/app/assets/javascripts/static_site_editor/services/templater.js
index 318f2099064..d302aea78a3 100644
--- a/app/assets/javascripts/static_site_editor/services/templater.js
+++ b/app/assets/javascripts/static_site_editor/services/templater.js
@@ -15,7 +15,7 @@ const markPrefix = `${marker}-${Date.now()}`;
const reHelpers = {
template: `.| |\\t|\\n(?!(\\n|${markPrefix}))`,
- openTag: '<(?!iframe)[a-zA-Z]+.*?>',
+ openTag: '<(?!figure|iframe)[a-zA-Z]+.*?>',
closeTag: '</.+>',
};
const reTemplated = new RegExp(`(^${wrapPrefix}(${reHelpers.template})+?${wrapPostfix}$)`, 'gm');