Version 15.82.3

This commit is contained in:
Antonio Cañas Vargas 2015-12-30 00:58:25 +01:00
parent edb9bd2feb
commit b5bab4ff23
3 changed files with 21 additions and 1 deletions

BIN
icon/write64x64.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 460 B

View File

@ -116,13 +116,14 @@
/****************************** Public constants *****************************/
/*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 15.82.2 (2015-12-30)"
#define Log_PLATFORM_VERSION "SWAD 15.82.3 (2015-12-30)"
#define CSS_FILE "swad15.80.css"
#define JS_FILE "swad15.77.7.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.82.3: Dec 30, 2015 Contextual link to write a new social post. (189199 lines)
Version 15.82.2: Dec 30, 2015 Current timeline is displayed below the form to write a new social post. (189183 lines)
Version 15.82.1: Dec 29, 2015 Public social posts are displayed in timeline. (189176 lines)
Version 15.82: Dec 29, 2015 Public social post is received and stored in a new database table. (189136 lines)

View File

@ -106,6 +106,7 @@ extern struct Globals Gbl;
/***************************** Private prototypes ****************************/
/*****************************************************************************/
static void Soc_PutLinkToWriteANewPost (void);
static void Soc_GetAndWriteSocialPost (long PstCod);
static unsigned long Soc_ShowTimeline (const char *Query);
@ -116,6 +117,20 @@ static void Soc_StartFormGoToAction (Soc_SocialEvent_t SocialEvent,
static void Soc_GetEventSummary (Soc_SocialEvent_t SocialEvent,long Cod,
char *SummaryStr,unsigned MaxChars);
/*****************************************************************************/
/*********************** Show social activity (timeline) *********************/
/*****************************************************************************/
static void Soc_PutLinkToWriteANewPost (void)
{
extern const char *Txt_New_comment;
fprintf (Gbl.F.Out,"<div class=\"CONTEXT_MENU\">");
Lay_PutContextualLink (ActReqSocPst,NULL,"write64x64.gif",
Txt_New_comment,Txt_New_comment);
fprintf (Gbl.F.Out,"</div>");
}
/*****************************************************************************/
/****************** Form to write a new public comment ***********************/
/*****************************************************************************/
@ -242,6 +257,10 @@ void Soc_ShowFollowingTimeline (void)
{
char Query[512];
/***** Link to write a new social post *****/
if (Gbl.CurrentAct != ActReqSocPst)
Soc_PutLinkToWriteANewPost ();
/***** Show warning if I do not follow anyone *****/
if (!Fol_GetNumFollowing (Gbl.Usrs.Me.UsrDat.UsrCod))
Lay_ShowAlert (Lay_INFO,"Usted no sigue a ning&uacute;n usuario."); // Need translation!!!