aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/components')
-rw-r--r--src/components/status/status.vue6
-rw-r--r--src/components/user_profile/user_profile.js17
-rw-r--r--src/components/user_profile/user_profile.vue14
3 files changed, 35 insertions, 2 deletions
diff --git a/src/components/status/status.vue b/src/components/status/status.vue
index 1e824fbe..58e808b3 100644
--- a/src/components/status/status.vue
+++ b/src/components/status/status.vue
@@ -18,8 +18,10 @@
<div class="user-content">
<h4 class="media-heading">
{{status.user.name}}
- <small><a :href="status.user.statusnet_profile_url">{{status.user.screen_name}}</a></small>
- <small v-if="status.in_reply_to_screen_name"> &gt; <a :href="status.in_reply_to_profileurl">{{status.in_reply_to_screen_name}}</a></small>
+ <small><router-link :to="{ name: 'user-profile', params: { id: status.user.id } }">{{status.user.screen_name}}</router-link></small>
+ <small v-if="status.in_reply_to_screen_name"> &gt;
+ <a :href="status.in_reply_to_profileurl">{{status.in_reply_to_screen_name}}</a>
+ </small>
-
<small>
<router-link :to="{ name: 'conversation', params: { id: status.id } }">
diff --git a/src/components/user_profile/user_profile.js b/src/components/user_profile/user_profile.js
new file mode 100644
index 00000000..4d52bc95
--- /dev/null
+++ b/src/components/user_profile/user_profile.js
@@ -0,0 +1,17 @@
+import UserCardContent from '../user_card_content/user_card_content.vue'
+import { find } from 'lodash'
+
+const UserProfile = {
+ computed: {
+ user () {
+ const id = this.$route.params.id
+ const user = find(this.$store.state.users.users, {id})
+ return user
+ }
+ },
+ components: {
+ UserCardContent
+ }
+}
+
+export default UserProfile
diff --git a/src/components/user_profile/user_profile.vue b/src/components/user_profile/user_profile.vue
new file mode 100644
index 00000000..767982c5
--- /dev/null
+++ b/src/components/user_profile/user_profile.vue
@@ -0,0 +1,14 @@
+<template>
+ <div class="user-profile panel panel-default">
+ <user-card-content :user="user"></user-card-content>
+ </div>
+</template>
+
+<script src="./user_profile.js"></script>
+
+<style>
+ .user-profile {
+ flex: 2;
+ flex-basis: 500px;
+ }
+</style>