diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-20 13:49:51 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-20 13:49:51 +0000 |
commit | 71786ddc8e28fbd3cb3fcc4b3ff15e5962a1c82e (patch) | |
tree | 6a2d93ef3fb2d353bb7739e4b57e6541f51cdd71 /app/assets/javascripts/work_items/components/notes/work_item_note_signed_out.vue | |
parent | a7253423e3403b8c08f8a161e5937e1488f5f407 (diff) | |
download | gitlab-ce-15.9.0-rc42.tar.gz |
Add latest changes from gitlab-org/gitlab@15-9-stable-eev15.9.0-rc42
Diffstat (limited to 'app/assets/javascripts/work_items/components/notes/work_item_note_signed_out.vue')
-rw-r--r-- | app/assets/javascripts/work_items/components/notes/work_item_note_signed_out.vue | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/app/assets/javascripts/work_items/components/notes/work_item_note_signed_out.vue b/app/assets/javascripts/work_items/components/notes/work_item_note_signed_out.vue new file mode 100644 index 00000000000..3ef4a16bc57 --- /dev/null +++ b/app/assets/javascripts/work_items/components/notes/work_item_note_signed_out.vue @@ -0,0 +1,31 @@ +<script> +import SafeHtml from '~/vue_shared/directives/safe_html'; +import { __, sprintf } from '~/locale'; + +export default { + directives: { + SafeHtml, + }, + inject: ['registerPath', 'signInPath'], + computed: { + signedOutText() { + return sprintf( + __( + 'Please %{startTagRegister}register%{endRegisterTag} or %{startTagSignIn}sign in%{endSignInTag} to reply', + ), + { + startTagRegister: `<a href="${this.registerPath}">`, + startTagSignIn: `<a href="${this.signInPath}">`, + endRegisterTag: '</a>', + endSignInTag: '</a>', + }, + false, + ); + }, + }, +}; +</script> + +<template> + <div v-safe-html="signedOutText" class="disabled-comment gl-text-center"></div> +</template> |