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

40 lines
1.2 KiB
Vue
Raw Normal View History

2016-10-28 03:02:28 +11:00
<template>
<div class="user-panel">
2016-10-28 23:26:23 +11:00
<div v-if='user' class="panel panel-default">
2016-10-28 03:02:28 +11:00
<!-- Default panel contents -->
2016-10-28 23:26:23 +11:00
<div class="panel-heading text-center" v-bind:style="style">
2016-10-28 03:02:28 +11:00
<div class='user-info'>
<img :src="user.profile_image_url">
<span class="glyphicon glyphicon-user"></span>
<div class='user-name'>{{user.name}}</div>
<div class='user-screen-name'>@{{user.screen_name}}</div>
</div>
</div>
<div class="panel-body">
<div class="user-counts">
<div class="user-count">
<h5>Statuses</h5>
<span>{{user.statuses_count}}</span>
</div>
<div class="user-count">
<h5>Following</h5>
<span>{{user.friends_count}}</span>
</div>
<div class="user-count">
<h5>Followers</h5>
<span>{{user.followers_count}}</span>
</div>
</div>
<p>{{user.description}}</p>
</div>
<div class="panel-footer">
2016-10-31 02:53:58 +11:00
<post-status-form v-if='user'></post-status-form>
2016-10-28 03:02:28 +11:00
</div>
</div>
<login-form v-if='!user'></login-form>
</div>
</template>
<script src="./user_panel.js"></script>