2021-06-07 13:16:10 +00:00
|
|
|
<template>
|
2021-06-08 11:51:42 +00:00
|
|
|
<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"
|
2021-06-08 08:38:44 +00:00
|
|
|
:class="classnames"
|
2021-06-07 13:37:12 +00:00
|
|
|
>
|
|
|
|
<button
|
2021-06-08 09:58:28 +00:00
|
|
|
class="short"
|
|
|
|
:class="[{ '-sublime': !highlight }, oldStyle ? 'button-unstyled' : 'button-default']"
|
2021-06-07 13:37:12 +00:00
|
|
|
@click.prevent="onClick"
|
|
|
|
>
|
2021-06-10 15:52:23 +00:00
|
|
|
<!-- eslint-disable vue/no-v-html -->
|
2021-06-10 10:29:59 +00:00
|
|
|
<FAIcon
|
2021-06-11 08:49:32 +00:00
|
|
|
size="sm"
|
2021-06-10 10:29:59 +00:00
|
|
|
icon="at"
|
|
|
|
class="at"
|
2021-06-10 15:52:23 +00:00
|
|
|
/><span class="shortName"><span
|
2021-06-08 11:51:42 +00:00
|
|
|
class="userName"
|
|
|
|
v-html="userName"
|
|
|
|
/></span>
|
|
|
|
<span
|
|
|
|
v-if="isYou"
|
|
|
|
class="you"
|
|
|
|
>{{ $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"
|
2021-06-07 20:42:04 +00:00
|
|
|
class="full popover-default"
|
|
|
|
:class="[highlightType]"
|
2021-06-07 13:37:12 +00:00
|
|
|
>
|
2021-06-08 11:51:42 +00:00
|
|
|
<span
|
|
|
|
class="userNameFull"
|
2021-06-11 08:49:32 +00:00
|
|
|
v-text="'@' + userNameFull"
|
2021-06-08 11:51:42 +00:00
|
|
|
/>
|
2021-06-07 13:16:10 +00:00
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./mention_link.js"/>
|
|
|
|
|
|
|
|
<style lang="scss" src="./mention_link.scss"/>
|