mirror of
https://github.com/acanas/swad-core.git
synced 2024-06-14 12:44:09 +02:00
Version 14.120.5
This commit is contained in:
parent
87cb8f098f
commit
1da00f49ad
|
@ -103,11 +103,12 @@
|
||||||
/****************************** Public constants *****************************/
|
/****************************** Public constants *****************************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
#define Log_PLATFORM_VERSION "SWAD 14.120.4 (2015/07/25)"
|
#define Log_PLATFORM_VERSION "SWAD 14.120.5 (2015/07/26)"
|
||||||
|
|
||||||
// Number of lines (includes comments but not blank lines) has been got with the following command:
|
// Number of lines (includes comments but not blank lines) has been got with the following command:
|
||||||
// nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*.h sql/swad*.sql | tail -1
|
// nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*.h sql/swad*.sql | tail -1
|
||||||
/*
|
/*
|
||||||
|
Version 14.120.5: Jul 26, 2015 Changes in CSS of forms. (184924 lines)
|
||||||
Version 14.120.4: Jul 25, 2015 Changes in CSS of forms. (184937 lines)
|
Version 14.120.4: Jul 25, 2015 Changes in CSS of forms. (184937 lines)
|
||||||
Version 14.120.3: Jul 25, 2015 Changes in selectors of country, institution, centre, degree and course. (184893 lines)
|
Version 14.120.3: Jul 25, 2015 Changes in selectors of country, institution, centre, degree and course. (184893 lines)
|
||||||
Version 14.120.2: Jul 25, 2015 Changes in CSS of forms.
|
Version 14.120.2: Jul 25, 2015 Changes in CSS of forms.
|
||||||
|
|
|
@ -155,7 +155,7 @@ static void Fol_ShowNumberOfFollowingOrFollowers (const struct UsrData *UsrDat,
|
||||||
fprintf (Gbl.F.Out,"</div>");
|
fprintf (Gbl.F.Out,"</div>");
|
||||||
|
|
||||||
/* Text */
|
/* Text */
|
||||||
fprintf (Gbl.F.Out,"<div class=\"%s\">",
|
fprintf (Gbl.F.Out,"<div class=\"%s\" style=\"text-align:center;\">",
|
||||||
(Gbl.CurrentAct == Action) ? The_ClassFormulB[Gbl.Prefs.Theme] :
|
(Gbl.CurrentAct == Action) ? The_ClassFormulB[Gbl.Prefs.Theme] :
|
||||||
The_ClassFormul[Gbl.Prefs.Theme]);
|
The_ClassFormul[Gbl.Prefs.Theme]);
|
||||||
if (NumUsrs)
|
if (NumUsrs)
|
||||||
|
|
29
swad_forum.c
29
swad_forum.c
|
@ -266,6 +266,7 @@ static void For_WriteFormForumPst (bool IsReply,long ThrCod,const char *Subject)
|
||||||
static void For_UpdateNumUsrsNotifiedByEMailAboutPost (long PstCod,unsigned NumUsrsToBeNotifiedByEMail);
|
static void For_UpdateNumUsrsNotifiedByEMailAboutPost (long PstCod,unsigned NumUsrsToBeNotifiedByEMail);
|
||||||
static void For_WriteNumberOfThrs (unsigned NumThrs,unsigned NumThrsWithNewPosts);
|
static void For_WriteNumberOfThrs (unsigned NumThrs,unsigned NumThrsWithNewPosts);
|
||||||
static void For_WriteNumThrsAndPsts (unsigned NumThrs,unsigned NumThrsWithNewPosts,unsigned NumPosts);
|
static void For_WriteNumThrsAndPsts (unsigned NumThrs,unsigned NumThrsWithNewPosts,unsigned NumPosts);
|
||||||
|
static void For_WriteThrSubject (long ThrCod);
|
||||||
static long For_GetParamThrCod (void);
|
static long For_GetParamThrCod (void);
|
||||||
static void For_PutHiddenParamPstCod (long PstCod);
|
static void For_PutHiddenParamPstCod (long PstCod);
|
||||||
static long For_GetParamPstCod (void);
|
static long For_GetParamPstCod (void);
|
||||||
|
@ -864,7 +865,6 @@ void For_RemoveUsrFromReadThrs (long UsrCod)
|
||||||
|
|
||||||
static void For_ShowThreadPosts (long ThrCod,char *LastSubject)
|
static void For_ShowThreadPosts (long ThrCod,char *LastSubject)
|
||||||
{
|
{
|
||||||
extern const char *The_ClassFormul[The_NUM_THEMES];
|
|
||||||
extern const char *Txt_Thread;
|
extern const char *Txt_Thread;
|
||||||
extern const char *Txt_There_are_new_posts;
|
extern const char *Txt_There_are_new_posts;
|
||||||
extern const char *Txt_No_new_posts;
|
extern const char *Txt_No_new_posts;
|
||||||
|
@ -907,10 +907,7 @@ static void For_ShowThreadPosts (long ThrCod,char *LastSubject)
|
||||||
|
|
||||||
/* Write a link to top level of forums */
|
/* Write a link to top level of forums */
|
||||||
fprintf (Gbl.F.Out,"<div style=\"display:inline-block; margin:0 auto;\">"
|
fprintf (Gbl.F.Out,"<div style=\"display:inline-block; margin:0 auto;\">"
|
||||||
"<ul class=\"%s\" style=\"list-style-type:none;"
|
"<ul class=\"LIST_LEFT\">");
|
||||||
" padding:0; margin:0;"
|
|
||||||
" text-align:left; vertical-align:middle;\">",
|
|
||||||
The_ClassFormul[Gbl.Prefs.Theme]);
|
|
||||||
For_WriteLinkToTopLevelOfForums ();
|
For_WriteLinkToTopLevelOfForums ();
|
||||||
|
|
||||||
/* Write a link to current forum */
|
/* Write a link to current forum */
|
||||||
|
@ -918,7 +915,7 @@ static void For_ShowThreadPosts (long ThrCod,char *LastSubject)
|
||||||
For_WriteLinkToAForum (Gbl.Forum.ForumType,true,1,IsLastItemInLevel);
|
For_WriteLinkToAForum (Gbl.Forum.ForumType,true,1,IsLastItemInLevel);
|
||||||
|
|
||||||
/* Write thread title */
|
/* Write thread title */
|
||||||
fprintf (Gbl.F.Out,"<li style=\"height:20px;\">");
|
fprintf (Gbl.F.Out,"<li class=\"DAT\" style=\"height:20px;\">");
|
||||||
IsLastItemInLevel[2] = true;
|
IsLastItemInLevel[2] = true;
|
||||||
Lay_IndentDependingOnLevel (2,IsLastItemInLevel);
|
Lay_IndentDependingOnLevel (2,IsLastItemInLevel);
|
||||||
|
|
||||||
|
@ -1592,7 +1589,6 @@ void For_SetForumTypeAndRestrictAccess (void)
|
||||||
|
|
||||||
void For_ShowForumList (void)
|
void For_ShowForumList (void)
|
||||||
{
|
{
|
||||||
extern const char *The_ClassFormul[The_NUM_THEMES];
|
|
||||||
extern const char *Txt_Forums;
|
extern const char *Txt_Forums;
|
||||||
bool ICanMoveThreads = (Gbl.Usrs.Me.LoggedRole == Rol_SYS_ADM); // If I have permission to move threads...
|
bool ICanMoveThreads = (Gbl.Usrs.Me.LoggedRole == Rol_SYS_ADM); // If I have permission to move threads...
|
||||||
bool IsLastItemInLevel[1+For_FORUM_MAX_LEVELS];
|
bool IsLastItemInLevel[1+For_FORUM_MAX_LEVELS];
|
||||||
|
@ -1626,10 +1622,7 @@ void For_ShowForumList (void)
|
||||||
|
|
||||||
/***** Write a link to top level of forums *****/
|
/***** Write a link to top level of forums *****/
|
||||||
fprintf (Gbl.F.Out,"<div style=\"display:inline-block; margin:0 auto;\">"
|
fprintf (Gbl.F.Out,"<div style=\"display:inline-block; margin:0 auto;\">"
|
||||||
"<ul class=\"%s\" style=\"list-style-type:none;"
|
"<ul class=\"LIST_LEFT\">");
|
||||||
" padding:0; margin:0;"
|
|
||||||
" text-align:left; vertical-align:middle;\">",
|
|
||||||
The_ClassFormul[Gbl.Prefs.Theme]);
|
|
||||||
For_WriteLinkToTopLevelOfForums ();
|
For_WriteLinkToTopLevelOfForums ();
|
||||||
|
|
||||||
/***** Links to global forums *****/
|
/***** Links to global forums *****/
|
||||||
|
@ -2362,7 +2355,6 @@ static unsigned For_GetNumOfPostsInThrNewerThan (long ThrCod,const char *Time)
|
||||||
|
|
||||||
void For_ShowForumThrs (void)
|
void For_ShowForumThrs (void)
|
||||||
{
|
{
|
||||||
extern const char *The_ClassFormul[The_NUM_THEMES];
|
|
||||||
extern const char *Txt_Forum;
|
extern const char *Txt_Forum;
|
||||||
extern const char *Txt_Threads;
|
extern const char *Txt_Threads;
|
||||||
extern const char *Txt_MSG_Subject;
|
extern const char *Txt_MSG_Subject;
|
||||||
|
@ -2474,10 +2466,7 @@ void For_ShowForumThrs (void)
|
||||||
|
|
||||||
/* Write a link to top level of forums */
|
/* Write a link to top level of forums */
|
||||||
fprintf (Gbl.F.Out,"<div style=\"display:inline-block; margin:0 auto;\">"
|
fprintf (Gbl.F.Out,"<div style=\"display:inline-block; margin:0 auto;\">"
|
||||||
"<ul class=\"%s\" style=\"list-style-type:none;"
|
"<ul class=\"LIST_LEFT\">");
|
||||||
" padding:0; margin:0;"
|
|
||||||
" text-align:left; vertical-align:middle;\">",
|
|
||||||
The_ClassFormul[Gbl.Prefs.Theme]);
|
|
||||||
For_WriteLinkToTopLevelOfForums ();
|
For_WriteLinkToTopLevelOfForums ();
|
||||||
|
|
||||||
/* Write a link to current forum */
|
/* Write a link to current forum */
|
||||||
|
@ -3516,7 +3505,7 @@ void For_GetThrData (struct ForumThread *Thr)
|
||||||
/************* Write the subject of the first message of a thread ************/
|
/************* Write the subject of the first message of a thread ************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
void For_WriteThrSubject (long ThrCod)
|
static void For_WriteThrSubject (long ThrCod)
|
||||||
{
|
{
|
||||||
extern const char *Txt_no_subject;
|
extern const char *Txt_no_subject;
|
||||||
extern const char *Txt_first_message_not_allowed;
|
extern const char *Txt_first_message_not_allowed;
|
||||||
|
@ -3719,8 +3708,7 @@ static void For_WriteFormForumPst (bool IsReply,long ThrCod,const char *Subject)
|
||||||
Lay_StartRoundFrameTable (NULL,2,IsReply ? Txt_New_message :
|
Lay_StartRoundFrameTable (NULL,2,IsReply ? Txt_New_message :
|
||||||
Txt_New_thread);
|
Txt_New_thread);
|
||||||
fprintf (Gbl.F.Out,"<tr>"
|
fprintf (Gbl.F.Out,"<tr>"
|
||||||
"<td class=\"%s\""
|
"<td class=\"%s\" style=\"vertical-align:top;\">"
|
||||||
" style=\"text-align:right; vertical-align:top;\">"
|
|
||||||
"%s: "
|
"%s: "
|
||||||
"</td>"
|
"</td>"
|
||||||
"<td style=\"text-align:left;\">"
|
"<td style=\"text-align:left;\">"
|
||||||
|
@ -3733,8 +3721,7 @@ static void For_WriteFormForumPst (bool IsReply,long ThrCod,const char *Subject)
|
||||||
"</td>"
|
"</td>"
|
||||||
"</tr>"
|
"</tr>"
|
||||||
"<tr>"
|
"<tr>"
|
||||||
"<td class=\"%s\""
|
"<td class=\"%s\" style=\"vertical-align:top;\">"
|
||||||
" style=\"text-align:right; vertical-align:top;\">"
|
|
||||||
"%s: "
|
"%s: "
|
||||||
"</td>"
|
"</td>"
|
||||||
"<td style=\"text-align:left;\">"
|
"<td style=\"text-align:left;\">"
|
||||||
|
|
|
@ -139,7 +139,6 @@ unsigned For_GetNumTotalPstsInForumsOfType (For_ForumType_t ForumType,
|
||||||
unsigned For_GetNumPstsInForum (For_ForumType_t ForumType);
|
unsigned For_GetNumPstsInForum (For_ForumType_t ForumType);
|
||||||
void For_ListForumThrs (long ThrCods[Pag_ITEMS_PER_PAGE],struct Pagination *PaginationThrs);
|
void For_ListForumThrs (long ThrCods[Pag_ITEMS_PER_PAGE],struct Pagination *PaginationThrs);
|
||||||
void For_GetThrData (struct ForumThread *Thr);
|
void For_GetThrData (struct ForumThread *Thr);
|
||||||
void For_WriteThrSubject (long ThrCod);
|
|
||||||
void For_ShowThrPsts (void);
|
void For_ShowThrPsts (void);
|
||||||
void For_GetParamsForum (void);
|
void For_GetParamsForum (void);
|
||||||
void For_PutHiddenParamThrCod (long ThrCod);
|
void For_PutHiddenParamThrCod (long ThrCod);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user