From 26a4f4dba1e50535227caad7dcd68fcc6e798f0a Mon Sep 17 00:00:00 2001 From: boryanagoncharenko <3010723+boryanagoncharenko@users.noreply.github.com> Date: Fri, 7 Feb 2025 02:58:56 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=BB=20Disable=20the=20teachers'=20surv?= =?UTF-8?q?ey=20=20(#6147)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR temporarily disables the survey presented to teachers on the class overview page. This is the first step from the survey redesign process. This is why most of the code is not deleted but commented out. Ideally, it will be used again soon, when the redesign is done. Fixes #6143 **How to test** - Run Hedy locally and log in as a teacher. - Go to For-Teachers and click on an existing class. When the class overview page opens, there should be no Survey link in the upper right corner (on the left of the 'Customize class' green button) - Create a new class and check that the Survey link is not displayed. --- messages.pot | 6 --- static/css/generated.full.css | 8 --- templates/class-overview.html | 15 ------ .../class_page/other_buttons.cy.js | 51 ++++++++++--------- translations/ar/LC_MESSAGES/messages.po | 14 +++-- translations/bg/LC_MESSAGES/messages.po | 14 +++-- translations/bn/LC_MESSAGES/messages.po | 14 +++-- translations/ca/LC_MESSAGES/messages.po | 12 ++--- translations/cs/LC_MESSAGES/messages.po | 14 +++-- translations/cy/LC_MESSAGES/messages.po | 14 +++-- translations/da/LC_MESSAGES/messages.po | 14 +++-- translations/de/LC_MESSAGES/messages.po | 14 +++-- translations/el/LC_MESSAGES/messages.po | 14 +++-- translations/en/LC_MESSAGES/messages.po | 12 ++--- translations/eo/LC_MESSAGES/messages.po | 14 +++-- translations/es/LC_MESSAGES/messages.po | 12 ++--- translations/et/LC_MESSAGES/messages.po | 14 +++-- translations/fa/LC_MESSAGES/messages.po | 14 +++-- translations/fi/LC_MESSAGES/messages.po | 14 +++-- translations/fr/LC_MESSAGES/messages.po | 14 +++-- translations/fr_CA/LC_MESSAGES/messages.po | 14 +++-- translations/fy/LC_MESSAGES/messages.po | 14 +++-- translations/ga/LC_MESSAGES/messages.po | 12 ++--- translations/he/LC_MESSAGES/messages.po | 14 +++-- translations/hi/LC_MESSAGES/messages.po | 14 +++-- translations/hr/LC_MESSAGES/messages.po | 14 +++-- translations/hu/LC_MESSAGES/messages.po | 14 +++-- translations/ia/LC_MESSAGES/messages.po | 14 +++-- translations/iba/LC_MESSAGES/messages.po | 14 +++-- translations/id/LC_MESSAGES/messages.po | 14 +++-- translations/it/LC_MESSAGES/messages.po | 14 +++-- translations/ja/LC_MESSAGES/messages.po | 14 +++-- translations/jbo/LC_MESSAGES/messages.po | 12 ++--- translations/kab/LC_MESSAGES/messages.po | 14 +++-- translations/kmr/LC_MESSAGES/messages.po | 14 +++-- translations/kn/LC_MESSAGES/messages.po | 12 ++--- translations/ko/LC_MESSAGES/messages.po | 14 +++-- translations/mi/LC_MESSAGES/messages.po | 14 +++-- translations/ml/LC_MESSAGES/messages.po | 12 ++--- translations/mr/LC_MESSAGES/messages.po | 12 ++--- translations/ms/LC_MESSAGES/messages.po | 14 +++-- translations/my/LC_MESSAGES/messages.po | 12 ++--- translations/nb_NO/LC_MESSAGES/messages.po | 14 +++-- translations/ne/LC_MESSAGES/messages.po | 14 +++-- translations/nl/LC_MESSAGES/messages.po | 12 ++--- translations/pa_PK/LC_MESSAGES/messages.po | 14 +++-- translations/pap/LC_MESSAGES/messages.po | 14 +++-- translations/peo/LC_MESSAGES/messages.po | 14 +++-- translations/pl/LC_MESSAGES/messages.po | 12 ++--- translations/pt_BR/LC_MESSAGES/messages.po | 12 ++--- translations/pt_PT/LC_MESSAGES/messages.po | 12 ++--- translations/ro/LC_MESSAGES/messages.po | 14 +++-- translations/ru/LC_MESSAGES/messages.po | 14 +++-- translations/sl/LC_MESSAGES/messages.po | 14 +++-- translations/sq/LC_MESSAGES/messages.po | 14 +++-- translations/sr/LC_MESSAGES/messages.po | 12 ++--- translations/sv/LC_MESSAGES/messages.po | 14 +++-- translations/sw/LC_MESSAGES/messages.po | 14 +++-- translations/ta/LC_MESSAGES/messages.po | 14 +++-- translations/te/LC_MESSAGES/messages.po | 14 +++-- translations/th/LC_MESSAGES/messages.po | 14 +++-- translations/tl/LC_MESSAGES/messages.po | 14 +++-- translations/tn/LC_MESSAGES/messages.po | 14 +++-- translations/tr/LC_MESSAGES/messages.po | 14 +++-- translations/uk/LC_MESSAGES/messages.po | 12 ++--- translations/ur/LC_MESSAGES/messages.po | 14 +++-- translations/uz/LC_MESSAGES/messages.po | 14 +++-- translations/vi/LC_MESSAGES/messages.po | 14 +++-- translations/zh_Hans/LC_MESSAGES/messages.po | 12 ++--- translations/zh_Hant/LC_MESSAGES/messages.po | 14 +++-- website/for_teachers.py | 17 ++----- 71 files changed, 425 insertions(+), 564 deletions(-) diff --git a/messages.pot b/messages.pot index 03d02fd9e29..b3cfa83008b 100644 --- a/messages.pot +++ b/messages.pot @@ -1658,12 +1658,6 @@ msgstr "" msgid "surname" msgstr "" -msgid "survey" -msgstr "" - -msgid "survey_completed" -msgstr "" - msgid "survey_skip" msgstr "" diff --git a/static/css/generated.full.css b/static/css/generated.full.css index 64a46fc52cb..74ca819abe6 100644 --- a/static/css/generated.full.css +++ b/static/css/generated.full.css @@ -346956,14 +346956,6 @@ div[class^="ace_incorrect_hedy_code"] { margin-bottom: 0px; } - .md\:ml-4 { - margin-left: 1rem; - } - - .md\:mr-4 { - margin-right: 1rem; - } - .md\:block { display: block; } diff --git a/templates/class-overview.html b/templates/class-overview.html index c38b9af7fbc..e46c2e918bf 100644 --- a/templates/class-overview.html +++ b/templates/class-overview.html @@ -7,25 +7,10 @@   {{_('go_back')}} - {% if second_teacher %}

{{_('role')}}: {{role}}

{% endif %}

{{ class_info.name }}

-
- {% if class_info.students > 0 %} - - {% endif %} -