From 8f255fbad4ee80718da6b2154c410995561729de Mon Sep 17 00:00:00 2001
From: Henry Jameson <me@hjkos.com>
Date: Mon, 17 Dec 2018 19:14:38 +0300
Subject: Refactor follower/friends out of statuses/timeline into user_profile
 where it belongs. Changed display of profile to single panel with tabs.

---
 src/components/timeline/timeline.vue | 33 +++++----------------------------
 1 file changed, 5 insertions(+), 28 deletions(-)

(limited to 'src/components/timeline/timeline.vue')

diff --git a/src/components/timeline/timeline.vue b/src/components/timeline/timeline.vue
index bc7f74c2..6ba598c5 100644
--- a/src/components/timeline/timeline.vue
+++ b/src/components/timeline/timeline.vue
@@ -1,6 +1,6 @@
 <template>
-  <div class="timeline panel panel-default" v-if="viewing == 'statuses'">
-    <div class="panel-heading timeline-heading">
+  <div :class="classes.root">
+    <div :class="classes.header">
       <div class="title">
         {{title}}
       </div>
@@ -14,43 +14,20 @@
         {{$t('timeline.up_to_date')}}
       </div>
     </div>
-    <div class="panel-body">
+    <div :class="classes.body">
       <div class="timeline">
         <status-or-conversation v-for="status in timeline.visibleStatuses" :key="status.id" v-bind:statusoid="status" class="status-fadein"></status-or-conversation>
       </div>
     </div>
-    <div class="panel-footer">
+    <div :class="classes.footer">
       <a href="#" v-on:click.prevent='fetchOlderStatuses()' v-if="!timeline.loading">
         <div class="new-status-notification text-center panel-footer">{{$t('timeline.load_older')}}</div>
       </a>
       <div class="new-status-notification text-center panel-footer" v-else>...</div>
     </div>
   </div>
-  <div class="timeline panel panel-default" v-else-if="viewing == 'followers'">
-    <div class="panel-heading timeline-heading">
-      <div class="title">
-        {{$t('user_card.followers')}}
-      </div>
-    </div>
-    <div class="panel-body">
-      <div class="timeline">
-        <user-card v-for="follower in followers" :key="follower.id" :user="follower" :showFollows="false"></user-card>
-      </div>
-    </div>
-  </div>
-  <div class="timeline panel panel-default" v-else-if="viewing == 'friends'">
-    <div class="panel-heading timeline-heading">
-      <div class="title">
-        {{$t('user_card.followees')}}
-      </div>
-    </div>
-    <div class="panel-body">
-      <div class="timeline">
-        <user-card v-for="friend in friends" :key="friend.id" :user="friend" :showFollows="true"></user-card>
-      </div>
-    </div>
-  </div>
 </template>
+
 <script src="./timeline.js"></script>
 
 <style lang="scss">
-- 
cgit v1.2.3-70-g09d2

