From eee03877e070b46bbb191c8f692ba3cdb001a34d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Wed, 27 Nov 2019 22:15:10 +0100 Subject: [PATCH] Version19.79.1 --- swad_changelog.h | 3 ++- swad_game.c | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/swad_changelog.h b/swad_changelog.h index e52013b59..b9c4be71a 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -490,7 +490,7 @@ enscript -2 --landscape --color --file-align=2 --highlight --line-numbers -o - * En OpenSWAD: ps2pdf source.ps destination.pdf */ -#define Log_PLATFORM_VERSION "SWAD 19.79 (2019-11-27)" +#define Log_PLATFORM_VERSION "SWAD 19.79.1 (2019-11-27)" #define CSS_FILE "swad19.78.1.css" #define JS_FILE "swad19.70.js" /* @@ -498,6 +498,7 @@ ps2pdf source.ps destination.pdf // TODO: Impedir la creación y edición de proyectos si no son editables. // TODO: En cada juego, poder listar los resultados en una tabla como la de resultados globales + Version 19.79.1: Nov 27, 2019 Maximum grade shown in listing of games. (247201 lines) Version 19.79: Nov 27, 2019 Storing maximum grade in a game into database. (247197 lines) 1 change necessary in database: ALTER TABLE gam_games DROP COLUMN NumNotif; diff --git a/swad_game.c b/swad_game.c index 611bcdfff..4101257e0 100644 --- a/swad_game.c +++ b/swad_game.c @@ -396,6 +396,7 @@ void Gam_ShowOneGame (long GamCod, extern const char *Hlp_ASSESSMENT_Games; extern const char *Txt_Game; extern const char *Txt_View_game; + extern const char *Txt_Maximum_grade; extern const char *Txt_No_of_questions; extern const char *Txt_Matches; char *Anchor = NULL; @@ -483,10 +484,12 @@ void Gam_ShowOneGame (long GamCod, Frm_EndForm (); HTM_ARTICLE_End (); - /* Number of questions */ + /* Number of questions and maximum grade */ HTM_DIV_Begin ("class=\"%s\"",Game.Hidden ? "ASG_GRP_LIGHT" : "ASG_GRP"); HTM_TxtF ("%s: %u",Txt_No_of_questions,Game.NumQsts); + HTM_BR (); + HTM_TxtF ("%s: %lg",Txt_Maximum_grade,Game.MaxGrade); HTM_DIV_End (); HTM_TD_End ();