|
@@ -44,9 +44,9 @@
|
|
|
|
|
|
<!-- check whether user is online or not -->
|
|
|
{% if user|is_online %}
|
|
|
- <div class="author-online" data-toggle="tooltip" data-placement="top" title="{% trans %}online{% endtrans %}"></div>
|
|
|
+ <div class="author-online" data-bs-toggle="tooltip" data-placement="top" title="{% trans %}online{% endtrans %}"></div>
|
|
|
{% else %}
|
|
|
- <div class="author-offline" data-toggle="tooltip" data-placement="top" title="{% trans %}offline{% endtrans %}"></div>
|
|
|
+ <div class="author-offline" data-bs-toggle="tooltip" data-placement="top" title="{% trans %}offline{% endtrans %}"></div>
|
|
|
{% endif %}
|
|
|
<div class="author-title"><h5>{{ user.primary_group.name }}</h5></div>
|
|
|
{{ run_hook("flaskbb_tpl_before_post_author_info", user=user, post=post) }}
|
|
@@ -104,28 +104,28 @@
|
|
|
|
|
|
{% if current_user|post_reply(topic) %}
|
|
|
<!-- Quick quote -->
|
|
|
- <a href="#" class="btn btn-icon icon-reply quote-btn" data-post-id="{{ post.id }}" data-toggle="tooltip" data-placement="top" title="{% trans %}Quote this post{% endtrans %}"></a>
|
|
|
+ <a href="#" class="btn btn-icon icon-reply quote-btn" data-post-id="{{ post.id }}" data-bs-toggle="tooltip" data-placement="top" title="{% trans %}Quote this post{% endtrans %}"></a>
|
|
|
<!-- Full quote/reply -->
|
|
|
- <a href="{{ url_for('forum.reply_post', topic_id=topic.id, post_id=post.id) }}" class="btn btn-icon icon-replyall" data-toggle="tooltip" data-placement="top" title="{% trans %}Full Reply{% endtrans %}"></a>
|
|
|
+ <a href="{{ url_for('forum.reply_post', topic_id=topic.id, post_id=post.id) }}" class="btn btn-icon icon-replyall" data-bs-toggle="tooltip" data-placement="top" title="{% trans %}Full Reply{% endtrans %}"></a>
|
|
|
{% endif %}
|
|
|
|
|
|
{% if current_user|edit_post(post) %}
|
|
|
<!-- Edit Post -->
|
|
|
- <a href="{{ url_for('forum.edit_post', post_id=post.id) }}" class="btn btn-icon icon-edit" data-toggle="tooltip" data-placement="top" title="{% trans %}Edit this post{% endtrans %}"></a>
|
|
|
+ <a href="{{ url_for('forum.edit_post', post_id=post.id) }}" class="btn btn-icon icon-edit" data-bs-toggle="tooltip" data-placement="top" title="{% trans %}Edit this post{% endtrans %}"></a>
|
|
|
{% endif %}
|
|
|
{% if topic.first_post == post %}
|
|
|
{% if current_user|delete_topic(topic) %}
|
|
|
- <form class="inline-form" method="post" action="{{ url_for('forum.delete_topic', topic_id=topic.id, slug=topic.slug) }}">
|
|
|
+ <form class="d-inline" method="post" action="{{ url_for('forum.delete_topic', topic_id=topic.id, slug=topic.slug) }}">
|
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|
|
|
- <button class="btn btn-icon icon-delete" data-toggle="tooltip" data-placement="top" title="{% trans %}Delete this topic{% endtrans %}"></button>
|
|
|
+ <button class="btn btn-icon icon-delete" data-bs-toggle="tooltip" data-placement="top" title="{% trans %}Delete this topic{% endtrans %}"></button>
|
|
|
</form>
|
|
|
{% endif %}
|
|
|
{% else %}
|
|
|
{% if current_user|delete_post(post) %}
|
|
|
<!-- Delete Post -->
|
|
|
- <form class="inline-form" method="post" action="{{ url_for('forum.delete_post', post_id=post.id) }}">
|
|
|
+ <form class="d-inline" method="post" action="{{ url_for('forum.delete_post', post_id=post.id) }}">
|
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|
|
|
- <button class="btn btn-icon icon-delete" data-toggle="tooltip" data-placement="top" title="{% trans %}Delete this post{% endtrans %}"></button>
|
|
|
+ <button class="btn btn-icon icon-delete" data-bs-toggle="tooltip" data-placement="top" title="{% trans %}Delete this post{% endtrans %}"></button>
|
|
|
</form>
|
|
|
{% endif %}
|
|
|
|
|
@@ -133,32 +133,32 @@
|
|
|
|
|
|
{% if current_user.is_authenticated %}
|
|
|
<!-- Report post -->
|
|
|
- <a href="{{ url_for('forum.report_post', post_id=post.id) }}" onclick="window.open(this.href, 'wio_window','width=500,height=500'); return false;" class="btn btn-icon icon-report" data-toggle="tooltip" data-placement="top" title="{% trans %}Report this post{% endtrans %}"></a>
|
|
|
+ <a href="{{ url_for('forum.report_post', post_id=post.id) }}" onclick="window.open(this.href, 'wio_window','width=500,height=500'); return false;" class="btn btn-icon icon-report" data-bs-toggle="tooltip" data-placement="top" title="{% trans %}Report this post{% endtrans %}"></a>
|
|
|
{% endif %}
|
|
|
|
|
|
{% if current_user.permissions.get('makehidden') %}
|
|
|
{% if topic.first_post_id == post.id %}
|
|
|
{% if topic.hidden %}
|
|
|
- <form class="inline-form" method="post" action="{{ url_for('forum.unhide_topic', topic_id=topic.id) }}">
|
|
|
+ <form class="d-inline" method="post" action="{{ url_for('forum.unhide_topic', topic_id=topic.id) }}">
|
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|
|
|
- <button class="btn btn-icon fa fa-user" name="unhide" data-toggle="tooltip" data-placement="top" title="{% trans %}Unhide this topic{% endtrans %}"></button>
|
|
|
+ <button class="btn btn-icon fa fa-user" name="unhide" data-bs-toggle="tooltip" data-placement="top" title="{% trans %}Unhide this topic{% endtrans %}"></button>
|
|
|
</form>
|
|
|
{% else %}
|
|
|
- <form class="inline-form" method="post" action="{{ url_for('forum.hide_topic', topic_id=topic.id) }}">
|
|
|
+ <form class="d-inline" method="post" action="{{ url_for('forum.hide_topic', topic_id=topic.id) }}">
|
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|
|
|
- <button class="btn btn-icon fa fa-user-secret" name="hide" data-toggle="tooltip" data-placement="top" title="{% trans %}Hide this topic{% endtrans %}"></button>
|
|
|
+ <button class="btn btn-icon fa fa-user-secret" name="hide" data-bs-toggle="tooltip" data-placement="top" title="{% trans %}Hide this topic{% endtrans %}"></button>
|
|
|
</form>
|
|
|
{% endif %}
|
|
|
{% else %}
|
|
|
{% if post.hidden %}
|
|
|
- <form class="inline-form" method="post" action="{{ url_for('forum.unhide_post', post_id=post.id) }}">
|
|
|
+ <form class="d-inline" method="post" action="{{ url_for('forum.unhide_post', post_id=post.id) }}">
|
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|
|
|
- <button class="btn btn-icon fa fa-user" name="unhide" data-toggle="tooltip" data-placement="top" title="{% trans %}Unhide this post{% endtrans %}"></button>
|
|
|
+ <button class="btn btn-icon fa fa-user" name="unhide" data-bs-toggle="tooltip" data-placement="top" title="{% trans %}Unhide this post{% endtrans %}"></button>
|
|
|
</form>
|
|
|
{% else %}
|
|
|
- <form class="inline-form" method="post" action="{{ url_for('forum.hide_post', post_id=post.id) }}">
|
|
|
+ <form class="d-inline" method="post" action="{{ url_for('forum.hide_post', post_id=post.id) }}">
|
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|
|
|
- <button class="btn btn-icon fa fa-user-secret" name="hide" data-toggle="tooltip" data-placement="top" title="{% trans %}Hide this post{% endtrans %}"></button>
|
|
|
+ <button class="btn btn-icon fa fa-user-secret" name="hide" data-bs-toggle="tooltip" data-placement="top" title="{% trans %}Hide this post{% endtrans %}"></button>
|
|
|
</form>
|
|
|
{% endif %}
|
|
|
{% endif %}
|