From a6e78a8a1438d15ea670effd6539711573e8cbcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Tue, 5 Mar 2019 15:06:41 +0100 Subject: [PATCH] Version 18.64.6 --- swad_action.c | 2 -- swad_changelog.h | 3 ++- swad_profile.c | 47 +++++++++++++++++++++++++++++---------- swad_report.c | 5 ++++- swad_text.c | 57 +++++++++++++++++++++++++++++++++--------------- swad_user.c | 17 ++++++++++----- 6 files changed, 93 insertions(+), 38 deletions(-) diff --git a/swad_action.c b/swad_action.c index 2be9426d2..0cf3b1e01 100644 --- a/swad_action.c +++ b/swad_action.c @@ -1636,9 +1636,7 @@ struct Act_Actions Act_Actions[Act_NUM_ACTIONS] = /* ActRemSocComGbl */{1508,-1,TabUnk,ActSeeSocPrf ,0x3F8,0x3C6,0x3C6,0x3C6,0x3C6,0x3C6,0x3C6,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Soc_RemoveSocialComUsr ,NULL}, /* ActSeeOthPubPrf */{1402,-1,TabUnk,ActSeeSocPrf ,0x3F8,0x3C7,0x3C7,0x3C7,0x3C7,0x3C7,0x3C7,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Prf_GetUsrDatAndShowUserProfile,NULL}, - /* ActCalFig */{1405,-1,TabUnk,ActSeeSocPrf ,0x3F8,0x3C7,0x3C7,0x3C7,0x3C7,0x3C7,0x3C7,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Prf_CalculateFigures ,NULL}, -// /* ActCalNumMsgSnt */{1407,-1,TabUnk,ActSeeSocPrf ,0x3F8,0x3C7,0x3C7,0x3C7,0x3C7,0x3C7,0x3C7,Act_CONT_NORM,Act_BRW_1ST_TAB,NULL ,Prf_CalculateFigures ,NULL}, /* ActFolUsr */{1410,-1,TabUnk,ActSeeSocPrf ,0x3F8,0x3C6,0x3C6,0x3C6,0x3C6,0x3C6,0x3C6,Act_CONT_NORM,Act_BRW_1ST_TAB,Fol_FollowUsr1 ,Fol_FollowUsr2 ,NULL}, /* ActUnfUsr */{1411,-1,TabUnk,ActSeeSocPrf ,0x3F8,0x3C6,0x3C6,0x3C6,0x3C6,0x3C6,0x3C6,Act_CONT_NORM,Act_BRW_1ST_TAB,Fol_UnfollowUsr1 ,Fol_UnfollowUsr2 ,NULL}, diff --git a/swad_changelog.h b/swad_changelog.h index ff8e0f682..b4975b38e 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.64.5 (2019-03-05)" +#define Log_PLATFORM_VERSION "SWAD 18.64.6 (2019-03-05)" #define CSS_FILE "swad18.64.css" #define JS_FILE "swad18.64.js" /* + Version 18.64.6: Mar 05, 2019 Added non-editing teachers in user's figures. (238525 lines) Version 18.64.5: Mar 05, 2019 Changes writing floating point numbers. For load speed issues, the number of publications by default in the timeline becomes 20 again. The actions in buttons to calculate user's figures are merged in one. (238471 lines) diff --git a/swad_profile.c b/swad_profile.c index ce5e8d7fc..75912f313 100644 --- a/swad_profile.c +++ b/swad_profile.c @@ -353,6 +353,7 @@ void Prf_ShowDetailsUserProfile (const struct UsrData *UsrDat) extern const char *Txt_ROLES_SINGUL_Abc[Rol_NUM_ROLES][Usr_NUM_SEXS]; extern const char *Txt_courses_ABBREVIATION; extern const char *Txt_teachers_ABBREVIATION; + extern const char *Txt_non_editing_teachers_ABBREVIATION; extern const char *Txt_students_ABBREVIATION; extern const char *Txt_Files_uploaded; extern const char *Txt_file; @@ -375,8 +376,9 @@ void Prf_ShowDetailsUserProfile (const struct UsrData *UsrDat) extern const char *Txt_messages; bool UsrIsBannedFromRanking; struct UsrFigures UsrFigures; - unsigned NumCrssUsrIsTeacher; - unsigned NumCrssUsrIsStudent; + unsigned NumCrssUsrIsTch; + unsigned NumCrssUsrIsNET; + unsigned NumCrssUsrIsStd; unsigned NumFiles; unsigned NumPublicFiles; char IdFirstClickTime[Frm_MAX_BYTES_ID + 1]; @@ -386,35 +388,58 @@ void Prf_ShowDetailsUserProfile (const struct UsrData *UsrDat) "