2016-10-29 00:19:42 +11:00
|
|
|
<template>
|
|
|
|
<div class="status-el">
|
2016-10-29 03:08:03 +11:00
|
|
|
<div v-if="retweet" class="media container retweet-info">
|
2016-10-29 00:19:42 +11:00
|
|
|
<div class="media-left">
|
|
|
|
<i class='fa fa-retweet'></i>
|
|
|
|
</div>
|
|
|
|
<div class="media-body">
|
2016-10-29 03:08:03 +11:00
|
|
|
Retweeted by {{retweeter}}
|
2016-10-29 00:19:42 +11:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="media status container" ng-class="{compact: compact, notify: notify}">
|
|
|
|
<div class="media-left">
|
|
|
|
<a href="#">
|
|
|
|
<img class='avatar' :src="status.user.profile_image_url_original">
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="media-body">
|
2016-10-29 03:08:03 +11:00
|
|
|
<h4 class="media-heading">
|
2016-10-29 00:19:42 +11:00
|
|
|
<strong>{{status.user.name}}</strong>
|
|
|
|
<small>{{status.user.screen_name}}</small>
|
2016-10-29 03:08:03 +11:00
|
|
|
<small v-if="status.in_reply_to_screen_name"> > {{status.in_reply_to_screen_name}}</small>
|
2016-10-29 00:19:42 +11:00
|
|
|
-
|
2016-10-29 03:08:03 +11:00
|
|
|
<small>{{status.created_at_parsed}}</small>
|
2016-10-29 00:19:42 +11:00
|
|
|
</h4>
|
|
|
|
|
2016-10-31 02:12:35 +11:00
|
|
|
<p>
|
|
|
|
<div v-html="status.statusnet_html"></div>
|
|
|
|
</p>
|
2016-10-29 00:19:42 +11:00
|
|
|
|
2016-10-29 03:08:03 +11:00
|
|
|
<div v-if='status.attachments' class='attachments'>
|
2016-10-29 10:38:41 +11:00
|
|
|
<attachment :status-id="status.id" :nsfw="status.nsfw" :attachment="attachment" v-for="attachment in status.attachments">
|
2016-10-29 00:19:42 +11:00
|
|
|
</attachment>
|
|
|
|
</div>
|
|
|
|
|
2016-10-29 03:08:03 +11:00
|
|
|
<div>
|
2016-10-29 00:19:42 +11:00
|
|
|
<div class='status-actions'>
|
|
|
|
<div ng-click="toggleReplying()">
|
2016-10-31 02:12:35 +11:00
|
|
|
<i class='fa icon-reply'></i>
|
2016-10-29 00:19:42 +11:00
|
|
|
</div>
|
|
|
|
<div>
|
2016-10-31 02:12:35 +11:00
|
|
|
<i class='fa icon-retweet'></i>
|
2016-10-29 00:19:42 +11:00
|
|
|
</div>
|
2016-10-31 02:12:35 +11:00
|
|
|
<favorite-button :status=status></favorite-button>
|
2016-10-29 00:19:42 +11:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- <post-status-form ng-if="replying" toggle="toggleReplying" reply-to-status="status" reply-to="{{status.id}}"></post-status-form> -->
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./status.js" ></script>
|
2016-10-29 10:38:41 +11:00
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
.status-el {
|
|
|
|
word-wrap: break-word;
|
|
|
|
|
|
|
|
a {
|
|
|
|
word-break: break-all;
|
|
|
|
}
|
|
|
|
}
|
2016-11-03 04:38:30 +11:00
|
|
|
|
|
|
|
.status-actions {
|
|
|
|
padding-top: 5px;
|
|
|
|
}
|
2016-10-29 10:38:41 +11:00
|
|
|
</style>
|