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">
|
2016-11-04 02:59:27 +11:00
|
|
|
<i class='fa icon-retweet'></i>
|
2016-10-29 00:19:42 +11:00
|
|
|
</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">
|
2016-11-08 02:42:29 +11:00
|
|
|
<a :href="status.user.statusnet_profile_url">
|
2016-10-29 00:19:42 +11:00
|
|
|
<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>
|
2016-11-08 02:42:29 +11:00
|
|
|
<small><a :href="status.user.statusnet_profile_url">{{status.user.screen_name}}</a></small>
|
|
|
|
<small v-if="status.in_reply_to_screen_name"> > <a :href="status.in_reply_to_profileurl">{{status.in_reply_to_screen_name}}</a></small>
|
2016-10-29 00:19:42 +11:00
|
|
|
-
|
2016-11-25 04:19:01 +11:00
|
|
|
<small>
|
|
|
|
<router-link :to="{ name: 'conversation', params: { id: status.id } }">
|
|
|
|
{{status.created_at_parsed}}
|
|
|
|
</router-link>
|
|
|
|
</small>
|
2016-11-26 03:34:41 +11:00
|
|
|
<small v-if="!status.is_local" class="source_url">
|
|
|
|
<a :href="status.external_url" >Source</a>
|
|
|
|
</small>
|
2016-10-29 00:19:42 +11:00
|
|
|
</h4>
|
|
|
|
|
2016-11-13 07:31:41 +11:00
|
|
|
<div class="status-content" v-html="status.statusnet_html"></div>
|
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-11-07 06:45:26 +11:00
|
|
|
<div v-if="loggedIn">
|
2016-10-29 00:19:42 +11:00
|
|
|
<div class='status-actions'>
|
2016-11-04 02:59:27 +11:00
|
|
|
<div>
|
2016-11-04 03:35:49 +11:00
|
|
|
<a href="#" v-on:click.prevent="toggleReplying">
|
2016-11-04 02:59:27 +11:00
|
|
|
<i class='fa icon-reply'></i>
|
|
|
|
</a>
|
2016-10-29 00:19:42 +11:00
|
|
|
</div>
|
2016-11-14 02:42:56 +11:00
|
|
|
<retweet-button :status=status></retweet-button>
|
2016-10-31 02:12:35 +11:00
|
|
|
<favorite-button :status=status></favorite-button>
|
2016-10-29 00:19:42 +11:00
|
|
|
</div>
|
|
|
|
|
2016-11-04 03:35:49 +11:00
|
|
|
<post-status-form v-if="replying" :reply-to="status.id" :attentions="status.attentions" :repliedUser="status.user" v-on:posted="toggleReplying"></post-status-form>
|
2016-10-29 00:19:42 +11:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./status.js" ></script>
|
2016-10-29 10:38:41 +11:00
|
|
|
|
|
|
|
<style lang="scss">
|
2016-11-26 03:19:46 +11:00
|
|
|
@import '../../_variables.scss';
|
|
|
|
.status-el {
|
2016-11-13 06:57:54 +11:00
|
|
|
hyphens: auto;
|
|
|
|
overflow-wrap: break-word;
|
2016-10-29 10:38:41 +11:00
|
|
|
word-wrap: break-word;
|
2016-11-04 02:59:27 +11:00
|
|
|
word-break: break-word;
|
2016-10-29 10:38:41 +11:00
|
|
|
|
2016-11-26 03:34:41 +11:00
|
|
|
.source_url {
|
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
|
2016-11-26 03:34:59 +11:00
|
|
|
.greentext {
|
|
|
|
color: green;
|
|
|
|
}
|
|
|
|
|
2016-10-29 10:38:41 +11:00
|
|
|
a {
|
2016-11-13 06:57:54 +11:00
|
|
|
display: inline-block;
|
2016-10-29 10:38:41 +11:00
|
|
|
word-break: break-all;
|
|
|
|
}
|
2016-11-13 07:31:41 +11:00
|
|
|
|
|
|
|
.status-content {
|
|
|
|
margin-top: 3px;
|
|
|
|
margin-bottom: 3px;
|
|
|
|
}
|
2016-11-25 23:42:33 +11:00
|
|
|
|
|
|
|
p {
|
2016-11-26 03:19:46 +11:00
|
|
|
margin: 0;
|
|
|
|
margin-top: 0.2em;
|
|
|
|
margin-bottom: 0.5em;
|
2016-11-25 23:42:33 +11:00
|
|
|
}
|
2016-11-26 03:19:46 +11:00
|
|
|
}
|
2016-11-03 04:38:30 +11:00
|
|
|
|
2016-11-26 03:19:46 +11:00
|
|
|
.status-actions {
|
2016-11-03 04:38:30 +11:00
|
|
|
padding-top: 5px;
|
2016-11-26 03:19:46 +11:00
|
|
|
}
|
2016-11-14 03:52:20 +11:00
|
|
|
|
2016-11-26 03:19:46 +11:00
|
|
|
.icon-reply:hover {
|
2016-11-14 03:52:20 +11:00
|
|
|
color: $blue;
|
2016-11-26 03:19:46 +11:00
|
|
|
}
|
2016-11-25 23:42:33 +11:00
|
|
|
|
2016-11-26 03:19:46 +11:00
|
|
|
.status .avatar {
|
|
|
|
width: 48px;
|
|
|
|
}
|
2016-11-25 23:42:33 +11:00
|
|
|
|
2016-11-26 03:19:46 +11:00
|
|
|
.status.compact .avatar {
|
|
|
|
width: 32px;
|
|
|
|
}
|
2016-11-25 23:42:33 +11:00
|
|
|
|
2016-11-26 03:19:46 +11:00
|
|
|
.status {
|
|
|
|
padding: 0.5em;
|
|
|
|
padding-right: 1em;
|
|
|
|
border-bottom: 1px solid silver;
|
|
|
|
}
|
2016-11-25 23:42:33 +11:00
|
|
|
|
2016-11-26 03:19:46 +11:00
|
|
|
.status-el:last-child .status {
|
|
|
|
border: none
|
|
|
|
}
|
2016-10-29 10:38:41 +11:00
|
|
|
</style>
|