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