From ad43d4bf93235fd99e5132580fdd48a6c9baab04 Mon Sep 17 00:00:00 2001 From: acanas Date: Tue, 23 May 2023 12:59:49 +0200 Subject: [PATCH] Version 22.118.5: May 23, 2023 Changes in comments in surveys. --- .settings/language.settings.xml | 2 +- css/{swad22.118.3.css => swad22.118.5.css} | 8 ++-- swad_changelog.h | 6 ++- swad_survey.c | 48 ++++++++++++++-------- 4 files changed, 39 insertions(+), 25 deletions(-) rename css/{swad22.118.3.css => swad22.118.5.css} (99%) diff --git a/.settings/language.settings.xml b/.settings/language.settings.xml index 2174a0b7..b5a12da2 100644 --- a/.settings/language.settings.xml +++ b/.settings/language.settings.xml @@ -5,7 +5,7 @@ - + diff --git a/css/swad22.118.3.css b/css/swad22.118.5.css similarity index 99% rename from css/swad22.118.3.css rename to css/swad22.118.5.css index e3b32df6..38c2e663 100644 --- a/css/swad22.118.3.css +++ b/css/swad22.118.5.css @@ -1381,8 +1381,8 @@ a:hover /* Default ==> underlined */ } #MFU_actions img { - width:20px; - height:20px; + width:13px; + height:13px; margin:1px; vertical-align:middle; } @@ -1393,8 +1393,8 @@ a:hover /* Default ==> underlined */ } #MFU_actions_big img { - width:40px; - height:40px; + width:26px; + height:26px; margin:2px 4px 2px 0; vertical-align:middle; } diff --git a/swad_changelog.h b/swad_changelog.h index d7237ca7..30564d77 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -629,10 +629,12 @@ TODO: Emilce Barrera Mesa: Podr TODO: Emilce Barrera Mesa: Mis estudiantes presentan muchas dificultades a la hora de poner la foto porque la plataforma es muy exigente respecto al fondo de la imagen. */ -#define Log_PLATFORM_VERSION "SWAD 22.118.3 (2023-05-23)" -#define CSS_FILE "swad22.118.3.css" +#define Log_PLATFORM_VERSION "SWAD 22.118.5 (2023-05-23)" +#define CSS_FILE "swad22.118.5.css" #define JS_FILE "swad22.49.js" /* + Version 22.118.5: May 23, 2023 Changes in comments in surveys. (337360 lines) + Version 22.118.4: May 23, 2023 Fix CSS related to frequent actions. (337351 lines) Version 22.118.3: May 23, 2023 Fix CSS related to left and right columns. (337351 lines) Version 22.118.2: May 23, 2023 Changes in survey comments. (337339 lines) Version 22.118.1: May 22, 2023 Remove survey comments from database. (337334 lines) diff --git a/swad_survey.c b/swad_survey.c index 293da5a1..ea2d5b20 100644 --- a/swad_survey.c +++ b/swad_survey.c @@ -3030,31 +3030,43 @@ static void Svy_WriteCommentsOfAQst (struct Svy_Survey *Svy, } else if (Svy->Status.ICanViewComments) { - /***** Get comments of this question *****/ - NumComments = Svy_DB_GetCommentsQst (&mysql_res,SvyQst->QstCod); + HTM_DL_Begin (); - /***** Write the answers *****/ - if (NumComments) - { - HTM_OL_Begin (); + HTM_DT_Begin (); + HTM_TxtColon (Txt_Comments); + HTM_DT_End (); - /* Write one row for each user who has commented */ - for (NumCom = 0; - NumCom < NumComments; - NumCom++) + HTM_DD_Begin (); + + /***** Get comments of this question *****/ + NumComments = Svy_DB_GetCommentsQst (&mysql_res,SvyQst->QstCod); + + /***** Write the answers *****/ + if (NumComments) { - row = mysql_fetch_row (mysql_res); + HTM_OL_Begin (); - HTM_LI_Begin (NULL); - HTM_Txt (row[0]); - HTM_LI_End (); + /* Write one row for each user who has commented */ + for (NumCom = 0; + NumCom < NumComments; + NumCom++) + { + row = mysql_fetch_row (mysql_res); + + HTM_LI_Begin (NULL); + HTM_Txt (row[0]); + HTM_LI_End (); + } + + HTM_OL_End (); } - HTM_OL_End (); - } + /***** Free structure that stores the query result *****/ + DB_FreeMySQLResult (&mysql_res); - /***** Free structure that stores the query result *****/ - DB_FreeMySQLResult (&mysql_res); + HTM_DD_End (); + + HTM_DL_End (); } }