aboutsummaryrefslogtreecommitdiff
path: root/src/components/timeline/timeline.vue
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2017-03-01 20:36:37 +0100
committerRoger Braun <roger@rogerbraun.net>2017-03-01 20:36:37 +0100
commita4c58aab13db901197ec20ef2bc8b79578141b92 (patch)
treef54bb4f435604ad77b3588faa6a3872bd3bdbfe2 /src/components/timeline/timeline.vue
parent51294082e079e83c7bc0df94e21e750d2a663a27 (diff)
Unify notice timelines to make changes easier.
Diffstat (limited to 'src/components/timeline/timeline.vue')
-rw-r--r--src/components/timeline/timeline.vue35
1 files changed, 20 insertions, 15 deletions
diff --git a/src/components/timeline/timeline.vue b/src/components/timeline/timeline.vue
index 45886f6c..15ac5ff8 100644
--- a/src/components/timeline/timeline.vue
+++ b/src/components/timeline/timeline.vue
@@ -1,20 +1,25 @@
<template>
- <div class="timeline">
- <a href="#" v-on:click.prevent='showNewStatuses()' v-if="timeline.newStatusCount > 0">
- <div class="base01-background base05-border new-status-notification">
- <p class="text-center" >
- {{timeline.newStatusCount}} new statuses
- </p>
+ <div class="timeline panel panel-default">
+ <div class="panel-heading base01-background base04">{{title}}</div>
+ <div class="panel-body">
+ <div class="timeline">
+ <a href="#" v-on:click.prevent='showNewStatuses()' v-if="timeline.newStatusCount > 0">
+ <div class="base01-background base05-border new-status-notification">
+ <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>
+ <a href="#" v-on:click.prevent='fetchOlderStatuses()' v-if="!timeline.loading">
+ <div class="base01-background base05-border new-status-notification">
+ <p class="text-center" >
+ Load older statuses.
+ </p>
+ </div>
+ </a>
</div>
- </a>
- <status-or-conversation v-for="status in timeline.visibleStatuses" :key="status.id" v-bind:statusoid="status"></status-or-conversation>
- <a href="#" v-on:click.prevent='fetchOlderStatuses()' v-if="!timeline.loading">
- <div class="base01-background base05-border new-status-notification">
- <p class="text-center" >
- Load older statuses.
- </p>
- </div>
- </a>
+ </div>
</div>
</template>
<script src="./timeline.js"></script>