pleroma-fe/src/components/timeline/timeline.vue

28 lines
762 B
Vue
Raw Normal View History

2016-10-27 04:03:55 +11:00
<template>
<div class="timeline">
2016-10-29 00:40:13 +11:00
<a href="#" v-on:click.prevent='showNewStatuses()' v-if="timeline.newStatusCount > 0">
<div class="new-status-notification">
<p class="text-center" >
{{timeline.newStatusCount}} new statuses
</p>
</div>
</a>
2016-11-04 02:59:06 +11:00
<status v-for="status in timeline.visibleStatuses" :key="status.id" v-bind:statusoid="status"></status>
2016-11-07 03:44:05 +11:00
<a href="#" v-on:click.prevent='fetchOlderStatuses()' v-if="!timeline.loading">
<div class="new-status-notification">
<p class="text-center" >
Load older statuses.
</p>
</div>
</a>
2016-10-27 04:03:55 +11:00
</div>
</template>
<script src="./timeline.js"></script>
2016-10-29 10:38:41 +11:00
<style>
.timeline.panel {
2016-11-13 06:57:54 +11:00
flex: 2;
flex-basis: 500px;
2016-10-29 10:38:41 +11:00
}
</style>