diff --git a/swad_changelog.h b/swad_changelog.h index ff18a3f7f..a31caf84f 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -355,10 +355,11 @@ En OpenSWAD: ps2pdf source.ps destination.pdf */ -#define Log_PLATFORM_VERSION "SWAD 18.2.7 (2018-10-09)" +#define Log_PLATFORM_VERSION "SWAD 18.2.8 (2018-10-09)" #define CSS_FILE "swad18.2.2.css" #define JS_FILE "swad17.17.1.js" /* + Version 18.2.8: Oct 09, 2018 Changes in edition of user's photo. (234889 lines) Version 18.2.7: Oct 09, 2018 Changes in edition of preferences about privacy. (234872 lines) Version 18.2.6: Oct 09, 2018 Changes in edition of preferences about privacy. (234905 lines) Version 18.2.5: Oct 08, 2018 Changes in edition of user's shared record card. (234943 lines) diff --git a/swad_photo.c b/swad_photo.c index 202a314b1..da0ebe02b 100644 --- a/swad_photo.c +++ b/swad_photo.c @@ -282,7 +282,7 @@ static void Pho_ReqOtherUsrPhoto (void) Pho_ReqPhoto (&Gbl.Usrs.Other.UsrDat); /***** Show another user's record card *****/ - Rec_ShowSharedUsrRecord (Rec_SHA_RECORD_PUBLIC,&Gbl.Usrs.Other.UsrDat,NULL); + Rec_ShowPublicSharedRecordOtherUsr (); } /*****************************************************************************/ @@ -409,7 +409,7 @@ void Pho_RecOtherUsrPhotoDetFaces (void) Pho_ReqPhoto (&Gbl.Usrs.Other.UsrDat); // Request user's photograph again /***** Show another user's record card *****/ - Rec_ShowSharedUsrRecord (Rec_SHA_RECORD_PUBLIC,&Gbl.Usrs.Other.UsrDat,NULL); + Rec_ShowPublicSharedRecordOtherUsr (); } else Ale_ShowAlert (Ale_WARNING,Txt_User_not_found_or_you_do_not_have_permission_); @@ -442,6 +442,9 @@ void Pho_ReqRemoveMyPhoto (void) } else Ale_ShowAlert (Ale_INFO,Txt_The_photo_no_longer_exists); + + /***** Show my record and other data *****/ + Rec_ShowMySharedRecordAndOtherData (); } /*****************************************************************************/ @@ -461,6 +464,9 @@ void Pho_RemoveMyPhoto2 (void) { /***** Write success / warning message *****/ Ale_ShowPendingAlert (); + + /***** Show my record and other data *****/ + Rec_ShowMySharedRecordAndOtherData (); } /*****************************************************************************/ @@ -524,6 +530,9 @@ void Pho_ReqRemoveUsrPhoto (void) } else Ale_ShowAlert (Ale_WARNING,Txt_User_not_found_or_you_do_not_have_permission_); + + /***** Show another user's record card *****/ + Rec_ShowPublicSharedRecordOtherUsr (); } /*****************************************************************************/ @@ -546,6 +555,9 @@ void Pho_RemoveUsrPhoto (void) } else Ale_ShowAlert (Ale_WARNING,Txt_User_not_found_or_you_do_not_have_permission_); + + /***** Show another user's record card *****/ + Rec_ShowPublicSharedRecordOtherUsr (); } /*****************************************************************************/ @@ -848,7 +860,7 @@ void Pho_UpdateUsrPhoto2 (void) Pho_UpdatePhoto2 (); /***** Show another user's record card *****/ - Rec_ShowSharedUsrRecord (Rec_SHA_RECORD_PUBLIC,&Gbl.Usrs.Other.UsrDat,NULL); + Rec_ShowPublicSharedRecordOtherUsr (); } /*****************************************************************************/ diff --git a/swad_record.c b/swad_record.c index c19750d0b..da9d71af3 100644 --- a/swad_record.c +++ b/swad_record.c @@ -2171,6 +2171,15 @@ void Rec_ShowSharedRecordUnmodifiable (struct UsrData *UsrDat) fprintf (Gbl.F.Out,""); } +/*****************************************************************************/ +/************** Show public shared record card of another user ***************/ +/*****************************************************************************/ + +void Rec_ShowPublicSharedRecordOtherUsr (void) + { + Rec_ShowSharedUsrRecord (Rec_SHA_RECORD_PUBLIC,&Gbl.Usrs.Other.UsrDat,NULL); + } + /*****************************************************************************/ /************************** Show shared record card **************************/ /*****************************************************************************/ diff --git a/swad_record.h b/swad_record.h index cc6d3513e..0787a333d 100644 --- a/swad_record.h +++ b/swad_record.h @@ -163,6 +163,7 @@ void Rec_ShowFormSignUpInCrsWithMySharedRecord (void); void Rec_ShowFormOtherNewSharedRecord (struct UsrData *UsrDat,Rol_Role_t DefaultRole); void Rec_ShowMySharedRecordUpd (void); void Rec_ShowSharedRecordUnmodifiable (struct UsrData *UsrDat); +void Rec_ShowPublicSharedRecordOtherUsr (void); void Rec_ShowSharedUsrRecord (Rec_SharedRecordViewType_t TypeOfView, struct UsrData *UsrDat,const char *Anchor); void Rec_PutParamUsrCodEncrypted (void);