2016-11-13 07:42:56 -08:00
|
|
|
<template>
|
2018-08-28 03:42:44 -07:00
|
|
|
<div v-if="loggedIn">
|
|
|
|
<template v-if="visibility !== 'private' && visibility !== 'direct'">
|
2019-07-05 00:17:44 -07:00
|
|
|
<i
|
|
|
|
:class="classes"
|
|
|
|
class="button-icon retweet-button icon-retweet rt-active"
|
|
|
|
:title="$t('tool_tip.repeat')"
|
|
|
|
@click.prevent="retweet()"
|
|
|
|
/>
|
2019-09-29 12:33:15 -07:00
|
|
|
<span v-if="!mergedConfig.hidePostStats && status.repeat_num > 0">{{ status.repeat_num }}</span>
|
2018-08-28 03:42:44 -07:00
|
|
|
</template>
|
|
|
|
<template v-else>
|
2019-07-05 00:17:44 -07:00
|
|
|
<i
|
|
|
|
:class="classes"
|
|
|
|
class="button-icon icon-lock"
|
|
|
|
:title="$t('timeline.no_retweet_hint')"
|
|
|
|
/>
|
2018-08-28 03:42:44 -07:00
|
|
|
</template>
|
2018-02-01 14:45:29 -08:00
|
|
|
</div>
|
2018-08-09 09:45:52 -07:00
|
|
|
<div v-else-if="!loggedIn">
|
2019-07-05 00:17:44 -07:00
|
|
|
<i
|
|
|
|
:class="classes"
|
|
|
|
class="button-icon icon-retweet"
|
|
|
|
:title="$t('tool_tip.repeat')"
|
|
|
|
/>
|
2019-09-29 12:33:15 -07:00
|
|
|
<span v-if="!mergedConfig.hidePostStats && status.repeat_num > 0">{{ status.repeat_num }}</span>
|
2016-11-13 07:42:56 -08:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./retweet_button.js" ></script>
|
|
|
|
|
2018-03-31 19:28:20 -07:00
|
|
|
<style lang="scss">
|
|
|
|
@import '../../_variables.scss';
|
|
|
|
.rt-active {
|
2018-04-07 09:30:27 -07:00
|
|
|
cursor: pointer;
|
|
|
|
animation-duration: 0.6s;
|
|
|
|
&:hover {
|
2018-03-31 19:28:20 -07:00
|
|
|
color: $fallback--cGreen;
|
|
|
|
color: var(--cGreen, $fallback--cGreen);
|
2018-04-07 09:30:27 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
.icon-retweet.retweeted {
|
|
|
|
color: $fallback--cGreen;
|
|
|
|
color: var(--cGreen, $fallback--cGreen);
|
2018-03-31 19:28:20 -07:00
|
|
|
}
|
2016-11-13 07:42:56 -08:00
|
|
|
</style>
|