From e87cf2fd11dcb27f701707a144b21408880b7f84 Mon Sep 17 00:00:00 2001 From: Kostiantyn Stoliarskyi Date: Wed, 7 Jun 2023 14:29:44 +0300 Subject: [PATCH 1/7] issue Add voting functionality to `mycontributions` page #128 --- app/templates/book/my_contributions.html | 28 ++++++++++-------------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/app/templates/book/my_contributions.html b/app/templates/book/my_contributions.html index b64ea22..ae57139 100644 --- a/app/templates/book/my_contributions.html +++ b/app/templates/book/my_contributions.html @@ -29,7 +29,6 @@
- {% if interpretation.user_id != current_user.id %}
- {% endif %} - - - {{ interpretation.vote_count }} - - - {% if interpretation.user_id != current_user.id %} + + {{ interpretation.vote_count }} +
- {% endif %}
From 78c018b3d3a7111eb43c27d386f598e0c9b0b3d2 Mon Sep 17 00:00:00 2001 From: Kostiantyn Stoliarskyi Date: Wed, 7 Jun 2023 15:01:41 +0300 Subject: [PATCH 2/7] issue Add ability to exit quicksearch by clicking ouside of the search/quicksearch fields #127 --- app/templates/search/quick_search_window.html | 2 +- src/quickSearch.ts | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/app/templates/search/quick_search_window.html b/app/templates/search/quick_search_window.html index de529d3..e65715b 100644 --- a/app/templates/search/quick_search_window.html +++ b/app/templates/search/quick_search_window.html @@ -4,7 +4,7 @@
- diff --git a/src/quickSearch.ts b/src/quickSearch.ts index 70a7746..4be11c8 100644 --- a/src/quickSearch.ts +++ b/src/quickSearch.ts @@ -7,10 +7,16 @@ const currentSearchInput: HTMLInputElement = const searchDiv: HTMLElement = document.querySelector('#quickSearchModal'); const modalOptions: ModalOptions = { + backdrop: 'dynamic', closable: true, - backdrop: 'static', onHide: () => {}, - onShow: () => {}, + onShow: () => { + const modalBack = document.querySelector('.bg-opacity-50'); + modalBack.addEventListener('click', () => { + currentSearchInput.value = ''; + quickSearchModal.hide(); + }); + }, onToggle: () => {}, }; From ebaf5250683926f1bbf7113c5eae2e1534943956 Mon Sep 17 00:00:00 2001 From: Kostiantyn Stoliarskyi Date: Wed, 7 Jun 2023 15:30:28 +0300 Subject: [PATCH 3/7] issue Remove lower bar since we have the color code for selected tab #124 --- app/templates/book/interpretation_view.html | 60 +++++++++++-------- app/templates/book/settings.html | 4 +- app/templates/book/stat.html | 6 +- app/templates/home/index.html | 4 +- .../search/search_results_books.html | 8 +-- .../search_results_interpretations.html | 8 +-- app/templates/search/search_results_tags.html | 8 +-- .../search/search_results_users.html | 8 +-- .../search/tag_search_results_books.html | 4 +- .../tag_search_results_interpretations.html | 4 +- app/templates/user/profile.html | 4 +- 11 files changed, 63 insertions(+), 55 deletions(-) diff --git a/app/templates/book/interpretation_view.html b/app/templates/book/interpretation_view.html index 67fa0f0..dd19267 100644 --- a/app/templates/book/interpretation_view.html +++ b/app/templates/book/interpretation_view.html @@ -24,7 +24,7 @@
diff --git a/app/templates/book/settings.html b/app/templates/book/settings.html index 71924eb..283dc2d 100644 --- a/app/templates/book/settings.html +++ b/app/templates/book/settings.html @@ -24,7 +24,7 @@