2021-06-07 23:16:10 +10:00
|
|
|
<template>
|
2021-06-08 21:51:42 +10:00
|
|
|
<span
|
|
|
|
class="MentionLink"
|
|
|
|
>
|
2021-06-07 23:37:12 +10:00
|
|
|
<!-- eslint-disable vue/no-v-html -->
|
|
|
|
<a
|
|
|
|
v-if="!user"
|
2021-06-23 03:16:26 +10:00
|
|
|
:href="url"
|
2021-06-07 23:37:12 +10:00
|
|
|
class="original"
|
2021-06-23 03:16:26 +10:00
|
|
|
target="_blank"
|
2021-06-07 23:37:12 +10:00
|
|
|
v-html="content"
|
|
|
|
/>
|
|
|
|
<!-- eslint-enable vue/no-v-html -->
|
|
|
|
<span
|
|
|
|
v-if="user"
|
|
|
|
class="new"
|
|
|
|
:style="style"
|
2021-06-08 18:38:44 +10:00
|
|
|
:class="classnames"
|
2021-06-07 23:37:12 +10:00
|
|
|
>
|
|
|
|
<button
|
2021-08-12 09:49:37 +10:00
|
|
|
class="short button-unstyled"
|
2021-06-07 23:37:12 +10:00
|
|
|
@click.prevent="onClick"
|
|
|
|
>
|
2021-06-11 01:52:23 +10:00
|
|
|
<!-- eslint-disable vue/no-v-html -->
|
2021-06-10 20:29:59 +10:00
|
|
|
<FAIcon
|
2021-06-11 18:49:32 +10:00
|
|
|
size="sm"
|
2021-06-10 20:29:59 +10:00
|
|
|
icon="at"
|
|
|
|
class="at"
|
2021-06-11 01:52:23 +10:00
|
|
|
/><span class="shortName"><span
|
2021-06-08 21:51:42 +10:00
|
|
|
class="userName"
|
|
|
|
v-html="userName"
|
|
|
|
/></span>
|
|
|
|
<span
|
|
|
|
v-if="isYou"
|
|
|
|
class="you"
|
|
|
|
>{{ $t('status.you') }}</span>
|
2021-06-07 23:37:12 +10:00
|
|
|
<!-- eslint-enable vue/no-v-html -->
|
2021-06-07 23:16:10 +10:00
|
|
|
</button>
|
2021-06-07 23:37:12 +10:00
|
|
|
<span
|
|
|
|
v-if="userName !== userNameFull"
|
2021-06-08 06:42:04 +10:00
|
|
|
class="full popover-default"
|
|
|
|
:class="[highlightType]"
|
2021-06-07 23:37:12 +10:00
|
|
|
>
|
2021-06-08 21:51:42 +10:00
|
|
|
<span
|
|
|
|
class="userNameFull"
|
2021-06-11 18:49:32 +10:00
|
|
|
v-text="'@' + userNameFull"
|
2021-06-08 21:51:42 +10:00
|
|
|
/>
|
2021-06-07 23:16:10 +10:00
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./mention_link.js"/>
|
|
|
|
|
|
|
|
<style lang="scss" src="./mention_link.scss"/>
|