Version 15.105.1

This commit is contained in:
Antonio Cañas Vargas 2016-01-10 03:19:13 +01:00
parent c4f75d06d4
commit f1e9b1451e
2 changed files with 9 additions and 12 deletions

View File

@ -120,13 +120,14 @@
/****************************** Public constants *****************************/
/*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 15.105 (2016-01-10)"
#define Log_PLATFORM_VERSION "SWAD 15.105.1 (2016-01-10)"
#define CSS_FILE "swad15.102.css"
#define JS_FILE "swad15.104.js"
// 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
/*
Version 15.105.1: Jan 10, 2016 Change in style writing recent social publishings. (191909 lines)
Version 15.105: Jan 10, 2016 Get only publishings newest than a give publishing. (191912 lines)
1 change necessary in database:
ALTER TABLE sessions ADD COLUMN LastPubCod BIGINT NOT NULL DEFAULT 0 AFTER LastRefresh;

View File

@ -191,8 +191,7 @@ static void Soc_PutLinkToViewRecentPublishings (void);
static void Soc_WriteSocialNote (const struct SocialPublishing *SocPub,
const struct SocialNote *SocNot,
bool ShowAlone,
bool ViewTopLine,
const char *Style);
bool ViewTopLine);
static void Soc_WriteDateTime (time_t TimeUTC);
static void Soc_GetAndWriteSocialPost (long PstCod);
static void Soc_PutFormGoToAction (const struct SocialNote *SocNot);
@ -472,7 +471,7 @@ static void Soc_ShowTimeline (const char *Query,const char *Title)
Soc_GetDataOfSocialNoteByCod (&SocNot);
/* Write social note */
Soc_WriteSocialNote (&SocPub,&SocNot,false,true,NULL);
Soc_WriteSocialNote (&SocPub,&SocNot,false,true);
}
fprintf (Gbl.F.Out,"</ul>");
@ -516,7 +515,7 @@ static void Soc_ShowRecentTimeline (const char *Query)
Soc_GetDataOfSocialNoteByCod (&SocNot);
/* Write social note */
Soc_WriteSocialNote (&SocPub,&SocNot,false,true,"background:yellow;");
Soc_WriteSocialNote (&SocPub,&SocNot,false,true);
}
/***** Free structure that stores the query result *****/
@ -553,8 +552,7 @@ static void Soc_PutLinkToViewRecentPublishings (void)
static void Soc_WriteSocialNote (const struct SocialPublishing *SocPub,
const struct SocialNote *SocNot,
bool ShowAlone, // Social note is shown alone, not in a list
bool ViewTopLine, // Separate with a top line from previous social note
const char *Style)
bool ViewTopLine) // Separate with a top line from previous social note
{
extern const char *Txt_Forum;
extern const char *Txt_Course;
@ -584,8 +582,6 @@ static void Soc_WriteSocialNote (const struct SocialPublishing *SocPub,
fprintf (Gbl.F.Out,"<li");
if (!ShowAlone && ViewTopLine)
fprintf (Gbl.F.Out," class=\"SOCIAL_PUB\"");
if (Style)
fprintf (Gbl.F.Out," style=\"%s\"",Style);
fprintf (Gbl.F.Out,">");
if (SocPub->PubCod <= 0 ||
@ -1929,7 +1925,7 @@ static void Soc_ShareSocialNote (void)
Lay_ShowAlert (Lay_SUCCESS,Txt_SOCIAL_PUBLISHING_Shared);
/***** Show the social note just shared *****/
Soc_WriteSocialNote (&SocPub,&SocNot,true,false,NULL);
Soc_WriteSocialNote (&SocPub,&SocNot,true,false);
}
}
@ -2008,7 +2004,7 @@ static void Soc_UnshareSocialPublishing (void)
/***** Show the social note corresponding
to the publishing just unshared *****/
Soc_WriteSocialNote (&SocPub,&SocNot,true,false,NULL);
Soc_WriteSocialNote (&SocPub,&SocNot,true,false);
}
}
@ -2096,7 +2092,7 @@ static void Soc_RequestRemovalSocialNote (void)
Lay_ShowAlert (Lay_WARNING,Txt_Do_you_really_want_to_remove_the_following_comment);
/* Show social note */
Soc_WriteSocialNote (&SocPub,&SocNot,true,false,NULL);
Soc_WriteSocialNote (&SocPub,&SocNot,true,false);
/***** Form to ask for confirmation to remove this social post *****/
/* Start form */