mirror of https://github.com/acanas/swad-core.git
Version 23.59.5: Jan 26, 2024 Responsive design in forums and messages.
This commit is contained in:
parent
961a39a50a
commit
ac47c5985e
|
@ -4832,12 +4832,6 @@ legend {font-size:12pt;}
|
|||
}
|
||||
|
||||
/*********************************** Messages ********************************/
|
||||
.MSG_RECIPIENTS, .MSG_SUBJECT, .MSG_CONTENT
|
||||
{
|
||||
box-sizing:border-box;
|
||||
width:640px;
|
||||
}
|
||||
|
||||
.MSG_TO_ONE_RCP
|
||||
{
|
||||
display:inline-block;
|
||||
|
|
|
@ -633,10 +633,11 @@ Me sale este error, no s
|
|||
"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 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.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)
|
||||
|
|
|
@ -153,8 +153,6 @@ void Crs_ShowIntroduction (void)
|
|||
/************************ Write menu with my courses *************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
#define Crs_MAX_BYTES_TXT_LINK 40
|
||||
|
||||
static void Crs_WriteListMyCoursesToSelectOne (void)
|
||||
{
|
||||
extern const char *Hlp_PROFILE_Courses;
|
||||
|
|
130
swad_forum.c
130
swad_forum.c
|
@ -2106,7 +2106,7 @@ void For_ShowForumThreadsHighlightingOneThread (struct For_Forums *Forums,
|
|||
Forums,-1L);
|
||||
|
||||
/***** Heading row *****/
|
||||
HTM_TABLE_BeginWideMarginPadding (2);
|
||||
HTM_TABLE_Begin ("TBL_SCROLL");
|
||||
HTM_TR_Begin (NULL);
|
||||
|
||||
HTM_TH_Span (NULL ,HTM_HEAD_CENTER,1,1,"BT");
|
||||
|
@ -2769,85 +2769,85 @@ static void For_WriteFormForumPst (struct For_Forums *Forums,
|
|||
char *ClassInput;
|
||||
|
||||
/***** Begin box *****/
|
||||
if (IsReply)
|
||||
Box_BoxBegin (NULL,Txt_Post,
|
||||
NULL,NULL,
|
||||
Hlp_COMMUNICATION_Forums_new_post,Box_NOT_CLOSABLE);
|
||||
else
|
||||
Box_BoxBegin (NULL,Txt_Thread,
|
||||
NULL,NULL,
|
||||
Hlp_COMMUNICATION_Forums_new_thread,Box_NOT_CLOSABLE);
|
||||
Box_BoxBegin (NULL,IsReply ? Txt_Post :
|
||||
Txt_Thread,
|
||||
NULL,NULL,
|
||||
IsReply ? Hlp_COMMUNICATION_Forums_new_post :
|
||||
Hlp_COMMUNICATION_Forums_new_thread,
|
||||
Box_NOT_CLOSABLE);
|
||||
|
||||
/***** Begin form *****/
|
||||
if (IsReply) // Form to write a reply to a post of an existing thread
|
||||
{
|
||||
Frm_BeginFormAnchor (For_ActionsRecRepFor[Forums->Forum.Type],
|
||||
For_FORUM_POSTS_SECTION_ID);
|
||||
For_PutParsNewPost (Forums);
|
||||
}
|
||||
else // Form to write the first post of a new thread
|
||||
{
|
||||
Frm_BeginFormAnchor (For_ActionsRecThrFor[Forums->Forum.Type],
|
||||
For_FORUM_POSTS_SECTION_ID);
|
||||
For_PutParsNewThread (Forums);
|
||||
}
|
||||
/***** Begin form *****/
|
||||
if (IsReply) // Form to write a reply to a post of an existing thread
|
||||
{
|
||||
Frm_BeginFormAnchor (For_ActionsRecRepFor[Forums->Forum.Type],
|
||||
For_FORUM_POSTS_SECTION_ID);
|
||||
For_PutParsNewPost (Forums);
|
||||
}
|
||||
else // Form to write the first post of a new thread
|
||||
{
|
||||
Frm_BeginFormAnchor (For_ActionsRecThrFor[Forums->Forum.Type],
|
||||
For_FORUM_POSTS_SECTION_ID);
|
||||
For_PutParsNewThread (Forums);
|
||||
}
|
||||
|
||||
/***** Subject and content *****/
|
||||
HTM_TABLE_BeginCenterPadding (2);
|
||||
/***** Subject and content *****/
|
||||
HTM_TABLE_BeginCenterPadding (2);
|
||||
|
||||
// If writing a reply to a message of an existing thread ==> write subject
|
||||
/* Subject */
|
||||
HTM_TR_Begin (NULL);
|
||||
// If writing a reply to a message of an existing thread ==> write subject
|
||||
/* Subject */
|
||||
HTM_TR_Begin (NULL);
|
||||
|
||||
/* Label */
|
||||
Frm_LabelColumn ("RT","Subject",Txt_MSG_Subject);
|
||||
/* Label */
|
||||
Frm_LabelColumn ("REC_C1_BOT RT","Subject",Txt_MSG_Subject);
|
||||
|
||||
/* Data */
|
||||
HTM_TD_Begin ("class=\"LT\"");
|
||||
HTM_INPUT_TEXT ("Subject",Cns_MAX_CHARS_SUBJECT,
|
||||
IsReply ? Subject :
|
||||
"",
|
||||
HTM_DONT_SUBMIT_ON_CHANGE,
|
||||
"id=\"Subject\" class=\"MSG_SUBJECT INPUT_%s\""
|
||||
" required=\"required\"",
|
||||
The_GetSuffix ());
|
||||
HTM_TD_End ();
|
||||
/* Data */
|
||||
HTM_TD_Begin ("class=\"REC_C2_BOT LT\"");
|
||||
HTM_INPUT_TEXT ("Subject",Cns_MAX_CHARS_SUBJECT,
|
||||
IsReply ? Subject :
|
||||
"",
|
||||
HTM_DONT_SUBMIT_ON_CHANGE,
|
||||
"id=\"Subject\""
|
||||
" class=\"REC_C2_BOT_INPUT INPUT_%s\""
|
||||
" required=\"required\"",
|
||||
The_GetSuffix ());
|
||||
HTM_TD_End ();
|
||||
|
||||
HTM_TR_End ();
|
||||
HTM_TR_End ();
|
||||
|
||||
/* Content */
|
||||
HTM_TR_Begin (NULL);
|
||||
/* Content */
|
||||
HTM_TR_Begin (NULL);
|
||||
|
||||
/* Label */
|
||||
Frm_LabelColumn ("RT","Content",Txt_MSG_Content);
|
||||
/* Label */
|
||||
Frm_LabelColumn ("REC_C1_BOT RT","Content",Txt_MSG_Content);
|
||||
|
||||
/* Data */
|
||||
HTM_TD_Begin ("class=\"LT\"");
|
||||
HTM_TEXTAREA_Begin ("id=\"Content\" name=\"Content\""
|
||||
" class=\"MSG_CONTENT INPUT_%s\" rows=\"10\"",
|
||||
The_GetSuffix ());
|
||||
HTM_TEXTAREA_End ();
|
||||
HTM_TD_End ();
|
||||
/* Data */
|
||||
HTM_TD_Begin ("class=\"REC_C2_BOT LT\"");
|
||||
HTM_TEXTAREA_Begin ("id=\"Content\" name=\"Content\""
|
||||
" class=\"REC_C2_BOT_INPUT INPUT_%s\""
|
||||
" rows=\"10\"",
|
||||
The_GetSuffix ());
|
||||
HTM_TEXTAREA_End ();
|
||||
HTM_TD_End ();
|
||||
|
||||
HTM_TR_End ();
|
||||
HTM_TR_End ();
|
||||
|
||||
HTM_TABLE_End ();
|
||||
HTM_TABLE_End ();
|
||||
|
||||
/***** Help for text editor *****/
|
||||
Lay_HelpPlainEditor ();
|
||||
/***** Help for text editor *****/
|
||||
Lay_HelpPlainEditor ();
|
||||
|
||||
/***** Attached image (optional) *****/
|
||||
if (asprintf (&ClassInput,"FOR_MED_INPUT INPUT_%s",
|
||||
The_GetSuffix ()) < 0)
|
||||
Err_NotEnoughMemoryExit ();
|
||||
Med_PutMediaUploader (-1,ClassInput);
|
||||
free (ClassInput);
|
||||
/***** Attached image (optional) *****/
|
||||
if (asprintf (&ClassInput,"FOR_MED_INPUT INPUT_%s",
|
||||
The_GetSuffix ()) < 0)
|
||||
Err_NotEnoughMemoryExit ();
|
||||
Med_PutMediaUploader (-1,ClassInput);
|
||||
free (ClassInput);
|
||||
|
||||
/***** Send button *****/
|
||||
Btn_PutCreateButton (Txt_Send);
|
||||
/***** Send button *****/
|
||||
Btn_PutCreateButton (Txt_Send);
|
||||
|
||||
/***** End form *****/
|
||||
Frm_EndForm ();
|
||||
/***** End form *****/
|
||||
Frm_EndForm ();
|
||||
|
||||
/***** End box *****/
|
||||
Box_BoxEnd ();
|
||||
|
|
|
@ -546,7 +546,7 @@ static void Msg_WriteFormUsrsIDsOrNicksOtherRecipients (void)
|
|||
HTM_TR_Begin (NULL);
|
||||
HTM_TD_Begin ("colspan=\"%u\" class=\"LM\"",ColSpan);
|
||||
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\"",
|
||||
The_GetSuffix (),
|
||||
Txt_nicks_emails_or_IDs_separated_by_commas);
|
||||
|
@ -587,12 +587,12 @@ static void Msg_WriteFormSubjectAndContentMsgToUsrs (struct Msg_Messages *Messag
|
|||
HTM_TR_Begin (NULL);
|
||||
|
||||
/* Label */
|
||||
Frm_LabelColumn ("RT","MsgSubject",Txt_MSG_Subject);
|
||||
Frm_LabelColumn ("REC_C1_BOT RT","MsgSubject",Txt_MSG_Subject);
|
||||
|
||||
/* Data */
|
||||
HTM_TD_Begin ("class=\"LT\"");
|
||||
HTM_TD_Begin ("class=\"REC_C2_BOT LT\"");
|
||||
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 ());
|
||||
|
||||
/* If message is a reply ==> get original message */
|
||||
|
@ -627,12 +627,13 @@ static void Msg_WriteFormSubjectAndContentMsgToUsrs (struct Msg_Messages *Messag
|
|||
HTM_TR_Begin (NULL);
|
||||
|
||||
/* Label */
|
||||
Frm_LabelColumn ("RT","MsgContent",Txt_MSG_Content);
|
||||
Frm_LabelColumn ("REC_C1_BOT RT","MsgContent",Txt_MSG_Content);
|
||||
|
||||
/* Data */
|
||||
HTM_TD_Begin ("class=\"LT\"");
|
||||
HTM_TD_Begin ("class=\"REC_C2_BOT LT\"");
|
||||
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 ());
|
||||
|
||||
/* 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);
|
||||
|
||||
/* Label */
|
||||
Frm_LabelColumn ("RT","MsgContent",Txt_MSG_Content);
|
||||
Frm_LabelColumn ("REC_C1_BOT RT","MsgContent",Txt_MSG_Content);
|
||||
|
||||
/* Data */
|
||||
HTM_TD_Begin ("class=\"LT\"");
|
||||
HTM_TD_Begin ("class=\"REC_C2_BOT LT\"");
|
||||
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 ());
|
||||
|
||||
/* Begin textarea with a '\n', that will be not visible in textarea.
|
||||
|
|
|
@ -14111,7 +14111,7 @@ const char *Txt_FORUM_THREAD_ORDER[Dat_NUM_START_END_TIME] =
|
|||
#elif L==9 // pt
|
||||
"Primeira post"
|
||||
#elif L==10 // tr
|
||||
"First post" // Çeviri lazim!
|
||||
"İlk posta"
|
||||
#endif
|
||||
,
|
||||
[Dat_END_TIME] =
|
||||
|
@ -14134,7 +14134,7 @@ const char *Txt_FORUM_THREAD_ORDER[Dat_NUM_START_END_TIME] =
|
|||
#elif L==9 // pt
|
||||
"Última post"
|
||||
#elif L==10 // tr
|
||||
"Last post" // Çeviri lazim!
|
||||
"Son posta"
|
||||
#endif
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue