From 778f119c6107e214be01fc70fa95630a1f06df11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Mon, 3 Oct 2016 13:29:05 +0200 Subject: [PATCH] Version 16.8.1 --- swad_changelog.h | 3 ++- swad_report.c | 27 +++++++++++++++++---------- swad_text.c | 21 +++++++++++++++++++++ 3 files changed, 40 insertions(+), 11 deletions(-) diff --git a/swad_changelog.h b/swad_changelog.h index ce40847cb..1af85d941 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -143,13 +143,14 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 16.8 (2016-10-03)" +#define Log_PLATFORM_VERSION "SWAD 16.8.1 (2016-10-03)" #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.8.1: Oct 03, 2016 Do not show courses with a few clicks in user's usage report. (205747 lines) Version 16.8: Oct 03, 2016 New option to view user's usage report. (205720 lines) 1 change necessary in database: INSERT INTO actions (ActCod,Language,Obsolete,Txt) VALUES ('1586','es','N','Solicitar mi informe de uso'); diff --git a/swad_report.c b/swad_report.c index 7b395cf62..3fc1aad99 100644 --- a/swad_report.c +++ b/swad_report.c @@ -42,7 +42,9 @@ /***************************** Private constants *****************************/ /*****************************************************************************/ +#define Rep_MIN_CLICKS_CRS 100 // Minimum number of clicks to show a course in historic log #define Rep_MAX_BAR_WIDTH 80 // Maximum width of graphic bar + // #define Rep_BLOCK "═" // HTML code for a block in graphic bar // #define Rep_BLOCK "▒" // HTML code for a block in graphic bar // #define Rep_BLOCK "█" // HTML code for a block in graphic bar @@ -564,13 +566,16 @@ static void Rep_WriteSectionHistoricCourses (struct UsrFigures *UsrFigures, { extern const char *Txt_Courses; extern const char *Txt_historical_log; + extern const char *Txt_Only_courses_with_more_than_X_clicks_are_shown; Rol_Role_t Role; /***** Start of section *****/ fprintf (Gbl.F.Out,"
" - "

%s (%s)

" - "