diff --git a/swad_changelog.h b/swad_changelog.h index 4de4e5baf..9061e89ae 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -156,13 +156,14 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 16.47.17 (2016-11-07)" +#define Log_PLATFORM_VERSION "SWAD 16.47.18 (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.18: Nov 07, 2016 Icon in "who to follow" to show figure (statistics). (206350 lines) 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) diff --git a/swad_follow.c b/swad_follow.c index 6bff79677..6280a292d 100644 --- a/swad_follow.c +++ b/swad_follow.c @@ -66,6 +66,7 @@ extern struct Globals Gbl; /***************************** Private prototypes ****************************/ /*****************************************************************************/ +static void Fol_PutIconsWhoToFollow (void); static void Fol_PutIconToUpdateWhoToFollow (void); static void Fol_ShowNumberOfFollowingOrFollowers (const struct UsrData *UsrDat, @@ -223,7 +224,7 @@ void Fol_SuggestWhoToFollow (void) if (NumUsrs) { /***** Start frame *****/ - Lay_StartRoundFrame ("560px",Txt_Who_to_follow,Fol_PutIconToUpdateWhoToFollow); + Lay_StartRoundFrame ("560px",Txt_Who_to_follow,Fol_PutIconsWhoToFollow); /***** Initialize structure with user's data *****/ Usr_UsrDataConstructor (&UsrDat); @@ -267,6 +268,20 @@ void Fol_SuggestWhoToFollow (void) DB_FreeMySQLResult (&mysql_res); } +/*****************************************************************************/ +/****************** Put contextual icons in "who to follow" ******************/ +/*****************************************************************************/ + +static void Fol_PutIconsWhoToFollow (void) + { + /***** Put icon to update who to follow *****/ + Fol_PutIconToUpdateWhoToFollow (); + + /***** Put icon to show a figure *****/ + Gbl.Stat.FigureType = Sta_FOLLOW; + Sta_PutIconToShowFigure (); + } + /*****************************************************************************/ /********************* Put icon to update who to follow **********************/ /*****************************************************************************/