2016-10-26 17:03:55 +00:00
|
|
|
<template>
|
|
|
|
<div class="timeline">
|
2016-10-28 13:40:13 +00:00
|
|
|
<a href="#" v-on:click.prevent='showNewStatuses()' v-if="timeline.newStatusCount > 0">
|
2017-02-26 20:36:54 +00:00
|
|
|
<div class="base00-background base05-border new-status-notification">
|
2016-10-28 13:40:13 +00:00
|
|
|
<p class="text-center" >
|
|
|
|
{{timeline.newStatusCount}} new statuses
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</a>
|
2017-02-04 12:53:16 +00:00
|
|
|
<status-or-conversation v-for="status in timeline.visibleStatuses" :key="status.id" v-bind:statusoid="status"></status-or-conversation>
|
2016-11-06 16:44:05 +00:00
|
|
|
<a href="#" v-on:click.prevent='fetchOlderStatuses()' v-if="!timeline.loading">
|
2017-01-15 14:44:56 +00:00
|
|
|
<div class="base01-background base05-border new-status-notification">
|
2016-11-06 16:44:05 +00:00
|
|
|
<p class="text-center" >
|
|
|
|
Load older statuses.
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</a>
|
2016-10-26 17:03:55 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
<script src="./timeline.js"></script>
|
2017-01-15 14:44:56 +00:00
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
.new-status-notification {
|
|
|
|
border-style: solid;
|
2017-02-26 20:36:54 +00:00
|
|
|
float: right;
|
|
|
|
border-width: 1px 1px 0px 1px;
|
|
|
|
border-radius: 5px 5px 0 0;
|
2017-01-15 14:44:56 +00:00
|
|
|
font-size: 1.1em;
|
2017-02-26 20:36:54 +00:00
|
|
|
margin-top: -2.08em;
|
|
|
|
margin-right: 0.8em;
|
|
|
|
max-width: 200px;
|
|
|
|
max-height: 2em;
|
2017-01-15 14:44:56 +00:00
|
|
|
|
|
|
|
p {
|
|
|
|
margin: 0px;
|
2017-02-26 20:36:54 +00:00
|
|
|
padding: 0.6em;
|
2017-01-15 14:44:56 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|