Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
socialbase-3282489
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
socialbase-3282489
Commits
53450d81
Commit
53450d81
authored
2 years ago
by
vnech
Committed by
Serhii Myronets
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3260424
by vnech: Display "Follow/Unfollow" button on user profile display modes
parent
4ca80c76
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/profile/profile--profile--teaser.html.twig
+17
-5
17 additions, 5 deletions
templates/profile/profile--profile--teaser.html.twig
with
17 additions
and
5 deletions
templates/profile/profile--profile--teaser.html.twig
+
17
−
5
View file @
53450d81
...
...
@@ -94,16 +94,28 @@
<div
class=
"card__actionbar"
>
{%
block
card_actionbar
%}
<a
href=
"
{{
profile_contact_url
}}
"
class=
"card__link"
>
{%
if
content.flag_follow_user
%}
{{
attach_library
(
'social_follow_user/button'
)
}}
{{
content.flag_follow_user
}}
{%
endif
%}
{%
set
follow_user_classes
=
[
content.flag_follow_user
?
'btn btn-default btn-sm'
:
'card__link'
]
%}
<a
href=
"
{{
profile_contact_url
}}
"
{{
attributes.addClass
(
follow_user_classes
)
}}
>
{%
if
profile_contact_label
==
'private_message'
%}
{%
trans
%}
Private message
{%
endtrans
%}
{%
if
content.flag_follow_user
%}
{%
trans
%}
Message
{%
endtrans
%}
{%
else
%}
{%
trans
%}
Private message
{%
endtrans
%}
{%
endif
%}
{%
else
%}
{%
trans
%}
View profile
{%
endtrans
%}
{%
endif
%}
</a>
<a
href=
"
{{
profile_stream_url
}}
"
class=
"card__link hidden-for-phone-only"
>
{%
trans
%}
View activities
{%
endtrans
%}
</a>
{%
if
not
content.flag_follow_user
%}
<a
href=
"
{{
profile_stream_url
}}
"
class=
"card__link hidden-for-phone-only"
>
{%
trans
%}
View activities
{%
endtrans
%}
</a>
{%
endif
%}
{%
endblock
%}
</div>
</div>
...
...
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