Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SEO] ajout de balises nofollow #387

Merged
merged 3 commits into from
Sep 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lacommunaute/forum/tests/tests_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ def test_upvote_actions(self):
anonymous_html = (
'<a href="/inclusion_connect/authorize?next_url=%2Fforum%2F'
f'{child_forum.slug}-{child_forum.pk}%2F%23{child_forum.pk}"'
' rel="nofollow"'
' class="btn btn-sm btn-ico-only btn-link btn-secondary" data-toggle="tooltip" data-placement="top"'
' title="Connectez-vous pour sauvegarder">'
'\n <i class="ri-bookmark-line" aria-hidden="true"></i><span class="ml-1">0</span>'
Expand Down
2 changes: 1 addition & 1 deletion lacommunaute/templates/event/event_calendar.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ <h1 class="s-title-01__title h1"><strong>Les évènements à venir</strong></h1>
{% trans "Post a new Public Event" %}
</a>
{% else %}
<a href="{% inclusion_connect_url next_url %}" class="btn btn-primary" data-toggle="tooltip" data-placement="top" title="Connectez-vous pour contribuer">
<a href="{% inclusion_connect_url next_url %}" rel="nofollow" class="btn btn-primary" data-toggle="tooltip" data-placement="top" title="Connectez-vous pour contribuer">
{% trans "Post a new Public Event" %}
</a>
{% endif %}
Expand Down
1 change: 1 addition & 0 deletions lacommunaute/templates/forum/forum_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ <h2 class="mt-3">
<div class="col-12 col-sm-auto forum-actions-block">
{% if user_can_add_topic %}
<a href="{% url 'forum_conversation:topic_create' forum.slug forum.pk %}"
rel="nofollow"
class="btn btn-primary btn-ico matomo-event"
data-matomo-category="engagement"
data-matomo-action="contribute"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

</button>
{% else %}
<a href="{% inclusion_connect_url next_url topic.pk %}" class="btn btn-ico btn-link btn-like pr-0 text-nowrap" data-toggle="tooltip" data-placement="top" title="Connectez-vous pour contribuer">
<a href="{% inclusion_connect_url next_url topic.pk %}" rel="nofollow" class="btn btn-ico btn-link btn-like pr-0 text-nowrap" data-toggle="tooltip" data-placement="top" title="Connectez-vous pour contribuer">

<i class="ri-heart-3-line" aria-hidden="true"></i><span class="ml-1">{{counter}}</span>
</a>
Expand Down
4 changes: 2 additions & 2 deletions lacommunaute/templates/forum_member/join_forum_landing.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ <h3 class="h3 mb-0">J'ai un compte Inclusion Connect</h3>
<p>Si vous avez déjà utilisé un service à destination des professionnels de l'inclusion, vous avez probablement déjà un compte Inclusion Connect.</p>
</div>
<div class="card-footer text-right">
<a href="{{ inclusion_connect_url }}" class="btn btn-ico btn-outline-primary stretched-link">
<a href="{{ inclusion_connect_url }}" rel="nofollow" class="btn btn-ico btn-outline-primary stretched-link">
<i class="ri-login-box-line ri-lg"></i>
<span>{% trans "Login" %}</span>
</a>
Expand All @@ -45,7 +45,7 @@ <h3 class="h3 mb-0">Je n'ai pas de compte Inclusion Connect</h3>
<p>Si vous n'avez pas encore de compte, vous pouvez le créer maintenant et l'utiliser sur tous les services proposant Inclusion Connect.</p>
</div>
<div class="card-footer text-right">
<a href="{{ inclusion_connect_url }}&sign_in=1" class="btn btn-ico btn-outline-primary stretched-link">
<a href="{{ inclusion_connect_url }}&sign_in=1" rel="nofollow" class="btn btn-ico btn-outline-primary stretched-link">
<i class="ri-login-box-line ri-lg"></i>
<span>{% trans "Sign in" %}</span>
</a>
Expand Down
1 change: 1 addition & 0 deletions lacommunaute/templates/partials/ask_a_question.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<div class="row align-items-center">
<div class="col-12 col-md-auto">
<a href="{% url 'forum_conversation:topic_create' forum.slug forum.pk %}"
rel="nofollow"
class="btn btn-primary btn-ico btn-block matomo-event"
data-matomo-category="engagement"
data-matomo-action="contribute"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
</li>
{% else %}
<li>
<a href="{% url 'inclusion_connect:authorize' %}" class="btn btn-inclusion-connect">
<a href="{% url 'inclusion_connect:authorize' %}" rel="nofollow" class="btn btn-inclusion-connect">
<img src="{% static_theme_images 'logo-inclusion-connect-two-lines.svg' %}" alt="Se connecter | S'inscrire" height="37">
</a>
</li>
Expand Down
2 changes: 1 addition & 1 deletion lacommunaute/templates/partials/upvotes.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</button>
</form>
{% else %}
<a href="{% inclusion_connect_url next_url obj.id %}" class="btn btn-sm btn-ico-only btn-link btn-secondary" data-toggle="tooltip" data-placement="top" title="Connectez-vous pour sauvegarder">
<a href="{% inclusion_connect_url next_url obj.id %}" rel="nofollow" class="btn btn-sm btn-ico-only btn-link btn-secondary" data-toggle="tooltip" data-placement="top" title="Connectez-vous pour sauvegarder">
<i class="{% if obj.has_upvoted %}ri-bookmark-fill{% else %}ri-bookmark-line{% endif %}" aria-hidden="true"></i><span class="ml-1">{{counter}}</span>
</a>
{% endif %}
Expand Down