From 57a7ebe54b9fd291349e9831dd8b21f488216b28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Wed, 6 Mar 2019 20:35:00 +0100 Subject: [PATCH] Version18.66.3 --- css/{swad18.66.css => swad18.66.3.css} | 1 + swad_changelog.h | 5 ++- swad_profile.c | 54 +++++++++++++------------- 3 files changed, 31 insertions(+), 29 deletions(-) rename css/{swad18.66.css => swad18.66.3.css} (99%) diff --git a/css/swad18.66.css b/css/swad18.66.3.css similarity index 99% rename from css/swad18.66.css rename to css/swad18.66.3.css index 7bb49086a..5785e699b 100644 --- a/css/swad18.66.css +++ b/css/swad18.66.3.css @@ -3387,6 +3387,7 @@ a.PAG:hover, .PAG_CUR } .FOLLOW_USR_ICO { + text-align:left; padding:4px; } diff --git a/swad_changelog.h b/swad_changelog.h index 2500b4dbb..cbe4ca442 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -428,10 +428,11 @@ En OpenSWAD: ps2pdf source.ps destination.pdf */ -#define Log_PLATFORM_VERSION "SWAD 18.66.2 (2019-03-06)" -#define CSS_FILE "swad18.66.css" +#define Log_PLATFORM_VERSION "SWAD 18.66.3 (2019-03-06)" +#define CSS_FILE "swad18.66.3.css" #define JS_FILE "swad18.64.js" /* + Version 18.66.3: Mar 06, 2019 Changed order of figures in user's profile. (238674 lines) Version 18.66.2: Mar 06, 2019 Fixed bug while sending a new password, reported by Rosa María Cantarero López. (238672 lines) Version 18.66.1: Mar 06, 2019 Changed order of figures in user's profile. (238671 lines) Version 18.66: Mar 06, 2019 Number of social posts is added as a new column in users' ranking. diff --git a/swad_profile.c b/swad_profile.c index d07e9c385..27a3ce2ec 100644 --- a/swad_profile.c +++ b/swad_profile.c @@ -538,33 +538,6 @@ void Prf_ShowDetailsUserProfile (const struct UsrData *UsrDat) Prf_PutLinkCalculateFigures (UsrDat->EncryptedUsrCod); fprintf (Gbl.F.Out,""); - /***** Number of social publications *****/ - fprintf (Gbl.F.Out,"
  • ", - Txt_Timeline, - Gbl.Prefs.URLIcons); - if (UsrFigures.NumSocPub >= 0) - { - fprintf (Gbl.F.Out,"%ld %s ", - UsrFigures.NumSocPub, - (UsrFigures.NumSocPub == 1) ? Txt_SOCIAL_post : - Txt_SOCIAL_posts); - Prf_ShowRanking (Prf_GetRankingFigure (UsrDat->UsrCod,"NumSocPub"), - Prf_GetNumUsrsWithFigure ("NumSocPub")); - if (UsrFigures.NumDays > 0) - { - fprintf (Gbl.F.Out," ("); - Str_WriteFloatNum (Gbl.F.Out, - (float) UsrFigures.NumSocPub / - (float) UsrFigures.NumDays); - fprintf (Gbl.F.Out,"/%s)",Txt_day); - } - } - else // Number of social publications is unknown - /***** Button to fetch and store user's figures *****/ - Prf_PutLinkCalculateFigures (UsrDat->EncryptedUsrCod); - fprintf (Gbl.F.Out,"
  • "); - /***** Number of file views *****/ fprintf (Gbl.F.Out,"
  • ", @@ -592,6 +565,33 @@ void Prf_ShowDetailsUserProfile (const struct UsrData *UsrDat) Prf_PutLinkCalculateFigures (UsrDat->EncryptedUsrCod); fprintf (Gbl.F.Out,"
  • "); + /***** Number of social publications *****/ + fprintf (Gbl.F.Out,"
  • ", + Txt_Timeline, + Gbl.Prefs.URLIcons); + if (UsrFigures.NumSocPub >= 0) + { + fprintf (Gbl.F.Out,"%ld %s ", + UsrFigures.NumSocPub, + (UsrFigures.NumSocPub == 1) ? Txt_SOCIAL_post : + Txt_SOCIAL_posts); + Prf_ShowRanking (Prf_GetRankingFigure (UsrDat->UsrCod,"NumSocPub"), + Prf_GetNumUsrsWithFigure ("NumSocPub")); + if (UsrFigures.NumDays > 0) + { + fprintf (Gbl.F.Out," ("); + Str_WriteFloatNum (Gbl.F.Out, + (float) UsrFigures.NumSocPub / + (float) UsrFigures.NumDays); + fprintf (Gbl.F.Out,"/%s)",Txt_day); + } + } + else // Number of social publications is unknown + /***** Button to fetch and store user's figures *****/ + Prf_PutLinkCalculateFigures (UsrDat->EncryptedUsrCod); + fprintf (Gbl.F.Out,"
  • "); + /***** Number of posts in forums *****/ fprintf (Gbl.F.Out,"
  • ",