Skip to content

Commit

Permalink
feat: update data attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
hellodeloo committed Sep 12, 2023
1 parent 1081dd6 commit 9a165fb
Show file tree
Hide file tree
Showing 15 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion lacommunaute/forum/tests/tests_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ def test_upvote_actions(self):
'<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"'
' class="btn btn-sm btn-ico-only btn-link btn-secondary" data-bs-toggle="tooltip" data-bs-placement="top"'
' title="Connectez-vous pour sauvegarder">'
'\n <i class="ri-bookmark-line me-1" aria-hidden="true"></i><span>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 %}" rel="nofollow" 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-bs-toggle="tooltip" data--bs-placement="top" title="Connectez-vous pour contribuer">
{% trans "Post a new Public Event" %}
</a>
{% endif %}
Expand Down
8 changes: 4 additions & 4 deletions lacommunaute/templates/forum/forum_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ <h2 class="mt-3">
</a>
{% endif %}
{% if user_can_access_stats and forum.members_group%}
<button id="id_dropdown_moderators_stats_button" class="btn btn-ico-only btn-outline-primary" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<button id="id_dropdown_moderators_stats_button" class="btn btn-ico-only btn-outline-primary" type="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="ri-bar-chart-line ri-lg" aria-label="Statistiques animateurs"></i>
</button>
<div class="dropdown-menu" aria-labelledby="id_dropdown_moderators_stats_button">
Expand Down Expand Up @@ -135,7 +135,7 @@ <h2 class="mt-3">
<ul class="s-tabs-01__nav nav nav-tabs" role="tablist">
<li class="nav-item" role="presentation">
<a class="nav-link active" id="topics-tab"
data-toggle="tab"
data-bs-toggle="tab"
href="#topics"
role="tab"
aria-controls="topics"
Expand All @@ -146,7 +146,7 @@ <h2 class="mt-3">
{% if announces %}
<li class="nav-item" role="presentation">
<a class="nav-link" id="announces-tab"
data-toggle="tab"
data-bs-toggle="tab"
href="#announces"
role="tab"
aria-controls="announces"
Expand All @@ -157,7 +157,7 @@ <h2 class="mt-3">
{% endif %}
<li class="nav-item-dropdown dropdown">
<!-- for responsive needs -->
<a class="nav-link dropdown-toggle" href="#" role="button" id="sTabs01DropdownMoreLink" data-toggle="dropdown" aria-expanded="false"><i class="ri-more-line" aria-hidden="true"></i></a>
<a class="nav-link dropdown-toggle" href="#" role="button" id="sTabs01DropdownMoreLink" data-bs-toggle="dropdown" aria-expanded="false"><i class="ri-more-line" aria-hidden="true"></i></a>
<div class="dropdown-menu dropdown-menu-end" aria-labelledby="sTabs01DropdownMoreLink"></div>
</li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion lacommunaute/templates/forum/forum_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ <h3 class="h3 mb-0">
{{ node.obj.description.rendered|urlizetrunc_target_blank:30 }}
{% endif %}
{% if node.children %}
<a data-toggle="collapse" href="#collapse{{node.obj.id}}" role="button" aria-expanded="false" aria-controls="collapse{{node.obj.id}}" class="btn btn-link pt-0 ps-0">
<a data-bs-toggle="collapse" href="#collapse{{node.obj.id}}" role="button" aria-expanded="false" aria-controls="collapse{{node.obj.id}}" class="btn btn-link pt-0 ps-0">
{% if node.obj.is_forum %}
Voir les sous-communautés
{% else %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<!-- Sub "forms" tabs -->
{% if attachment_formset %}
<ul class="nav nav-tabs nav-tabs--communaute">
<li class="nav-item"><a href="#attachments" class="nav-link" data-toggle="tab">{% trans "Attachments" %}</a></li>
<li class="nav-item"><a href="#attachments" class="nav-link" data-bs-toggle="tab">{% trans "Attachments" %}</a></li>
</ul>
{% endif %}
<!-- Sub "forms" panes -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


{% if user_can_add_post %}
<a data-toggle="collapse" href="#collapsePost{{topic.pk}}" role="button" aria-expanded="false" aria-controls="collapsePost{{topic.pk}}" id="collapseButtonPost{{topic.pk}}" class="btn btn-primary btn-ico btn-sm btn-post-reply justify-content-center w-100 w-sm-auto me-sm-1 mb-2 mb-sm-0">
<a data-bs-toggle="collapse" href="#collapsePost{{topic.pk}}" role="button" aria-expanded="false" aria-controls="collapsePost{{topic.pk}}" id="collapseButtonPost{{topic.pk}}" class="btn btn-primary btn-ico btn-sm btn-post-reply justify-content-center w-100 w-sm-auto me-sm-1 mb-2 mb-sm-0">
<i class="ri-question-answer-line" aria-hidden="true"></i>
<span>{% trans "Post reply" %}</span>
</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</div>
<div>
<span class="btn-link fs-sm">Filter par :</span>
<button type="button" class="btn btn-sm btn-link dropdown-toggle p-0" data-toggle="dropdown" aria-haspopup="true" aria-controls="filterTopicsDropdown" aria-expanded="false">
<button type="button" class="btn btn-sm btn-link dropdown-toggle p-0" data-bs-toggle="dropdown" aria-haspopup="true" aria-controls="filterTopicsDropdown" aria-expanded="false">
{{ active_filter_name }}
</button>
<div class="dropdown-menu dropdown-menu-end" id="filterTopicsDropdown">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
<!-- Sub "forms" tabs -->
{% if poll_option_formset or attachment_formset %}
<ul class="nav nav-tabs nav-tabs--communaute border-bottom-0">
<li class="nav-item"><a href="#tags" class="nav-link" data-toggle="tab">{% trans "Tags" %}</a></li>
{% if attachment_formset %}<li class="nav-item"><a href="#attachments" class="nav-link" data-toggle="tab">{% trans "Attachments" %}</a></li>{% endif %}
{% if poll_option_formset %}<li class="nav-item"><a href="#poll" class="nav-link" data-toggle="tab">{% trans "Poll" %}</a></li>{% endif %}
<li class="nav-item"><a href="#tags" class="nav-link" data-bs-toggle="tab">{% trans "Tags" %}</a></li>
{% if attachment_formset %}<li class="nav-item"><a href="#attachments" class="nav-link" data-bs-toggle="tab">{% trans "Attachments" %}</a></li>{% endif %}
{% if poll_option_formset %}<li class="nav-item"><a href="#poll" class="nav-link" data-bs-toggle="tab">{% trans "Poll" %}</a></li>{% endif %}
</ul>
{% endif %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<i class="{% if topic.has_liked %}ri-heart-3-fill{% else %}ri-heart-3-line{% endif %} me-1" aria-hidden="true"></i><span>{{counter}}</span>
</button>
{% else %}
<a href="{% inclusion_connect_url next_url topic.pk %}" rel="nofollow" class="btn btn-ico btn-link btn-like pe-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 pe-0 text-nowrap" data-bs-toggle="tooltip" data-bs-placement="top" title="Connectez-vous pour contribuer">
<i class="ri-heart-3-line me-1" aria-hidden="true"></i><span>{{counter}}</span>
</a>
{% endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ <h3 class="h5 card-title">
<div class="input-group">
<input type="text" class="form-control" name="validationLink01" value="{{ request.scheme }}://{{ request.META.HTTP_HOST }}{% url 'members:join_forum_form' forum.invitation_token %}" aria-describedby="basic-addon">
<div class="input-group-append">
<button class="btn btn-link btn-ico" type="button" id="basic-addon" data-clipboard="copy" data-toggle="tooltip" data-placement="top" data-trigger="manual" title="" data-original-title="Lien copié!">
<button class="btn btn-link btn-ico" type="button" id="basic-addon" data-bs-clipboard="copy" data-bs-toggle="tooltip" data-bs-placement="top" data-bs-trigger="manual" title="" data-bs-original-title="Lien copié!">
<i class="ri-file-copy-line ri-lg"></i>
<span>Copier</span>
</button>
Expand Down
2 changes: 1 addition & 1 deletion lacommunaute/templates/partials/form_field_mentions.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<small class="form-text text-muted">
<a data-toggle="collapse"
<a data-bs-toggle="collapse"
href="#collapseMentionsHelp"
role="button"
aria-expanded="false"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</li>
{% if user.is_authenticated %}
<li class="dropdown">
<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-controls="dashboardUserDropdown" aria-expanded="false">
<button type="button" class="btn btn-primary dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-controls="dashboardUserDropdown" aria-expanded="false">
Mon espace
</button>
<div class="dropdown-menu" id="dashboardUserDropdown">
Expand Down
2 changes: 1 addition & 1 deletion lacommunaute/templates/partials/messages.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{% if messages %}
{% for message in messages %}
<div class="alert alert-{{ message.tags }} {% if 'error' in message.tags %}alert-danger{% endif %} alert-dismissible fade show mt-3" role="status">
<button type="button" class="btn-close" data-dismiss="alert" aria-label="Fermer"></button>
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Fermer"></button>
{{ message | safe }}
</div>
{% endfor %}
Expand Down
2 changes: 1 addition & 1 deletion lacommunaute/templates/partials/social_share_buttons.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% load i18n %}
{% load social_share %}

<button class="btn btn-sm btn-ico-only btn-secondary" type="button" id="dropdownMenuSocialShare" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<button class="btn btn-sm btn-ico-only btn-secondary" type="button" id="dropdownMenuSocialShare" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="ri-share-fill ri-lg" aria-label="{% trans "Share this topics on " %}"></i>
</button>
<div class="dropdown-menu dropdown-menu-end" aria-labelledby="dropdownMenuSocialShare">
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 @@ -20,7 +20,7 @@
</button>
</form>
{% else %}
<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">
<a href="{% inclusion_connect_url next_url obj.id %}" rel="nofollow" class="btn btn-sm btn-ico-only btn-link btn-secondary" data-bs-toggle="tooltip" data-bs-placement="top" title="Connectez-vous pour sauvegarder">
<i class="{% if obj.has_upvoted %}ri-bookmark-fill{% else %}ri-bookmark-line{% endif %} me-1" aria-hidden="true"></i><span>{{counter}}</span>
</a>
{% endif %}
Expand Down

0 comments on commit 9a165fb

Please sign in to comment.