Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
admin-fe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pleroma
admin-fe
Commits
ca8df9e7
Commit
ca8df9e7
authored
4 years ago
by
Angelina Filippova
Browse files
Options
Downloads
Patches
Plain Diff
Render status-card
parent
9c067761
No related branches found
Branches containing commit
No related tags found
1 merge request
!126
Create route for single status
Pipeline
#25074
passed
4 years ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/views/statuses/show.vue
+91
-4
91 additions, 4 deletions
src/views/statuses/show.vue
with
91 additions
and
4 deletions
src/views/statuses/show.vue
+
91
−
4
View file @
ca8df9e7
<
template
>
<main>
{{
status
}}
<!--
<status
:status=
"status"
:account=
"status.account"
:show-checkbox=
"false"
:godmode=
"showPrivate"
/>
-->
<header
v-if=
"isDesktop || isTablet"
class=
"user-page-header"
>
<div
class=
"avatar-name-container"
>
<el-avatar
v-if=
"accountExists(user, 'avatar')"
:src=
"user.avatar"
size=
"large"
/>
<h1
v-if=
"accountExists(user, 'display_name')"
>
{{
user
.
display_name
}}
</h1>
</div>
<div
class=
"left-header-container"
>
<moderation-dropdown
:user=
"user"
:page=
"'userPage'"
@
open-reset-token-dialog=
"openResetPasswordDialog"
/>
<reboot-button/>
</div>
</header>
<div
v-if=
"isMobile"
class=
"user-page-header-container"
>
<header
class=
"user-page-header"
>
<div
class=
"avatar-name-container"
>
<el-avatar
v-if=
"accountExists(user, 'avatar')"
:src=
"user.avatar"
size=
"large"
/>
<h1
v-if=
"accountExists(user, 'display_name')"
>
{{
user
.
display_name
}}
</h1>
</div>
<reboot-button/>
</header>
<moderation-dropdown
:user=
"user"
:page=
"'userPage'"
@
open-reset-token-dialog=
"openResetPasswordDialog"
/>
</div>
<div
class=
"status-container"
>
<status
:status=
"status"
:account=
"user"
:show-checkbox=
"false"
:godmode=
"showPrivate"
/>
</div>
</main>
</
template
>
<
script
>
import
Status
from
'
@/components/Status
'
import
ModerationDropdown
from
'
../users/components/ModerationDropdown
'
import
RebootButton
from
'
@/components/RebootButton
'
export
default
{
name
:
'
UsersShow
'
,
components
:
{
Status
},
components
:
{
ModerationDropdown
,
RebootButton
,
Status
},
data
()
{
return
{
showPrivate
:
false
showPrivate
:
true
,
resetPasswordDialogOpen
:
false
}
},
computed
:
{
...
...
@@ -28,12 +58,69 @@ export default {
},
status
()
{
return
this
.
$store
.
state
.
status
.
fetchedStatus
},
user
()
{
return
this
.
$store
.
state
.
status
.
fetchedStatus
.
account
}
},
mounted
:
function
()
{
this
.
$store
.
dispatch
(
'
NeedReboot
'
)
this
.
$store
.
dispatch
(
'
GetNodeInfo
'
)
this
.
$store
.
dispatch
(
'
FetchStatus
'
,
this
.
$route
.
params
.
id
)
},
methods
:
{
accountExists
(
account
,
key
)
{
return
account
[
key
]
},
openResetPasswordDialog
()
{
this
.
resetPasswordDialogOpen
=
true
}
}
}
</
script
>
<
style
rel=
'stylesheet/scss'
lang=
'scss'
scoped
>
.avatar-name-container
{
display
:
flex
;
align-items
:
center
;
}
.status-container
{
margin
:
0
15px
0
20px
;
}
.user-page-header
{
display
:
flex
;
justify-content
:
space-between
;
margin
:
22px
15px
22px
20px
;
align-items
:
center
;
h1
{
display
:
inline
;
margin
:
0
0
0
10px
;
}
}
@media
only
screen
and
(
max-width
:
480px
)
{
.avatar-name-container
{
margin-bottom
:
10px
;
}
.left-header-container
{
align-items
:
center
;
display
:
flex
;
justify-content
:
space-between
;
}
.user-page-header
{
padding
:
0
;
margin
:
7px
15px
15px
10px
;
}
.user-page-header-container
{
.el-dropdown
{
width
:
95%
;
margin
:
0
15px
15px
10px
;
}
}
}
@media
only
screen
and
(
max-width
:
801px
)
and
(
min-width
:
481px
)
{
.user-page-header
{
padding
:
0
;
margin
:
7px
15px
20px
20px
;
}
}
</
style
>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment