Version19.79.1

This commit is contained in:
Antonio Cañas Vargas 2019-11-27 22:15:10 +01:00
parent 83f9250c25
commit eee03877e0
2 changed files with 6 additions and 2 deletions

View File

@ -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;

View File

@ -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 ();