diff --git a/swad_changelog.h b/swad_changelog.h index 2be2d1d3c..58ef58762 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -143,13 +143,14 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 16.13 (2016-10-04)" +#define Log_PLATFORM_VERSION "SWAD 16.13.1 (2016-10-04)" #define CSS_FILE "swad15.229.css" #define JS_FILE "swad15.238.1.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 16.13.1: Oct 04, 2016 Changes in user's usage report. (205906 lines) Version 16.13: Oct 04, 2016 New filename for user's usage report. (205883 lines) Version 16.12: Oct 04, 2016 Code refactoring in user's usage report. (205882 lines) Copy icon/report64x64.png to icon directory diff --git a/swad_report.c b/swad_report.c index 45ea2b1b7..7cdbea445 100644 --- a/swad_report.c +++ b/swad_report.c @@ -235,8 +235,9 @@ static void Rep_CreateMyUsageReport (struct CurrentTimeUTC *CurrentTimeUTC, /***** Start file *****/ Lay_StartHTMLFile (Gbl.F.Rep,FilenameReport); - fprintf (Gbl.F.Rep,"\n"); + fprintf (Gbl.F.Rep,"\n"); /***** Header *****/ Rep_WriteHeader (CurrentTimeUTC,Permalink); @@ -319,10 +320,24 @@ static void Rep_PutLinkToMyUsageReport (struct CurrentTimeUTC *CurrentTimeUTC, static void Req_TitleReport (struct CurrentTimeUTC *CurrentTimeUTC) { - fprintf (Gbl.F.Out,"
" - "%s",Gbl.Usrs.Me.UsrDat.FullName); - if (CurrentTimeUTC->StrDate[0]) - fprintf (Gbl.F.Out,"
%s",CurrentTimeUTC->StrDate); + extern const char *Txt_User[Usr_NUM_SEXS]; + extern const char *Txt_Date; + + fprintf (Gbl.F.Out,"
"); + + /***** User *****/ + fprintf (Gbl.F.Out,"%s: %s", + Txt_User[Gbl.Usrs.Me.UsrDat.Sex], + Gbl.Usrs.Me.UsrDat.FullName); + + fprintf (Gbl.F.Out,"
"); + + /***** Report date *****/ + fprintf (Gbl.F.Out,"%s: %s %s UTC", + Txt_Date, + CurrentTimeUTC->StrDate, + CurrentTimeUTC->StrTime); + fprintf (Gbl.F.Out,"
"); } @@ -396,12 +411,18 @@ static void Rep_WriteHeader (struct CurrentTimeUTC *CurrentTimeUTC, CurrentTimeUTC->StrTime); /***** Permalink *****/ - fprintf (Gbl.F.Rep,"
  • %s: %s
  • ", + fprintf (Gbl.F.Rep,"
  • %s: " + "" + "%s" + "" + "
  • ", Txt_Permalink, Permalink,Permalink); /***** End of header *****/ - fprintf (Gbl.F.Rep,"\n"); + fprintf (Gbl.F.Rep,"" + "\n"); } /*****************************************************************************/ @@ -417,7 +438,7 @@ static void Rep_WriteSectionPlatform (void) /***** Start of section *****/ fprintf (Gbl.F.Rep,"
    " - "

    %s

    " + "

    %s

    " "