Version 17.27.1

This commit is contained in:
Antonio Cañas Vargas 2017-12-20 19:01:49 +01:00
parent 519c03cad0
commit 38e7617d2c
2 changed files with 34 additions and 11 deletions

View File

@ -297,7 +297,7 @@ Gracias
/****************************** Public constants *****************************/ /****************************** Public constants *****************************/
/*****************************************************************************/ /*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 17.27 (2017-12-19)" #define Log_PLATFORM_VERSION "SWAD 17.27.1 (2017-12-20)"
#define CSS_FILE "swad17.25.4.css" #define CSS_FILE "swad17.25.4.css"
#define JS_FILE "swad17.17.1.js" #define JS_FILE "swad17.17.1.js"
@ -313,6 +313,7 @@ En OpenSWAD:
ps2pdf source.ps destination.pdf ps2pdf source.ps destination.pdf
*/ */
/* /*
Version 17.27.1: Dec 20, 2017 Changes in icon to play game. (234484 lines)
Version 17.27: Dec 19, 2017 Statistics tab is renamed as Analytics. (234464 lines) Version 17.27: Dec 19, 2017 Statistics tab is renamed as Analytics. (234464 lines)
Copy the following icons to icon public directory: Copy the following icons to icon public directory:
sudo cp icon/iconset/awesome/action64x64/ana64x64.gif /var/www/html/swad/icon/iconset/awesome/action64x64/ sudo cp icon/iconset/awesome/action64x64/ana64x64.gif /var/www/html/swad/icon/iconset/awesome/action64x64/

View File

@ -96,7 +96,9 @@ static void Gam_WriteAuthor (struct Game *Game);
static void Gam_WriteStatus (struct Game *Game); static void Gam_WriteStatus (struct Game *Game);
static void Gam_GetParamGameOrder (void); static void Gam_GetParamGameOrder (void);
static void Gam_PutFormsToRemEditOneGame (long GamCod,bool Visible); static void Gam_PutFormsToRemEditOneGame (long GamCod,bool Visible,
bool ShowOnlyThisGame);
static void Gam_PutParamsToPlayGame1stQst (void);
static void Gam_PutParams (void); static void Gam_PutParams (void);
static void Gam_SetAllowedAndHiddenScopes (unsigned *ScopesAllowed, static void Gam_SetAllowedAndHiddenScopes (unsigned *ScopesAllowed,
@ -459,7 +461,8 @@ static void Gam_ShowOneGame (long GamCod,
fprintf (Gbl.F.Out," COLOR%u",Gbl.RowEvenOdd); fprintf (Gbl.F.Out," COLOR%u",Gbl.RowEvenOdd);
fprintf (Gbl.F.Out,"\">"); fprintf (Gbl.F.Out,"\">");
if (Game.Status.ICanEdit) if (Game.Status.ICanEdit)
Gam_PutFormsToRemEditOneGame (Game.GamCod,Game.Status.Visible); Gam_PutFormsToRemEditOneGame (Game.GamCod,Game.Status.Visible,
ShowOnlyThisGame);
fprintf (Gbl.F.Out,"</td>"); fprintf (Gbl.F.Out,"</td>");
/* Start date/time */ /* Start date/time */
@ -808,7 +811,8 @@ void Gam_PutHiddenParamGameOrder (void)
/******************** Put a link (form) to edit one game *********************/ /******************** Put a link (form) to edit one game *********************/
/*****************************************************************************/ /*****************************************************************************/
static void Gam_PutFormsToRemEditOneGame (long GamCod,bool Visible) static void Gam_PutFormsToRemEditOneGame (long GamCod,bool Visible,
bool ShowOnlyThisGame)
{ {
extern const char *Txt_Reset; extern const char *Txt_Reset;
extern const char *Txt_Play; extern const char *Txt_Play;
@ -833,6 +837,13 @@ static void Gam_PutFormsToRemEditOneGame (long GamCod,bool Visible)
/***** Put icon to edit game *****/ /***** Put icon to edit game *****/
Ico_PutContextualIconToEdit (ActEdiOneGam,Gam_PutParams); Ico_PutContextualIconToEdit (ActEdiOneGam,Gam_PutParams);
if (ShowOnlyThisGame)
/***** Put icon to show first question *****/
Lay_PutContextualLink (ActPlyGam1stQst,NULL,Gam_PutParamsToPlayGame1stQst,
"play64x64.png",
Txt_Play,NULL,
NULL);
else
/***** Put icon to play game *****/ /***** Put icon to play game *****/
Lay_PutContextualLink (ActPlyGam,NULL,Gam_PutParams, Lay_PutContextualLink (ActPlyGam,NULL,Gam_PutParams,
"play64x64.png", "play64x64.png",
@ -841,13 +852,24 @@ static void Gam_PutFormsToRemEditOneGame (long GamCod,bool Visible)
} }
/*****************************************************************************/ /*****************************************************************************/
/********************** Params used to edit a game *************************/ /************* Params used to play the first question of a game **************/
/*****************************************************************************/
static void Gam_PutParamsToPlayGame1stQst (void)
{
Gam_PutParams ();
Gam_PutParamQstInd (0); // Start by first question in game
}
/*****************************************************************************/
/******************** Params used to edit/play a game ************************/
/*****************************************************************************/ /*****************************************************************************/
static void Gam_PutParams (void) static void Gam_PutParams (void)
{ {
if (Gbl.Games.CurrentGamCod > 0) if (Gbl.Games.CurrentGamCod > 0)
Gam_PutParamGameCod (Gbl.Games.CurrentGamCod); Gam_PutParamGameCod (Gbl.Games.CurrentGamCod);
Att_PutHiddenParamAttOrder (); Att_PutHiddenParamAttOrder ();
Grp_PutParamWhichGrps (); Grp_PutParamWhichGrps ();
Pag_PutHiddenParamPagNum (Pag_GAMES,Gbl.Games.CurrentPage); Pag_PutHiddenParamPagNum (Pag_GAMES,Gbl.Games.CurrentPage);