Version 16.47.17

This commit is contained in:
Antonio Cañas Vargas 2016-11-07 10:40:27 +01:00
parent 2681831322
commit 3f08508651
2 changed files with 15 additions and 2 deletions

View File

@ -156,13 +156,14 @@
/****************************** Public constants *****************************/
/*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 16.47.16 (2016-11-07)"
#define Log_PLATFORM_VERSION "SWAD 16.47.17 (2016-11-07)"
#define CSS_FILE "swad16.32.1.css"
#define JS_FILE "swad16.46.1.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 16.47.17: Nov 07, 2016 Icon in public activity to show figure (statistics). (206337 lines)
Version 16.47.16: Nov 07, 2016 Icon in file browser to show figure (statistics). (206326 lines)
Version 16.47.15: Nov 07, 2016 Icon in file browser to show figure (statistics). (206313 lines)
Version 16.47.14: Nov 07, 2016 Icon in list of assignments to show figure (statistics). (206314 lines)

View File

@ -147,6 +147,7 @@ static void Soc_DropTemporaryTablesUsedToQueryTimeline (void);
static void Soc_ShowTimeline (const char *Query,const char *Title,
long NotCodToHighlight);
static void Soc_PutIconsTimeline (void);
static void Soc_InsertNewPubsInTimeline (const char *Query);
static void Soc_ShowOldPubsInTimeline (const char *Query);
@ -851,7 +852,7 @@ static void Soc_ShowTimeline (const char *Query,const char *Title,
NumPubsGot = DB_QuerySELECT (Query,&mysql_res,"can not get timeline");
/***** Start frame *****/
Lay_StartRoundFrame (Soc_WIDTH_TIMELINE,Title,NULL);
Lay_StartRoundFrame (Soc_WIDTH_TIMELINE,Title,Soc_PutIconsTimeline);
/***** Form to write a new post *****/
if (Gbl.Usrs.Other.UsrDat.UsrCod <= 0 || // Global timeline
@ -913,6 +914,17 @@ static void Soc_ShowTimeline (const char *Query,const char *Title,
Lay_EndRoundFrame ();
}
/*****************************************************************************/
/********************* Put contextual icons in timeline **********************/
/*****************************************************************************/
static void Soc_PutIconsTimeline (void)
{
/***** Put icon to show a figure *****/
Gbl.Stat.FigureType = Sta_SOCIAL_ACTIVITY;
Sta_PutIconToShowFigure ();
}
/*****************************************************************************/
/********** Show new social activity (new publishings in timeline) ***********/
/*****************************************************************************/