mirror of
https://github.com/acanas/swad-core.git
synced 2024-06-10 10:45:23 +02:00
Version 16.254.1
This commit is contained in:
parent
0190be8851
commit
63f7241899
|
@ -257,6 +257,10 @@
|
||||||
// Number of lines (includes comments but not blank lines) has been got with the following command:
|
// 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
|
// nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*?.h sql/swad*.sql | tail -1
|
||||||
/*
|
/*
|
||||||
|
Version 16.254.1: Sep 12, 2017 Icon to start playing a game. (227122 lines)
|
||||||
|
Copy the following icon to icon public directory:
|
||||||
|
sudo cp icon/play64x64.png /var/www/html/swad/icon/
|
||||||
|
|
||||||
Version 16.254: Sep 12, 2017 Action to start playing a game. (227113 lines)
|
Version 16.254: Sep 12, 2017 Action to start playing a game. (227113 lines)
|
||||||
1 change necessary in database:
|
1 change necessary in database:
|
||||||
INSERT INTO actions (ActCod,Language,Obsolete,Txt) VALUES ('1670','es','N','Bajar posición pregunta juego');
|
INSERT INTO actions (ActCod,Language,Obsolete,Txt) VALUES ('1670','es','N','Bajar posición pregunta juego');
|
||||||
|
|
17
swad_game.c
17
swad_game.c
|
@ -798,26 +798,33 @@ void Gam_PutHiddenParamGameOrder (void)
|
||||||
static void Gam_PutFormsToRemEditOneGame (long GamCod,bool Visible)
|
static void Gam_PutFormsToRemEditOneGame (long GamCod,bool Visible)
|
||||||
{
|
{
|
||||||
extern const char *Txt_Reset;
|
extern const char *Txt_Reset;
|
||||||
|
extern const char *Txt_Play;
|
||||||
|
|
||||||
Gbl.Games.CurrentGamCod = GamCod; // Used as parameter in contextual links
|
Gbl.Games.CurrentGamCod = GamCod; // Used as parameter in contextual links
|
||||||
|
|
||||||
/***** Put form to remove game *****/
|
/***** Put icon to remove game *****/
|
||||||
Ico_PutContextualIconToRemove (ActReqRemGam,Gam_PutParams);
|
Ico_PutContextualIconToRemove (ActReqRemGam,Gam_PutParams);
|
||||||
|
|
||||||
/***** Put form to reset game *****/
|
/***** Put icon to reset game *****/
|
||||||
Lay_PutContextualLink (ActReqRstGam,NULL,Gam_PutParams,
|
Lay_PutContextualLink (ActReqRstGam,NULL,Gam_PutParams,
|
||||||
"recycle64x64.png",
|
"recycle64x64.png",
|
||||||
Txt_Reset,NULL,
|
Txt_Reset,NULL,
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
/***** Put form to hide/show game *****/
|
/***** Put icon to hide/show game *****/
|
||||||
if (Visible)
|
if (Visible)
|
||||||
Ico_PutContextualIconToHide (ActHidGam,Gam_PutParams);
|
Ico_PutContextualIconToHide (ActHidGam,Gam_PutParams);
|
||||||
else
|
else
|
||||||
Ico_PutContextualIconToUnhide (ActShoGam,Gam_PutParams);
|
Ico_PutContextualIconToUnhide (ActShoGam,Gam_PutParams);
|
||||||
|
|
||||||
/***** Put form to edit game *****/
|
/***** Put icon to edit game *****/
|
||||||
Ico_PutContextualIconToEdit (ActEdiOneGam,Gam_PutParams);
|
Ico_PutContextualIconToEdit (ActEdiOneGam,Gam_PutParams);
|
||||||
|
|
||||||
|
/***** Put icon to play game *****/
|
||||||
|
Lay_PutContextualLink (ActPlyGam,NULL,Gam_PutParams,
|
||||||
|
"play64x64.png",
|
||||||
|
Txt_Play,NULL,
|
||||||
|
NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -2898,7 +2905,7 @@ static void Gam_ListOneOrMoreQuestionsForEdition (struct Game *Game,
|
||||||
fprintf (Gbl.F.Out,"<tr>"
|
fprintf (Gbl.F.Out,"<tr>"
|
||||||
"<td class=\"BT%u\">",Gbl.RowEvenOdd);
|
"<td class=\"BT%u\">",Gbl.RowEvenOdd);
|
||||||
|
|
||||||
/* Write icon to remove the question */
|
/* Put icon to remove the question */
|
||||||
Act_FormStart (ActReqRemGamQst);
|
Act_FormStart (ActReqRemGamQst);
|
||||||
Gam_PutParamGameCod (Game->GamCod);
|
Gam_PutParamGameCod (Game->GamCod);
|
||||||
Gam_PutParamQstCod (QstCod);
|
Gam_PutParamQstCod (QstCod);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user