Skip to content

Commit

Permalink
Remplacement de Twitter par X (#6627)
Browse files Browse the repository at this point in the history
  • Loading branch information
leroivi authored Aug 13, 2024
1 parent d700a62 commit 23c78ec
Show file tree
Hide file tree
Showing 19 changed files with 18 additions and 15 deletions.
3 changes: 3 additions & 0 deletions assets/images/brands/X.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sprite/X-blue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sprite/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sprite/X-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sprite/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sprite/X.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/sprite/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/images/sprite/twitter-blue.png
Binary file not shown.
Binary file removed assets/images/sprite/[email protected]
Binary file not shown.
Binary file removed assets/images/sprite/twitter-light.png
Binary file not shown.
Binary file removed assets/images/sprite/[email protected]
Binary file not shown.
Binary file removed assets/images/sprite/twitter.png
Binary file not shown.
Binary file removed assets/images/sprite/[email protected]
Binary file not shown.
8 changes: 4 additions & 4 deletions assets/scss/base/_icons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -377,15 +377,15 @@
}
}

&.twitter {
&.X {
&:after {
@include sprite-position($twitter);
@include sprite-position($X);
}
&.blue:after {
@include sprite-position($twitter-blue);
@include sprite-position($X-blue);
}
&.light:after {
@include sprite-position($twitter-light);
@include sprite-position($X-light);
}
}

Expand Down
4 changes: 2 additions & 2 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
{% endblock %}


{# Twitter cards #}
{# X cards #}
<meta property="twitter:domain" content="{{app.site.url}}/">
{% if request.GET.twittercard == 'large' %}
<meta property="twitter:card" content="summary_large_image">
Expand All @@ -79,7 +79,7 @@
<meta property="twitter:title" content="{{ title|safe }}">
<meta property="twitter:description" content="{{ description|safe }}">
<meta property="twitter:site" content="@{{app.site.name}}">
<meta property="twitter:creator" content="@{% block twitter_creator %}{{app.site.name}}{% endblock %}">
<meta property="twitter:creator" content="@{{app.site.name}}">
<meta property="twitter:image" content="http://{{ meta_image }}">

{% block DCMI_cards %}{% endblock %}
Expand Down
8 changes: 4 additions & 4 deletions templates/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
</li>
{% endif %}

{% if app.site.social.twitter %}
{% if app.site.social.X %}
<li>
<a href="{{app.site.social.twitter}}"
title="Suivez-nous sur Twitter"
class="btn ico-after twitter light btn-twitter btn-holder"></a>
<a href="{{app.site.social.X}}"
title="Suivez-nous sur X"
class="btn ico-after X light btn-X btn-holder"></a>
</li>
{% endif %}

Expand Down
6 changes: 3 additions & 3 deletions templates/misc/social_buttons.part.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
<h3>{% trans "Partager" %}</h3>
<ul>
<li>
<a href="https://twitter.com/share?url={{ app.site.url }}{{ link }}&amp;text={{ text }}"
class="ico-after twitter blue"
<a href="https://x.com/share?url={{ app.site.url }}{{ link }}&amp;text={{ text }}"
class="ico-after X blue"
rel="nofollow"
>
Twitter
X
</a>
</li>
<li>
Expand Down
2 changes: 1 addition & 1 deletion zds/settings/abstract_base/zds.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
"social": {
"mastodon": "https://framapiaf.org/@ZesteDeSavoir",
"facebook": "https://www.facebook.com/ZesteDeSavoir",
"twitter": "https://twitter.com/ZesteDeSavoir",
"X": "https://x.com/ZesteDeSavoir",
"github": "https://github.com/zestedesavoir/zds-site",
"discord": "https://discord.com/invite/ue5MTKq",
},
Expand Down
2 changes: 1 addition & 1 deletion zds/tutorialv2/tests/tests_views/tests_published.py
Original file line number Diff line number Diff line change
Expand Up @@ -2005,7 +2005,7 @@ def check_images_socials(self, result, pattern_link_image, title, description):

def test_social_cards_without_image(self):
"""
Check that all cards are produce for social network twitter
Check that all cards are produce for social network X
"""
# test access for guest user (bot of social network for example)
self.client.logout()
Expand Down

0 comments on commit 23c78ec

Please sign in to comment.