diff --git a/swad_changelog.h b/swad_changelog.h index dd2ca4e2..72e861a7 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -116,13 +116,14 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 15.97.2 (2016-01-04)" +#define Log_PLATFORM_VERSION "SWAD 15.97.3 (2016-01-04)" #define CSS_FILE "swad15.97.css" #define JS_FILE "swad15.77.7.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 15.97.3: Jan 04, 2016 Link to user's privacy in my public profile. (190755 lines) Version 15.97.2: Jan 04, 2016 New option in user's privacy. (190743 lines) Version 15.97.1: Jan 04, 2016 User's timeline below user's profile visible only by logged users. (190719 lines) Version 15.97: Jan 04, 2016 Show list of some users who has shared a social note. (190718 lines) diff --git a/swad_network.c b/swad_network.c index c801a72a..711a7185 100644 --- a/swad_network.c +++ b/swad_network.c @@ -256,6 +256,19 @@ static void Net_ShowAWebOrSocialNet (const char *URL, Title,Title); } +/*****************************************************************************/ +/*********** Put a link to the action to edit my social networks *************/ +/*****************************************************************************/ + +void Net_PutLinkToChangeMySocialNetworks (void) + { + extern const char *Txt_Edit_my_webs_networks; + + /***** Link to edit my social networks *****/ + Lay_PutContextualLink (ActReqEdiMyNet,NULL,"earth64x64.gif", + Txt_Edit_my_webs_networks,Txt_Edit_my_webs_networks); + } + /*****************************************************************************/ /********************* Show form to edit my social networks ******************/ /*****************************************************************************/ diff --git a/swad_network.h b/swad_network.h index ae11feca..24dcaace 100644 --- a/swad_network.h +++ b/swad_network.h @@ -40,6 +40,8 @@ /*****************************************************************************/ void Net_ShowWebsAndSocialNets (const struct UsrData *UsrDat); + +void Net_PutLinkToChangeMySocialNetworks (void); void Net_ShowFormMyWebsAndSocialNets (void); void Net_UpdateMyWebsAndSocialNets (void); void Net_ShowWebAndSocialNetworksStats (void); diff --git a/swad_profile.c b/swad_profile.c index 5aa707a8..99e20912 100644 --- a/swad_profile.c +++ b/swad_profile.c @@ -31,6 +31,7 @@ #include "swad_database.h" #include "swad_follow.h" #include "swad_global.h" +#include "swad_network.h" #include "swad_nickname.h" #include "swad_parameter.h" #include "swad_privacy.h" @@ -236,6 +237,17 @@ bool Prf_ShowUserProfile (void) if (Pri_ShowIsAllowed (Gbl.Usrs.Other.UsrDat.ProfileVisibility, Gbl.Usrs.Other.UsrDat.UsrCod)) { + /***** Contextual links *****/ + if (Gbl.Usrs.Other.UsrDat.UsrCod == Gbl.Usrs.Me.UsrDat.UsrCod) // It's me + { + fprintf (Gbl.F.Out,"