User profile viewing - need to add more to the details view
This commit is contained in:
12
frontend/src/routes/user/[uuid]/+page.svelte
Normal file
12
frontend/src/routes/user/[uuid]/+page.svelte
Normal file
@@ -0,0 +1,12 @@
|
||||
<script lang="ts">
|
||||
import type { PageData } from './$types';
|
||||
|
||||
export let data: PageData;
|
||||
const user = data.props.user;
|
||||
console.log(user);
|
||||
</script>
|
||||
|
||||
<h1>{user.first_name} {user.last_name}</h1>
|
||||
<p>{user.username}</p>
|
||||
|
||||
<p>{user.is_staff ? 'Admin' : 'User'}</p>
|
||||
Reference in New Issue
Block a user