Version 23.59.5: Jan 26, 2024 Responsive design in forums and messages.

This commit is contained in:
acanas 2024-01-26 09:16:59 +01:00
parent 961a39a50a
commit ac47c5985e
6 changed files with 81 additions and 86 deletions

View File

@ -4832,12 +4832,6 @@ legend {font-size:12pt;}
} }
/*********************************** Messages ********************************/ /*********************************** Messages ********************************/
.MSG_RECIPIENTS, .MSG_SUBJECT, .MSG_CONTENT
{
box-sizing:border-box;
width:640px;
}
.MSG_TO_ONE_RCP .MSG_TO_ONE_RCP
{ {
display:inline-block; display:inline-block;

View File

@ -633,10 +633,11 @@ Me sale este error, no s
"can npt create received message (duplicated entry '243218-2160773' for key 'UsrCod_MsgCod') "can npt create received message (duplicated entry '243218-2160773' for key 'UsrCod_MsgCod')
*/ */
#define Log_PLATFORM_VERSION "SWAD 23.59.4 (2024-01-24)" #define Log_PLATFORM_VERSION "SWAD 23.59.5 (2024-01-26)"
#define CSS_FILE "swad23.58.1.css" #define CSS_FILE "swad23.58.1.css"
#define JS_FILE "swad23.53.6.js" #define JS_FILE "swad23.53.6.js"
/* /*
Version 23.59.5: Jan 26, 2024 Responsive design in forums and messages. (? lines)
Version 23.59.4: Jan 24, 2024 Responsive design in list of users. (335701 lines) Version 23.59.4: Jan 24, 2024 Responsive design in list of users. (335701 lines)
Version 23.59.3: Jan 24, 2024 Responsive design in course hits. (335698 lines) Version 23.59.3: Jan 24, 2024 Responsive design in course hits. (335698 lines)
Version 23.59.2: Jan 24, 2024 Responsive design in global hits. (335672 lines) Version 23.59.2: Jan 24, 2024 Responsive design in global hits. (335672 lines)

View File

@ -153,8 +153,6 @@ void Crs_ShowIntroduction (void)
/************************ Write menu with my courses *************************/ /************************ Write menu with my courses *************************/
/*****************************************************************************/ /*****************************************************************************/
#define Crs_MAX_BYTES_TXT_LINK 40
static void Crs_WriteListMyCoursesToSelectOne (void) static void Crs_WriteListMyCoursesToSelectOne (void)
{ {
extern const char *Hlp_PROFILE_Courses; extern const char *Hlp_PROFILE_Courses;

View File

@ -2106,7 +2106,7 @@ void For_ShowForumThreadsHighlightingOneThread (struct For_Forums *Forums,
Forums,-1L); Forums,-1L);
/***** Heading row *****/ /***** Heading row *****/
HTM_TABLE_BeginWideMarginPadding (2); HTM_TABLE_Begin ("TBL_SCROLL");
HTM_TR_Begin (NULL); HTM_TR_Begin (NULL);
HTM_TH_Span (NULL ,HTM_HEAD_CENTER,1,1,"BT"); HTM_TH_Span (NULL ,HTM_HEAD_CENTER,1,1,"BT");
@ -2769,85 +2769,85 @@ static void For_WriteFormForumPst (struct For_Forums *Forums,
char *ClassInput; char *ClassInput;
/***** Begin box *****/ /***** Begin box *****/
if (IsReply) Box_BoxBegin (NULL,IsReply ? Txt_Post :
Box_BoxBegin (NULL,Txt_Post, Txt_Thread,
NULL,NULL, NULL,NULL,
Hlp_COMMUNICATION_Forums_new_post,Box_NOT_CLOSABLE); IsReply ? Hlp_COMMUNICATION_Forums_new_post :
else Hlp_COMMUNICATION_Forums_new_thread,
Box_BoxBegin (NULL,Txt_Thread, Box_NOT_CLOSABLE);
NULL,NULL,
Hlp_COMMUNICATION_Forums_new_thread,Box_NOT_CLOSABLE);
/***** Begin form *****/ /***** Begin form *****/
if (IsReply) // Form to write a reply to a post of an existing thread if (IsReply) // Form to write a reply to a post of an existing thread
{ {
Frm_BeginFormAnchor (For_ActionsRecRepFor[Forums->Forum.Type], Frm_BeginFormAnchor (For_ActionsRecRepFor[Forums->Forum.Type],
For_FORUM_POSTS_SECTION_ID); For_FORUM_POSTS_SECTION_ID);
For_PutParsNewPost (Forums); For_PutParsNewPost (Forums);
} }
else // Form to write the first post of a new thread else // Form to write the first post of a new thread
{ {
Frm_BeginFormAnchor (For_ActionsRecThrFor[Forums->Forum.Type], Frm_BeginFormAnchor (For_ActionsRecThrFor[Forums->Forum.Type],
For_FORUM_POSTS_SECTION_ID); For_FORUM_POSTS_SECTION_ID);
For_PutParsNewThread (Forums); For_PutParsNewThread (Forums);
} }
/***** Subject and content *****/ /***** Subject and content *****/
HTM_TABLE_BeginCenterPadding (2); HTM_TABLE_BeginCenterPadding (2);
// If writing a reply to a message of an existing thread ==> write subject // If writing a reply to a message of an existing thread ==> write subject
/* Subject */ /* Subject */
HTM_TR_Begin (NULL); HTM_TR_Begin (NULL);
/* Label */ /* Label */
Frm_LabelColumn ("RT","Subject",Txt_MSG_Subject); Frm_LabelColumn ("REC_C1_BOT RT","Subject",Txt_MSG_Subject);
/* Data */ /* Data */
HTM_TD_Begin ("class=\"LT\""); HTM_TD_Begin ("class=\"REC_C2_BOT LT\"");
HTM_INPUT_TEXT ("Subject",Cns_MAX_CHARS_SUBJECT, HTM_INPUT_TEXT ("Subject",Cns_MAX_CHARS_SUBJECT,
IsReply ? Subject : IsReply ? Subject :
"", "",
HTM_DONT_SUBMIT_ON_CHANGE, HTM_DONT_SUBMIT_ON_CHANGE,
"id=\"Subject\" class=\"MSG_SUBJECT INPUT_%s\"" "id=\"Subject\""
" required=\"required\"", " class=\"REC_C2_BOT_INPUT INPUT_%s\""
The_GetSuffix ()); " required=\"required\"",
HTM_TD_End (); The_GetSuffix ());
HTM_TD_End ();
HTM_TR_End (); HTM_TR_End ();
/* Content */ /* Content */
HTM_TR_Begin (NULL); HTM_TR_Begin (NULL);
/* Label */ /* Label */
Frm_LabelColumn ("RT","Content",Txt_MSG_Content); Frm_LabelColumn ("REC_C1_BOT RT","Content",Txt_MSG_Content);
/* Data */ /* Data */
HTM_TD_Begin ("class=\"LT\""); HTM_TD_Begin ("class=\"REC_C2_BOT LT\"");
HTM_TEXTAREA_Begin ("id=\"Content\" name=\"Content\"" HTM_TEXTAREA_Begin ("id=\"Content\" name=\"Content\""
" class=\"MSG_CONTENT INPUT_%s\" rows=\"10\"", " class=\"REC_C2_BOT_INPUT INPUT_%s\""
The_GetSuffix ()); " rows=\"10\"",
HTM_TEXTAREA_End (); The_GetSuffix ());
HTM_TD_End (); HTM_TEXTAREA_End ();
HTM_TD_End ();
HTM_TR_End (); HTM_TR_End ();
HTM_TABLE_End (); HTM_TABLE_End ();
/***** Help for text editor *****/ /***** Help for text editor *****/
Lay_HelpPlainEditor (); Lay_HelpPlainEditor ();
/***** Attached image (optional) *****/ /***** Attached image (optional) *****/
if (asprintf (&ClassInput,"FOR_MED_INPUT INPUT_%s", if (asprintf (&ClassInput,"FOR_MED_INPUT INPUT_%s",
The_GetSuffix ()) < 0) The_GetSuffix ()) < 0)
Err_NotEnoughMemoryExit (); Err_NotEnoughMemoryExit ();
Med_PutMediaUploader (-1,ClassInput); Med_PutMediaUploader (-1,ClassInput);
free (ClassInput); free (ClassInput);
/***** Send button *****/ /***** Send button *****/
Btn_PutCreateButton (Txt_Send); Btn_PutCreateButton (Txt_Send);
/***** End form *****/ /***** End form *****/
Frm_EndForm (); Frm_EndForm ();
/***** End box *****/ /***** End box *****/
Box_BoxEnd (); Box_BoxEnd ();

View File

@ -546,7 +546,7 @@ static void Msg_WriteFormUsrsIDsOrNicksOtherRecipients (void)
HTM_TR_Begin (NULL); HTM_TR_Begin (NULL);
HTM_TD_Begin ("colspan=\"%u\" class=\"LM\"",ColSpan); HTM_TD_Begin ("colspan=\"%u\" class=\"LM\"",ColSpan);
HTM_TEXTAREA_Begin ("id=\"OtherRecipients\" name=\"OtherRecipients\"" HTM_TEXTAREA_Begin ("id=\"OtherRecipients\" name=\"OtherRecipients\""
" class=\"MSG_RECIPIENTS INPUT_%s\" rows=\"2\"" " class=\"REC_C2_BOT_INPUT INPUT_%s\" rows=\"2\""
" placeholder=\"%s\"", " placeholder=\"%s\"",
The_GetSuffix (), The_GetSuffix (),
Txt_nicks_emails_or_IDs_separated_by_commas); Txt_nicks_emails_or_IDs_separated_by_commas);
@ -587,12 +587,12 @@ static void Msg_WriteFormSubjectAndContentMsgToUsrs (struct Msg_Messages *Messag
HTM_TR_Begin (NULL); HTM_TR_Begin (NULL);
/* Label */ /* Label */
Frm_LabelColumn ("RT","MsgSubject",Txt_MSG_Subject); Frm_LabelColumn ("REC_C1_BOT RT","MsgSubject",Txt_MSG_Subject);
/* Data */ /* Data */
HTM_TD_Begin ("class=\"LT\""); HTM_TD_Begin ("class=\"REC_C2_BOT LT\"");
HTM_TEXTAREA_Begin ("id=\"MsgSubject\" name=\"Subject\"" HTM_TEXTAREA_Begin ("id=\"MsgSubject\" name=\"Subject\""
" class=\"MSG_SUBJECT INPUT_%s\" rows=\"2\"", " class=\"REC_C2_BOT_INPUT INPUT_%s\" rows=\"2\"",
The_GetSuffix ()); The_GetSuffix ());
/* If message is a reply ==> get original message */ /* If message is a reply ==> get original message */
@ -627,12 +627,13 @@ static void Msg_WriteFormSubjectAndContentMsgToUsrs (struct Msg_Messages *Messag
HTM_TR_Begin (NULL); HTM_TR_Begin (NULL);
/* Label */ /* Label */
Frm_LabelColumn ("RT","MsgContent",Txt_MSG_Content); Frm_LabelColumn ("REC_C1_BOT RT","MsgContent",Txt_MSG_Content);
/* Data */ /* Data */
HTM_TD_Begin ("class=\"LT\""); HTM_TD_Begin ("class=\"REC_C2_BOT LT\"");
HTM_TEXTAREA_Begin ("id=\"MsgContent\" name=\"Content\"" HTM_TEXTAREA_Begin ("id=\"MsgContent\" name=\"Content\""
" class=\"MSG_CONTENT INPUT_%s\" rows=\"20\"", " class=\"REC_C2_BOT_INPUT INPUT_%s\""
" rows=\"20\"",
The_GetSuffix ()); The_GetSuffix ());
/* Begin textarea with a '\n', that will be not visible in textarea. /* Begin textarea with a '\n', that will be not visible in textarea.
@ -662,12 +663,13 @@ static void Msg_WriteFormSubjectAndContentMsgToUsrs (struct Msg_Messages *Messag
HTM_TR_Begin (NULL); HTM_TR_Begin (NULL);
/* Label */ /* Label */
Frm_LabelColumn ("RT","MsgContent",Txt_MSG_Content); Frm_LabelColumn ("REC_C1_BOT RT","MsgContent",Txt_MSG_Content);
/* Data */ /* Data */
HTM_TD_Begin ("class=\"LT\""); HTM_TD_Begin ("class=\"REC_C2_BOT LT\"");
HTM_TEXTAREA_Begin ("id=\"MsgContent\" name=\"Content\"" HTM_TEXTAREA_Begin ("id=\"MsgContent\" name=\"Content\""
" class=\"MSG_CONTENT INPUT_%s\" rows=\"20\"", " class=\"REC_C2_BOT_INPUT INPUT_%s\""
" rows=\"20\"",
The_GetSuffix ()); The_GetSuffix ());
/* Begin textarea with a '\n', that will be not visible in textarea. /* Begin textarea with a '\n', that will be not visible in textarea.

View File

@ -14111,7 +14111,7 @@ const char *Txt_FORUM_THREAD_ORDER[Dat_NUM_START_END_TIME] =
#elif L==9 // pt #elif L==9 // pt
"Primeira post" "Primeira post"
#elif L==10 // tr #elif L==10 // tr
"First post" // Çeviri lazim! "&Idot;lk posta"
#endif #endif
, ,
[Dat_END_TIME] = [Dat_END_TIME] =
@ -14134,7 +14134,7 @@ const char *Txt_FORUM_THREAD_ORDER[Dat_NUM_START_END_TIME] =
#elif L==9 // pt #elif L==9 // pt
"&Uacute;ltima post" "&Uacute;ltima post"
#elif L==10 // tr #elif L==10 // tr
"Last post" // Çeviri lazim! "Son posta"
#endif #endif
}; };