Version 15.250.5

This commit is contained in:
Antonio Cañas Vargas 2016-09-11 14:37:35 +02:00
parent 95764c5db3
commit 18e4c3bb05
3 changed files with 23 additions and 4 deletions

View File

@ -135,13 +135,14 @@
/****************************** Public constants *****************************/
/*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 15.250.4 (2016-09-11)"
#define Log_PLATFORM_VERSION "SWAD 15.250.5 (2016-09-11)"
#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 15.250.5: Sep 11, 2016 Number of clicks in user's usage report. (204189 lines)
Version 15.250.4: Sep 11, 2016 Time of first click in user's usage report. (204171 lines)
Version 15.250.3: Sep 11, 2016 Number of puslished files in user's usage report. (? lines)
Version 15.250.2: Sep 11, 2016 Record card replaced by raw user's data in user's usage report. (204100 lines)

View File

@ -455,11 +455,11 @@ void Prf_ShowDetailsUserProfile (const struct UsrData *UsrDat)
Prf_PutLinkToUpdateAction (ActCal1stClkTim,UsrDat->EncryptedUsrCod);
fprintf (Gbl.F.Out,"</li>");
/***** End of right list *****/
/***** End of left list *****/
fprintf (Gbl.F.Out,"</ul>"
"</div>");
/***** Start left list *****/
/***** Start right list *****/
fprintf (Gbl.F.Out,"<div class=\"PRF_FIG_RIGHT_CONTAINER\">"
"<ul class=\"PRF_FIG_UL DAT_NOBR_N\">");

View File

@ -93,6 +93,7 @@ static void Rep_ShowOrPrintMyUsageReport (Rep_SeeOrPrint_t SeeOrPrint)
extern const char *Txt_From_TIME;
extern const char *Txt_day;
extern const char *Txt_days;
extern const char *Txt_Clicks;
extern const char *Txt_Files_uploaded;
extern const char *Txt_file;
extern const char *Txt_files;
@ -173,7 +174,24 @@ static void Rep_ShowOrPrintMyUsageReport (Rep_SeeOrPrint_t SeeOrPrint)
Txt_days);
}
}
else
else // Time of first click is unknown
fprintf (Gbl.F.Out,"?");
fprintf (Gbl.F.Out,"</li>");
/***** Number of clicks *****/
fprintf (Gbl.F.Out,"<li>%s: ",Txt_Clicks);
if (UsrFigures.NumClicks >= 0)
{
fprintf (Gbl.F.Out,"%ld",UsrFigures.NumClicks);
if (UsrFigures.NumDays > 0)
{
fprintf (Gbl.F.Out," (");
Str_WriteFloatNum ((float) UsrFigures.NumClicks /
(float) UsrFigures.NumDays);
fprintf (Gbl.F.Out,"/%s)",Txt_day);
}
}
else // Number of clicks is unknown
fprintf (Gbl.F.Out,"?");
fprintf (Gbl.F.Out,"</li>");