Skip to content

Commit

Permalink
feat: update classes that no longer exist
Browse files Browse the repository at this point in the history
  • Loading branch information
hellodeloo committed Sep 12, 2023
1 parent a8410d6 commit cee7473
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 38 deletions.
1 change: 1 addition & 0 deletions lacommunaute/static/stylesheets/itou_communaute.scss
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ span.highlighted {
border-bottom-left-radius: 50rem !important;
}

.input-group-text,
button {
border-top-right-radius: 50rem !important;
border-bottom-right-radius: 50rem !important;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
{% endif %}

{% if user_can_lock_topics and not topic.is_locked or user_can_move_topics or user_can_delete_topics %}
<button id="id_dropdown_moderation_menu_button" class="btn btn-outline-primary btn-ico-only btn-sm mb-2 mb-sm-0" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" aria-label="Plus d'actions">
<button id="id_dropdown_moderation_menu_button" class="btn btn-outline-primary btn-ico-only btn-sm mb-2 mb-sm-0" type="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" aria-label="Plus d'actions">
<i class="ri-more-line" aria-hidden="true"></i>
</button>
<div class="dropdown-menu" aria-labelledby="id_dropdown_moderation_menu_button">
Expand Down
34 changes: 19 additions & 15 deletions lacommunaute/templates/forum_member/moderator_profiles.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,27 @@ <h2 class="h2">{{paginator.count}} membre{{ paginator.count|pluralizefr }}</h2>
<div class="s-section__container container">
<div class="s-section__row row">
<div class="s-section__col col-12">
<div class="card-columns">
<div class="row row-cols-1 row-cols-md-2 g-4">
{% for forum_profile in forum_profiles %}
<div class="card">
<div class="card-body">
<h3 class="h5 card-title">
<a href="{%url 'members:profile' username=forum_profile.user.username%}"
class="matomo-event"
data-matomo-category="engagement"
data-matomo-action="view"
data-matomo-option="member">
{{ forum_profile.user.get_full_name }}
</a>
</h3>
<div class="col">
<div class="card">
<div class="card-body">
<h3 class="h5 card-title">
<a href="{%url 'members:profile' username=forum_profile.user.username%}"
class="matomo-event"
data-matomo-category="engagement"
data-matomo-action="view"
data-matomo-option="member">
{{ forum_profile.user.get_full_name }}
</a>
</h3>
</div>
</div>
</div>
{% empty %}
<p>No body yet…</p>
<div class="col">
<p>No body yet…</p>
</div>
{% endfor %}
</div>
<div class="row mt-5 mb-5">
Expand All @@ -52,9 +56,9 @@ <h3 class="h5 card-title">
<label for="validationLink01">Lier pour inviter de nouveaux membres</label>
<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">
<div class="input-group-text p-0">
<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>
<i class="ri-file-copy-line ri-lg" aria-hidden="true"></i>
<span>Copier</span>
</button>
</div>
Expand Down
40 changes: 22 additions & 18 deletions lacommunaute/templates/forum_member/profiles.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,29 +18,33 @@ <h2 class="h2">Liste des membres de la communauté.</h2>
<div class="s-section__container container">
<div class="s-section__row row">
<div class="s-section__col col-12">
<div class="card-columns">
<div class="row row-cols-1 row-cols-md-2 g-4">
{% for forum_profile in forum_profiles %}
<div class="card">
{% if forum_profile.avatar %}
<img class="avatar" src="{{ forum_profile.avatar }}" class="card-img-top" alt="{{ forum_profile.user.get_full_name }}">
{% endif %}
<div class="card-body">
<h3 class="h5 card-title">
<a href="{%url 'members:profile' username=forum_profile.user.username%}"
class="matomo-event"
data-matomo-category="engagement"
data-matomo-action="view"
data-matomo-option="member">
{{ forum_profile.user.get_full_name }}
</a>
</h3>
{% if forum_profile.signature %}
<p class="card-text">{{ forum_profile.signature }}</p>
<div class="col">
<div class="card">
{% if forum_profile.avatar %}
<img class="avatar" src="{{ forum_profile.avatar }}" class="card-img-top" alt="{{ forum_profile.user.get_full_name }}">
{% endif %}
<div class="card-body">
<h3 class="h5 card-title">
<a href="{%url 'members:profile' username=forum_profile.user.username%}"
class="matomo-event"
data-matomo-category="engagement"
data-matomo-action="view"
data-matomo-option="member">
{{ forum_profile.user.get_full_name }}
</a>
</h3>
{% if forum_profile.signature %}
<p class="card-text">{{ forum_profile.signature }}</p>
{% endif %}
</div>
</div>
</div>
{% empty %}
<p>No body yet…</p>
<div class="col">
<p>No body yet…</p>
</div>
{% endfor %}
</div>
</div>
Expand Down
8 changes: 4 additions & 4 deletions lacommunaute/templates/partials/header_nav_primary_items.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<form class="mb-3 mb-xl-0 me-xl-2" action="{% url 'forum_search_extension:search' %}">
<div class="input-group input-group-rounded-pill">
<input class="form-control" type="search" placeholder="{% trans "Search" %}" aria-label="{% trans "Search" %}" name="q">
<div class="input-group-append">
<div class="input-group-text p-0">
<button type="submit"
class="btn btn-link btn-ico matomo-event"
data-matomo-category="engagement"
Expand All @@ -28,9 +28,9 @@
<ul class="list-unstyled">
<li>
<div class="dropdown-item">
<div class="media align-items-center">
<span class="me-2"><i class="ri-user-line ri-2x"></i></span>
<div class="media-body">
<div class="d-flex align-items-center">
<span class="flex-shrink-0"><i class="ri-user-line ri-2x"></i></span>
<div class="flex-grow-1 ms-2">
{% if user.get_username %}
<span>{{ user|forum_member_display_name }}</span>
<br>
Expand Down

0 comments on commit cee7473

Please sign in to comment.