2021-06-07 06:16:10 -07:00
|
|
|
<template>
|
2021-06-08 02:58:28 -07:00
|
|
|
<span
|
|
|
|
class="MentionLink"
|
|
|
|
:class="{ '-oldPlace': oldPlace }"
|
|
|
|
>
|
2021-06-07 06:37:12 -07: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 01:38:44 -07:00
|
|
|
:class="classnames"
|
2021-06-07 06:37:12 -07:00
|
|
|
>
|
|
|
|
<button
|
2021-06-08 02:58:28 -07:00
|
|
|
class="short"
|
|
|
|
:class="[{ '-sublime': !highlight }, oldStyle ? 'button-unstyled' : 'button-default']"
|
2021-06-07 06:37:12 -07:00
|
|
|
@click.prevent="onClick"
|
|
|
|
>
|
|
|
|
<!-- eslint-disable vue/no-v-html -->
|
2021-06-07 13:42:04 -07:00
|
|
|
<span class="shortName"><span class="userName" v-html="userName" /></span><span class="you" v-if="isYou">{{ $t('status.you')}}</span>
|
2021-06-07 06:37:12 -07:00
|
|
|
<!-- eslint-enable vue/no-v-html -->
|
2021-06-07 06:16:10 -07:00
|
|
|
</button>
|
2021-06-07 06:37:12 -07:00
|
|
|
<span
|
|
|
|
v-if="userName !== userNameFull"
|
2021-06-07 13:42:04 -07:00
|
|
|
class="full popover-default"
|
|
|
|
:class="[highlightType]"
|
2021-06-07 06:37:12 -07:00
|
|
|
>
|
|
|
|
<!-- eslint-disable vue/no-v-html -->
|
2021-06-07 13:42:04 -07:00
|
|
|
<span class="userNameFull" v-html="userNameFull" />
|
2021-06-07 06:37:12 -07:00
|
|
|
<!-- eslint-enable vue/no-v-html -->
|
2021-06-07 06:16:10 -07:00
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./mention_link.js"/>
|
|
|
|
|
|
|
|
<style lang="scss" src="./mention_link.scss"/>
|