diff --git a/swad_changelog.h b/swad_changelog.h index 192ee06b0..b1ef861ee 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -103,12 +103,13 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 14.90.3 (2015/03/13)" +#define Log_PLATFORM_VERSION "SWAD 14.90.4 (2015/03/13)" // 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 14.90.3: Mar 13, 2015 Fixed bug in connected users when the scope is a country. (? lines) + Version 14.90.4: Mar 13, 2015 Changes in layout of public user profile. (181885 lines) + Version 14.90.3: Mar 13, 2015 Fixed bug in connected users when the scope is a country. (181884 lines) Version 14.90.2: Mar 13, 2015 Fixed minor bug in layout of user's figures. (181831 lines) Version 14.90.1: Mar 13, 2015 Fixed bug in form used to upload files. (181827 lines) Version 14.90: Mar 13, 2015 Animated gif icon when calculating user's figures. diff --git a/swad_user.c b/swad_user.c index 42a4a93e1..8bd7df7a9 100644 --- a/swad_user.c +++ b/swad_user.c @@ -7601,15 +7601,15 @@ void Usr_ShowDetailsUserProfile (const struct UsrData *UsrDat) extern const char *Txt_Clicks; extern const char *Txt_of_PART_OF_A_TOTAL; extern const char *Txt_clicks; + extern const char *Txt_Files; + extern const char *Txt_files; + extern const char *Txt_public_FILES; extern const char *Txt_Forums; extern const char *Txt_post; extern const char *Txt_posts; extern const char *Txt_Messages; extern const char *Txt_message; extern const char *Txt_messages; - extern const char *Txt_Files; - extern const char *Txt_files; - extern const char *Txt_public_FILES; struct UsrFigures UsrFigures; unsigned NumCrssUsrIsTeacher; unsigned NumCrssUsrIsStudent; @@ -7767,6 +7767,28 @@ void Usr_ShowDetailsUserProfile (const struct UsrData *UsrDat) fprintf (Gbl.F.Out,"" ""); + /***** Number of files published *****/ + if ((NumFiles = Brw_GetNumFilesUsr (UsrDat->UsrCod))) + NumPublicFiles = Brw_GetNumPublicFilesUsr (UsrDat->UsrCod); + else + NumPublicFiles = 0; + fprintf (Gbl.F.Out,"" + "" + "%s" + "" + "" + "%u %s
" + "%u %s" + "" + "" + "", + The_ClassFormul[Gbl.Prefs.Theme], + Txt_Files, + NumFiles,Txt_files, + NumPublicFiles,Txt_public_FILES); + /***** Number of posts in forums *****/ fprintf (Gbl.F.Out,"" "" ""); - /***** Number of files published *****/ - if ((NumFiles = Brw_GetNumFilesUsr (UsrDat->UsrCod))) - NumPublicFiles = Brw_GetNumPublicFilesUsr (UsrDat->UsrCod); - else - NumPublicFiles = 0; - fprintf (Gbl.F.Out,"" - "" - "%s" - "" - "" - "%u %s
" - "%u %s" - "" - "" - "", - The_ClassFormul[Gbl.Prefs.Theme], - Txt_Files, - NumFiles,Txt_files, - NumPublicFiles,Txt_public_FILES); - /***** End of table *****/ fprintf (Gbl.F.Out,""); }