Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
807
Issues
807
List
Boards
Labels
Service Desk
Milestones
Merge Requests
47
Merge Requests
47
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Commits
d50bb5f4
Commit
d50bb5f4
authored
20 minutes ago
by
Mark Harding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(feat): support boosted onchain label on frontend
parent
5fff56d2
master
No related merge requests found
Pipeline
#63702660
running with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
4 deletions
+28
-4
activity.html
...pp/modules/legacy/components/cards/activity/activity.html
+7
-2
cards.scss
src/app/modules/legacy/components/cards/cards.scss
+21
-2
No files found.
src/app/modules/legacy/components/cards/activity/activity.html
View file @
d50bb5f4
...
...
@@ -22,9 +22,14 @@
<a
[
routerLink
]="['/
newsfeed
',
activity
.
guid
]"
class=
"permalink"
*
ngIf=
"activity.guid && !activity.remind_object"
>
<span>
{{activity.time_created * 1000 | date:'medium'}}
</span>
<span
*
ngIf=
"activity.edited"
class=
"m-edited-text"
i18n=
"@@M__COMMON__EDITED"
>
edited
</span>
<div
class=
"mdl-card__supporting-text is-boosted"
*
ngIf=
"boosted"
>
<div
class=
"mdl-card__supporting-text is-boosted"
*
ngIf=
"boosted"
[
class
.
is-onchain
]="
activity
.
boosted_onchain
"
>
<i
class=
"material-icons"
>
trending_up
</i>
<a
i18n=
"@@MINDS__CARDS__ACTIVITY__BOOSTED_LABEL"
>
Boosted
</a>
<a
i18n=
"@@MINDS__CARDS__ACTIVITY__BOOSTED_LABEL"
[
hidden
]="
activity
.
boosted_onchain
"
>
Boosted
</a>
<a
i18n=
"@@MINDS__CARDS__ACTIVITY__BOOSTED_LABEL_ONCHAIN"
[
hidden
]="!
activity
.
boosted_onchain
"
>
Boosted Onchain
</a>
</div>
<div
class=
"mdl-card__supporting-text is-boosted"
*
ngIf=
"isUnlisted()"
>
<i
class=
"material-icons unlisted"
>
visibility_off
</i>
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/legacy/components/cards/cards.scss
View file @
d50bb5f4
...
...
@@ -203,6 +203,12 @@ minds-card-image, minds-card-video {
letter-spacing
:
0
.75px
;
text-rendering
:
optimizeLegibility
;
text-overflow
:
unset
;
white-space
:
pre-wrap
;
>
*
{
padding-right
:
8px
;
}
@include
m-theme
(){
color
:
themed
(
$m-grey-400
);
}
...
...
@@ -325,7 +331,7 @@ minds-activity.mdl-card, minds-activity, minds-activity-preview{
.m-edited-text
{
text-transform
:
uppercase
;
padding-
lef
t
:
8px
;
padding-
righ
t
:
8px
;
font-weight
:
bold
;
letter-spacing
:
0
.5px
;
}
...
...
@@ -448,9 +454,10 @@ minds-activity.mdl-card, minds-activity, minds-activity-preview{
.is-boosted
{
display
:
inline-block
;
width
:
auto
;
font-size
:
11px
;
padding
:
0
;
padding-
lef
t
:
8px
;
padding-
righ
t
:
8px
;
line-height
:
1
;
vertical-align
:
middle
;
@include
m-theme
(){
...
...
@@ -476,6 +483,18 @@ minds-activity.mdl-card, minds-activity, minds-activity-preview{
}
}
.is-boosted.is-onchain
{
@include
m-theme
(){
color
:themed
(
$
m-blue
)
;
}
a
{
@include
m-theme
(){
color
:themed
(
$
m-blue
)
;
}
}
}
/**
* Remind
*/
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment