diff --git a/swad_changelog.h b/swad_changelog.h
index 1b9f9e433..12ddb7a5a 100644
--- a/swad_changelog.h
+++ b/swad_changelog.h
@@ -103,11 +103,12 @@
/****************************** Public constants *****************************/
/*****************************************************************************/
-#define Log_PLATFORM_VERSION "SWAD 14.102.4 (2015/03/25)"
+#define Log_PLATFORM_VERSION "SWAD 14.102.5 (2015/03/27)"
// 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 14.102.5: Mar 27, 2015 Changes in layout of log in. (183909 lines)
Version 14.102.4: Mar 25, 2015 Fixed bug in ranking. (183883 lines)
Version 14.102.3: Mar 25, 2015 Fixed bug in record. (183882 lines)
Version 14.102.2: Mar 25, 2015 Fixed bug in record. (183882 lines)
diff --git a/swad_layout.c b/swad_layout.c
index 823508cef..8864406a1 100644
--- a/swad_layout.c
+++ b/swad_layout.c
@@ -1545,7 +1545,7 @@ void Lay_PutLinkToPrintView2 (void)
/**************** Show advertisement about mobile version ********************/
/*****************************************************************************/
-#define Lay_SHOW_ADVERTISEMENT_ONE_TIME_OF_X 1 // n ==> show advertisement 1/n of the times
+#define Lay_SHOW_ADVERTISEMENT_ONE_TIME_OF_X 5 // n ==> show advertisement 1/n of the times
void Lay_AdvertisementMobile (void)
{
@@ -1553,6 +1553,8 @@ void Lay_AdvertisementMobile (void)
if (!(rand () % Lay_SHOW_ADVERTISEMENT_ONE_TIME_OF_X))
{
+ fprintf (Gbl.F.Out,"
");
+
+ /* Link to create a new account */
Act_FormStart (ActFrmUsrAcc);
sprintf (Gbl.Title,Txt_New_on_PLATFORM_Sign_up,Cfg_PLATFORM_SHORT_NAME);
Act_LinkFormSubmit (Gbl.Title,The_ClassFormul[Gbl.Prefs.Theme]);
Lay_PutSendIcon ("arroba",Txt_Create_account,Gbl.Title);
Act_FormEnd ();
- /***** Link to enter from external site *****/
+ /* Link to enter from external site */
if (Cfg_EXTERNAL_LOGIN_URL[0] &&
Cfg_EXTERNAL_LOGIN_SERVICE_SHORT_NAME[0])
{
@@ -1362,6 +1365,14 @@ void Usr_WriteFormLogin (void)
Cfg_EXTERNAL_LOGIN_SERVICE_SHORT_NAME);
Lay_PutSendIcon ("login",Gbl.Title,Gbl.Title);
}
+
+ /* Link to send a new password */
+ Act_FormStart (ActReqSndNewPwd);
+ Par_PutHiddenParamString ("UsrId",Gbl.Usrs.Me.UsrIdLogin);
+ Act_LinkFormSubmit (Txt_I_forgot_my_password,The_ClassFormul[Gbl.Prefs.Theme]);
+ Lay_PutSendIcon ("key",Txt_I_forgot_my_password,Txt_I_forgot_my_password);
+ Act_FormEnd ();
+
fprintf (Gbl.F.Out,"
");
/***** Form start *****/
@@ -1371,9 +1382,9 @@ void Usr_WriteFormLogin (void)
/***** User's ID/nickname and password *****/
fprintf (Gbl.F.Out,"