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