2016-11-13 15:42:56 +00:00
|
|
|
<template>
|
2018-02-01 22:45:29 +00:00
|
|
|
<div v-if="loggedIn">
|
2018-03-31 18:14:36 +00:00
|
|
|
<i :class='classes' class='icon-retweet rt-active' v-on:click.prevent='retweet()'></i>
|
2018-02-01 22:45:29 +00:00
|
|
|
<span v-if='status.repeat_num > 0'>{{status.repeat_num}}</span>
|
|
|
|
</div>
|
|
|
|
<div v-else>
|
2018-03-31 18:14:36 +00:00
|
|
|
<i :class='classes' class='icon-retweet'></i>
|
2016-11-13 15:42:56 +00:00
|
|
|
<span v-if='status.repeat_num > 0'>{{status.repeat_num}}</span>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./retweet_button.js" ></script>
|
|
|
|
|
2016-11-13 16:52:20 +00:00
|
|
|
<style lang='scss'>
|
|
|
|
@import '../../_variables.scss';
|
2018-02-01 22:45:29 +00:00
|
|
|
.rt-active {
|
2016-11-13 16:52:20 +00:00
|
|
|
cursor: pointer;
|
2017-03-09 04:45:40 +00:00
|
|
|
animation-duration: 0.6s;
|
2016-11-13 16:52:20 +00:00
|
|
|
&:hover {
|
2018-03-31 18:14:36 +00:00
|
|
|
color: $green_;
|
|
|
|
color: var(--cGreen);
|
2016-11-13 16:52:20 +00:00
|
|
|
}
|
|
|
|
}
|
2017-11-24 21:55:46 +00:00
|
|
|
.icon-retweet.retweeted {
|
2018-03-31 18:14:36 +00:00
|
|
|
color: $green_;
|
|
|
|
color: var(--cGreen);
|
2016-11-13 16:52:20 +00:00
|
|
|
}
|
2016-11-13 15:42:56 +00:00
|
|
|
</style>
|