From 87d9eb7f48ab0b61c8bb006fcbac3b703f7e19f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felipe=20Ba=C3=B1ados=20Schwerter?= Date: Fri, 22 Nov 2024 20:03:22 +0000 Subject: [PATCH] cree-dictionary -> dictionary --- frontend/index.js | 8 +++---- .../API/click-in-text-embedded-test.html | 2 +- src/morphodict/api/templates/admin/base.html | 4 ++-- src/morphodict/api/urls.py | 4 ++-- .../morphodict/components/header.html | 4 ++-- .../morphodict/components/search.html | 2 +- .../templates/morphodict/fst-tool.html | 2 +- .../templatetags/morphodict_extras.py | 2 +- src/morphodict/lexicon/models.py | 2 +- .../lexicon/templates/morphodict/base.html | 8 +++---- .../templates/search_quality/base.html | 2 +- src/morphodict/tests/API_tests/test_views.py | 8 +++---- src/morphodict/tests/test_orth_cookie.py | 2 +- src/morphodict/tests/test_views.py | 16 +++++++------- src/morphodict/urls.py | 22 +++++++++---------- src/morphodict/utils/views.py | 2 +- 16 files changed, 45 insertions(+), 45 deletions(-) diff --git a/frontend/index.js b/frontend/index.js index 357c171c7..2cb113fc1 100644 --- a/frontend/index.js +++ b/frontend/index.js @@ -182,7 +182,7 @@ function loadSearchResults(searchInput) { } function issueSearch() { - let searchURL = Urls["cree-dictionary-search-results"](userQuery); + let searchURL = Urls["dictionary-search-results"](userQuery); window.history.replaceState(null, "", urlForQuery(userQuery)); hideProse(); @@ -216,7 +216,7 @@ function loadSearchResults(searchInput) { } function goToHomePage() { - window.history.replaceState(null, "", Urls["cree-dictionary-index"]()); + window.history.replaceState(null, "", Urls["dictionary-index"]()); showProse(); @@ -282,10 +282,10 @@ function setupAudioOnPageLoad() { /** * Makes all URL paths relative to '/'. * In development, the root path is '/', so nothing changes. - * On Sapir (as of 2020-03-09), the root path is '/cree-dictionary/'. + * On Sapir (as of 2020-03-09), the root path is '/dictionary/'. */ function makeRouteRelativeToSlash(route) { - let baseURL = Urls["cree-dictionary-index"](); + let baseURL = Urls["dictionary-index"](); return route.replace(baseURL, "/"); } diff --git a/src/morphodict/api/templates/API/click-in-text-embedded-test.html b/src/morphodict/api/templates/API/click-in-text-embedded-test.html index cbbe74ded..29867769f 100644 --- a/src/morphodict/api/templates/API/click-in-text-embedded-test.html +++ b/src/morphodict/api/templates/API/click-in-text-embedded-test.html @@ -8,7 +8,7 @@ Click in text embedded test page diff --git a/src/morphodict/api/templates/admin/base.html b/src/morphodict/api/templates/admin/base.html index c0b2870be..1b31e99fd 100644 --- a/src/morphodict/api/templates/admin/base.html +++ b/src/morphodict/api/templates/admin/base.html @@ -1,7 +1,7 @@ {% extends "admin/base.html" %} {% block userlinks %} - Query help / - FST tool / + Query help / + FST tool / {{ block.super }} {% endblock %} diff --git a/src/morphodict/api/urls.py b/src/morphodict/api/urls.py index 05c797ca2..c5c2ffeb3 100644 --- a/src/morphodict/api/urls.py +++ b/src/morphodict/api/urls.py @@ -7,11 +7,11 @@ path( "click-in-text/", api_views.click_in_text, - name="cree-dictionary-word-click-in-text-api", + name="dictionary-word-click-in-text-api", ), path( "click-in-text-embedded-test/", api_views.click_in_text_embedded_test, - name="cree-dictionary-click-in-text-embedded-test", + name="dictionary-click-in-text-embedded-test", ), ] diff --git a/src/morphodict/frontend/templates/morphodict/components/header.html b/src/morphodict/frontend/templates/morphodict/components/header.html index f89caa83c..dd7b592d0 100644 --- a/src/morphodict/frontend/templates/morphodict/components/header.html +++ b/src/morphodict/frontend/templates/morphodict/components/header.html @@ -3,7 +3,7 @@