2021-06-07 13:16:10 +00:00
|
|
|
<template>
|
|
|
|
<span class="MentionLink">
|
2021-06-07 13:37:12 +00:00
|
|
|
<!-- eslint-disable vue/no-v-html -->
|
|
|
|
<a
|
|
|
|
v-if="!user"
|
|
|
|
href="url"
|
|
|
|
class="original"
|
|
|
|
v-html="content"
|
|
|
|
/>
|
|
|
|
<!-- eslint-enable vue/no-v-html -->
|
|
|
|
<span
|
|
|
|
v-if="user"
|
|
|
|
class="new"
|
|
|
|
:style="style"
|
|
|
|
:class="{ '-you': isYou }"
|
|
|
|
>
|
|
|
|
<button
|
|
|
|
class="button-unstyled short"
|
|
|
|
@click.prevent="onClick"
|
|
|
|
>
|
|
|
|
<!-- eslint-disable vue/no-v-html -->
|
2021-06-07 17:25:09 +00:00
|
|
|
<span class="shortName">@<span v-html="userName" /></span> <span v-if="isYou">{{ $t('status.you')}}</span>
|
2021-06-07 13:37:12 +00:00
|
|
|
<!-- eslint-enable vue/no-v-html -->
|
2021-06-07 13:16:10 +00:00
|
|
|
</button>
|
2021-06-07 13:37:12 +00:00
|
|
|
<span
|
|
|
|
v-if="userName !== userNameFull"
|
|
|
|
class="full"
|
|
|
|
>
|
|
|
|
<!-- eslint-disable vue/no-v-html -->
|
2021-06-07 13:16:10 +00:00
|
|
|
@<span v-html="userNameFull" />
|
2021-06-07 13:37:12 +00:00
|
|
|
<!-- eslint-enable vue/no-v-html -->
|
2021-06-07 13:16:10 +00:00
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./mention_link.js"/>
|
|
|
|
|
|
|
|
<style lang="scss" src="./mention_link.scss"/>
|