From 4dc2044a9e6d085ec4473cf5e3cc705d6bb9b2cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Sun, 2 Oct 2016 22:54:30 +0200 Subject: [PATCH] Version 16.7 --- swad_changelog.h | 3 +- swad_config.h | 4 +++ swad_report.c | 76 +++++++++++++++++++++++++++++------------- swad_text.c | 87 +++++++++++++++++++++++++++++++++++++++++------- 4 files changed, 133 insertions(+), 37 deletions(-) diff --git a/swad_changelog.h b/swad_changelog.h index a1b5057a0..7f5b07b32 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -143,13 +143,14 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 16.6.3 (2016-10-02)" +#define Log_PLATFORM_VERSION "SWAD 16.7 (2016-10-02)" #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.7: Oct 02, 2016 Improvements user's usage report. (205645 lines) Version 16.6.3: Oct 02, 2016 Current time in user's usage report. (205559 lines) Version 16.6.2: Oct 02, 2016 Message translated. (205456 lines) Version 16.6.1: Oct 02, 2016 Message translated. (205454 lines) diff --git a/swad_config.h b/swad_config.h index d7486e877..10104e049 100644 --- a/swad_config.h +++ b/swad_config.h @@ -51,6 +51,7 @@ #define Cfg_PLATFORM_SHORT_NAME "SWAD local" #define Cfg_PLATFORM_FULL_NAME "SWAD (Shared Workspace At a Distance)" #define Cfg_PLATFORM_SERVER "localhost" // Server name (main part of the URL) +#define Cfg_URL_SWAD_SERVER "https://localhost/swad/" // With ending slash #define Cfg_URL_SWAD_CGI "https://localhost/swad" // Without ending slash #define Cfg_URL_SWAD_PUBLIC "https://localhost/swad" // Without ending slash #define Cfg_PATH_CGI_BIN "/usr/lib/cgi-bin/swad" // Directory for this CGI and other commands called by it @@ -99,6 +100,7 @@ #define Cfg_PLATFORM_SHORT_NAME "OpenSWAD" #define Cfg_PLATFORM_FULL_NAME "OpenSWAD (Open Shared Workspace At a Distance)" #define Cfg_PLATFORM_SERVER "openswad.org" // Server name (main part of the URL) +#define Cfg_URL_SWAD_SERVER "https://openswad.org/" // With ending slash #define Cfg_URL_SWAD_CGI "https://openswad.org" // Without ending slash #define Cfg_URL_SWAD_PUBLIC "https://openswad.org/swad" // Without ending slash #define Cfg_PATH_CGI_BIN "/var/www/cgi-bin/swad" // Directory for this CGI and other commands called by it @@ -164,6 +166,7 @@ #define Cfg_PLATFORM_SHORT_NAME "SWAD" #define Cfg_PLATFORM_FULL_NAME "SWAD (Shared Workspace At a Distance)" #define Cfg_PLATFORM_SERVER "swad.ugr.es" // Server name (main part of the URL) +#define Cfg_URL_SWAD_SERVER "https://swad.ugr.es/" // With ending slash #define Cfg_URL_SWAD_CGI "https://swad.ugr.es" // Without ending slash #define Cfg_URL_SWAD_PUBLIC "https://swad.ugr.es/swad" // Without ending slash #define Cfg_PATH_CGI_BIN "/var/www/cgi-bin" // Directory for this CGI and other commands called by it @@ -234,6 +237,7 @@ #define Cfg_PLATFORM_SHORT_NAME "SWADberry" #define Cfg_PLATFORM_FULL_NAME "SWADberry (Shared Workspace At a Distance on a Raspberry Pi)" #define Cfg_PLATFORM_SERVER "swadberry.ugr.es" // Server name (main part of the URL) +#define Cfg_URL_SWAD_SERVER "https://swadberry.ugr.es/" // With ending slash #define Cfg_URL_SWAD_CGI "https://swadberry.ugr.es" // Without ending slash #define Cfg_URL_SWAD_PUBLIC "https://swadberry.ugr.es/swad" // Without ending slash #define Cfg_PATH_CGI_BIN "/usr/lib/cgi-bin/swad" // Directory for this CGI and other commands called by it diff --git a/swad_report.c b/swad_report.c index ea4bfbd9f..4f22cc3c1 100644 --- a/swad_report.c +++ b/swad_report.c @@ -42,7 +42,7 @@ /***************************** Private constants *****************************/ /*****************************************************************************/ -#define Rep_MAX_BAR_WIDTH 90 // Maximum width of graphic bar +#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 @@ -120,13 +120,17 @@ void Rep_PrintMyUsageReport (void) static void Rep_ShowOrPrintMyUsageReport (Rep_SeeOrPrint_t SeeOrPrint) { - extern const char *Txt_Report_of_use_of_the_platform; + extern const char *Txt_Report; + extern const char *Txt_Report_of_use_of_PLATFORM; + extern const char *Txt_Teaching_platform; + extern const char *Txt_Name; + extern const char *Txt_TAGLINE; extern const char *Txt_Personal_information; - extern const char *Txt_User[Usr_NUM_SEXS]; extern const char *Txt_ID; extern const char *Txt_Email; extern const char *Txt_Country; extern const char *Txt_Institution; + extern const char *Txt_URL; extern const char *Txt_Figures; extern const char *Txt_TIME_Since; extern const char *Txt_TIME_until; @@ -147,6 +151,7 @@ static void Rep_ShowOrPrintMyUsageReport (Rep_SeeOrPrint_t SeeOrPrint) extern const char *Txt_message; extern const char *Txt_messages; extern const char *Txt_Courses; + extern const char *Txt_historical_log; extern const char *Txt_Hits; char BrowserTimeZone[Dat_MAX_BYTES_TIME_ZONE+1]; unsigned NumID; @@ -189,28 +194,50 @@ static void Rep_ShowOrPrintMyUsageReport (Rep_SeeOrPrint_t SeeOrPrint) /***** Start frame *****/ if (SeeOrPrint == Rep_SEE) - Lay_StartRoundFrame (NULL,Txt_Report_of_use_of_the_platform, + Lay_StartRoundFrame (NULL,Txt_Report, Rep_PutIconToPrintMyUsageReport); - fprintf (Gbl.F.Out,"
"); /***** Head *****/ - fprintf (Gbl.F.Out,"

%s

",Txt_Report_of_use_of_the_platform); - fprintf (Gbl.F.Out,"

%s",Gbl.Usrs.Me.UsrDat.FullName); + sprintf (Gbl.Title,Txt_Report_of_use_of_PLATFORM,Cfg_PLATFORM_SHORT_NAME); + fprintf (Gbl.F.Out,"
" + "

%s

" + "

%s", + Gbl.Title, + Gbl.Usrs.Me.UsrDat.FullName); if (StrCurrentDate[0]) fprintf (Gbl.F.Out,", %s",StrCurrentDate); - fprintf (Gbl.F.Out,"

"); + fprintf (Gbl.F.Out,"

" + "
"); + + fprintf (Gbl.F.Out,"
"); + + /***** Platform *****/ + fprintf (Gbl.F.Out,"

%s

" + ""); /***** Personal information *****/ fprintf (Gbl.F.Out,"

%s

" "