diff --git a/app/templates/auth/connect_wallet_alert_modal.html b/app/templates/auth/connect_wallet_alert_modal.html new file mode 100644 index 0000000..d2b961a --- /dev/null +++ b/app/templates/auth/connect_wallet_alert_modal.html @@ -0,0 +1,23 @@ + + diff --git a/app/templates/base.html b/app/templates/base.html index f42b5ab..cc3e330 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -86,6 +86,7 @@ {% if current_user.is_authenticated %} {% include 'book/modals/add_book_modal.html' %} {% endif %} + {% include 'auth/connect_wallet_alert_modal.html' %} diff --git a/app/templates/book/components/interpretation_list_item.html b/app/templates/book/components/interpretation_list_item.html index c219ebf..6901ea4 100644 --- a/app/templates/book/components/interpretation_list_item.html +++ b/app/templates/book/components/interpretation_list_item.html @@ -9,6 +9,10 @@ {% endif %} " xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" > + {% elif not current_user.is_authenticated %} + {% endif %} @@ -23,6 +27,10 @@ {% endif %} " xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"> + {% elif not current_user.is_authenticated %} + {% endif %} {% if show_control_btns %} diff --git a/app/templates/book/qa_view.html b/app/templates/book/qa_view.html index d083d37..08672dc 100644 --- a/app/templates/book/qa_view.html +++ b/app/templates/book/qa_view.html @@ -79,15 +79,31 @@
-
- -
+ {% if current_user.is_authenticated %} +
+ +
+ {% elif not current_user.is_authenticated %} + + {% endif %} + {{ comment.vote_count }} -
- -
+ + {% if not hide_vote_btns and current_user.is_authenticated %} +
+ +
+ {% elif not current_user.is_authenticated %} + + {% endif %} + + {% if access_to_approve_comment %}