yandere_fe/src/components/timeline/timeline.vue

34 lines
967 B
Vue
Raw Normal View History

2016-10-26 10:03:55 -07:00
<template>
<div class="timeline">
2016-10-28 06:40:13 -07:00
<a href="#" v-on:click.prevent='showNewStatuses()' v-if="timeline.newStatusCount > 0">
<div class="base01-background base05-border new-status-notification">
2016-10-28 06:40:13 -07:00
<p class="text-center" >
{{timeline.newStatusCount}} new statuses
</p>
</div>
</a>
<status-or-conversation v-for="status in timeline.visibleStatuses" :key="status.id" v-bind:statusoid="status"></status-or-conversation>
2016-11-06 08:44:05 -08:00
<a href="#" v-on:click.prevent='fetchOlderStatuses()' v-if="!timeline.loading">
<div class="base01-background base05-border new-status-notification">
2016-11-06 08:44:05 -08:00
<p class="text-center" >
Load older statuses.
</p>
</div>
</a>
2016-10-26 10:03:55 -07:00
</div>
</template>
<script src="./timeline.js"></script>
<style lang="scss">
.new-status-notification {
border-style: solid;
2017-01-15 06:53:55 -08:00
border-width: 1px 0 1px 0;
font-size: 1.1em;
p {
margin: 0px;
padding: 10px;
}
}
</style>