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
Merge requests
!22
Render html tags in statuses
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Render html tags in statuses
linafilippova/admin-fe:feature/add-mobile-ui-to-reports
into
master
Overview
0
Commits
2
Pipelines
0
Changes
4
Merged
Angelina Filippova
requested to merge
linafilippova/admin-fe:feature/add-mobile-ui-to-reports
into
master
5 years ago
Overview
0
Commits
2
Pipelines
0
Changes
4
Expand
Closes
#22 (closed)
This MR also adds styles for mobile UI of reports
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
c1dd0c30
2 commits,
5 years ago
4 files
+
66
−
18
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
src/views/reports/components/Statuses.vue
+
45
−
9
Options
@@ -3,15 +3,22 @@
<el-card
v-for=
"status in report.statuses"
:key=
"status.id"
class=
"status-card"
>
<div
slot=
"header"
>
<div
class=
"status-header"
>
<div
class=
"status-account"
>
<img
:src=
"status.account.avatar"
alt=
"avatar"
class=
"status-avatar-img"
>
<h3
class=
"status-account-name"
>
{{
status
.
account
.
display_name
}}
</h3>
<div
class=
"status-account-container"
>
<div
class=
"status-account"
>
<img
:src=
"status.account.avatar"
class=
"status-avatar-img"
>
<h3
class=
"status-account-name"
>
{{
status
.
account
.
display_name
}}
</h3>
</div>
<a
:href=
"status.account.url"
target=
"_blank"
class=
"account"
>
@
{{
status
.
account
.
acct
}}
</a>
</div>
<div
class=
"status-actions"
>
<el-tag
v-if=
"status.sensitive"
type=
"warning"
size=
"large"
>
{{
$t
(
'
reports.sensitive
'
)
}}
</el-tag>
<el-tag
size=
"large"
>
{{
capitalizeFirstLetter
(
status
.
visibility
)
}}
</el-tag>
<el-dropdown
trigger=
"click"
>
<el-button
plain
size=
"small"
icon=
"el-icon-edit"
>
{{
$t
(
'
reports.changeScope
'
)
}}
<i
class=
"el-icon-arrow-down el-icon--right"
/></el-button>
<el-button
plain
size=
"small"
icon=
"el-icon-edit"
class=
"status-actions-button"
>
{{
$t
(
'
reports.changeScope
'
)
}}
<i
class=
"el-icon-arrow-down el-icon--right"
/>
</el-button>
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-item
v-if=
"!status.sensitive"
@@ -46,12 +53,9 @@
</el-dropdown>
</div>
</div>
<a
:href=
"status.account.url"
target=
"_blank"
class=
"account"
>
@
{{
status
.
account
.
acct
}}
</a>
</div>
<div
class=
"status-body"
>
<span
class=
"status-content"
>
{{
status
.
content
}}
</span
>
<span
class=
"status-content"
v-html=
"
status.content
"
/
>
<a
:href=
"status.url"
target=
"_blank"
class=
"account"
>
{{
parseTimestamp
(
status
.
created_at
)
}}
</a>
@@ -121,6 +125,7 @@ export default {
}
.status-account-name
{
margin
:
0
;
height
:
22px
;
}
.status-body
{
display
:
flex
;
@@ -135,6 +140,37 @@ export default {
.status-header
{
display
:
flex
;
justify-content
:
space-between
;
}
@media
only
screen
and
(
max-width
:
760px
)
,
(
min-device-width
:
768px
)
and
(
max-device-width
:
1024px
)
{
.el-message
{
min-width
:
80%
;
}
.el-message-box
{
width
:
80%
;
}
.status-card
{
.el-card__header
{
padding
:
10px
17px
}
.el-tag
{
margin
:
3px
4px
3px
0
;
}
.status-account-container
{
margin-bottom
:
5px
;
}
.status-actions-button
{
margin
:
3px
0
3px
;
}
.status-actions
{
display
:
flex
;
flex-wrap
:
wrap
;
}
.status-header
{
display
:
flex
;
flex-direction
:
column
;
}
}
}
</
style
>
Loading