-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hotfix-21 added functionality 'link/unlink' social networs in the use…
…r profile
- Loading branch information
Aleksandr Yurchenko
committed
Mar 29, 2022
1 parent
e33d6de
commit 703bed0
Showing
14 changed files
with
122 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 12 additions & 6 deletions
18
templates/front/_embed/_utils/_social_network_link_unlink_btn.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,21 @@ | ||
{% if socialName %} | ||
{% if socialNameId %} | ||
<span class="social-group social-group--unlink"> | ||
{{ 'personal_account.social_group.link'|trans }} | ||
</span> | ||
<a class="social-group social-group--link" href="#"> | ||
<a class="social-group social-group--link" href="{{ url('main_profile_unlink_social_network', {'socialName': socialName}) }}"> | ||
{{ 'personal_account.social_group.unlink'|trans }} | ||
</a> | ||
{% else %} | ||
<a class="social-group social-group--link" href="#"> | ||
{{ 'personal_account.social_group.link'|trans }} | ||
</a> | ||
{% if 'github' != socialName %} | ||
<a class="social-group social-group--link" href="{{ path('connect_'~ socialName ~'_start') }}"> | ||
{{ 'personal_account.social_group.link'|trans }} | ||
</a> | ||
{% else %} | ||
<a class="social-group social-group--link" href="{{ path('connect_'~ socialName ~ '_' ~ app.request.locale ~'_start') }}"> | ||
{{ 'personal_account.social_group.link'|trans }} | ||
</a> | ||
{% endif %} | ||
<span class="social-group social-group--unlink"> | ||
{{ 'personal_account.social_group.unlink'|trans }} | ||
</span> | ||
{% endif %} | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters