mirror of https://github.com/acanas/swad-core.git
Version 15.250.6
This commit is contained in:
parent
18e4c3bb05
commit
e9c62c0fe6
|
@ -135,13 +135,14 @@
|
|||
/****************************** Public constants *****************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
#define Log_PLATFORM_VERSION "SWAD 15.250.5 (2016-09-11)"
|
||||
#define Log_PLATFORM_VERSION "SWAD 15.250.6 (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.6: Sep 11, 2016 Number of downloads in user's usage report. (204207 lines)
|
||||
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)
|
||||
|
|
|
@ -98,6 +98,7 @@ static void Rep_ShowOrPrintMyUsageReport (Rep_SeeOrPrint_t SeeOrPrint)
|
|||
extern const char *Txt_file;
|
||||
extern const char *Txt_files;
|
||||
extern const char *Txt_public_FILES;
|
||||
extern const char *Txt_Downloads;
|
||||
unsigned NumID;
|
||||
char CtyName[Cty_MAX_BYTES_COUNTRY_NAME+1];
|
||||
struct Institution Ins;
|
||||
|
@ -209,6 +210,23 @@ static void Rep_ShowOrPrintMyUsageReport (Rep_SeeOrPrint_t SeeOrPrint)
|
|||
Txt_files,
|
||||
NumPublicFiles,Txt_public_FILES);
|
||||
|
||||
/***** Number of file views *****/
|
||||
fprintf (Gbl.F.Out,"<li>%s: ",Txt_Downloads);
|
||||
if (UsrFigures.NumFileViews >= 0)
|
||||
{
|
||||
fprintf (Gbl.F.Out,"%ld",UsrFigures.NumFileViews);
|
||||
if (UsrFigures.NumDays > 0)
|
||||
{
|
||||
fprintf (Gbl.F.Out," (");
|
||||
Str_WriteFloatNum ((float) UsrFigures.NumFileViews /
|
||||
(float) UsrFigures.NumDays);
|
||||
fprintf (Gbl.F.Out,"/%s)",Txt_day);
|
||||
}
|
||||
}
|
||||
else // Number of file views is unknown
|
||||
fprintf (Gbl.F.Out,"?");
|
||||
fprintf (Gbl.F.Out,"</li>");
|
||||
|
||||
fprintf (Gbl.F.Out,"</ul>");
|
||||
|
||||
/***** Show details of user's profile *****/
|
||||
|
|
Loading…
Reference in New Issue