diff --git a/swad_changelog.h b/swad_changelog.h index 6b3ccb1b7..0b7e2a5ca 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -134,13 +134,14 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 15.151.2 (2016-03-19)" +#define Log_PLATFORM_VERSION "SWAD 15.151.3 (2016-03-19)" #define CSS_FILE "swad15.150.2.css" #define JS_FILE "swad15.131.3.js" // 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 15.151.3: Mar 19, 2016 Icon to edit mail domains integrated in frame. (195934 lines) Version 15.151.2: Mar 19, 2016 Changes in layout of groups. (195935 lines) Version 15.151.1: Mar 18, 2016 Changes in layout of groups. (195929 lines) Version 15.151: Mar 18, 2016 Changes in layout of header class photo. (195930 lines) diff --git a/swad_group.c b/swad_group.c index b0b594db1..7222e44d7 100644 --- a/swad_group.c +++ b/swad_group.c @@ -1153,7 +1153,7 @@ static void Grp_ListGroupTypesForEdition (void) Act_FormStart (ActRenGrpTyp); Grp_PutParamGrpTypCod (Gbl.CurrentCrs.Grps.GrpTypes.LstGrpTypes[NumGrpTyp].GrpTypCod); fprintf (Gbl.F.Out,"", MAX_LENGTH_GROUP_TYPE_NAME, Gbl.CurrentCrs.Grps.GrpTypes.LstGrpTypes[NumGrpTyp].GrpTypName, @@ -2079,7 +2079,7 @@ static void Grp_PutFormToCreateGroupType (void) /***** Name of group type *****/ fprintf (Gbl.F.Out,"" "" + " size=\"12\" maxlength=\"%u\" value=\"%s\" />" "", MAX_LENGTH_GROUP_TYPE_NAME,Gbl.CurrentCrs.Grps.GrpTyp.GrpTypName); diff --git a/swad_mail.c b/swad_mail.c index 8b398cf6d..b3aaf1eb1 100644 --- a/swad_mail.c +++ b/swad_mail.c @@ -65,7 +65,7 @@ extern struct Act_Actions Act_Actions[Act_NUM_ACTIONS]; /*****************************************************************************/ static void Mai_GetParamMaiOrderType (void); -static void Mai_PutFormToEditMailDomains (void); +static void Mai_PutIconToEditMailDomains (void); static void Mai_GetListMailDomainsAllowedForNotif (void); static void Mai_ListMailDomainsForEdition (void); static void Mai_PutParamMaiCod (long MaiCod); @@ -98,13 +98,12 @@ void Mai_SeeMailDomains (void) /***** Get list of mail domains *****/ Mai_GetListMailDomainsAllowedForNotif (); - /***** Put link (form) to edit mail domains *****/ - if (Gbl.Usrs.Me.LoggedRole == Rol_SYS_ADM) - Mai_PutFormToEditMailDomains (); - /***** Table head *****/ - Lay_StartRoundFrameTable (NULL,2,Txt_Mail_domains_allowed_for_notifications); - fprintf (Gbl.F.Out,""); + Lay_StartRoundFrame (NULL,Txt_Mail_domains_allowed_for_notifications, + Gbl.Usrs.Me.LoggedRole == Rol_SYS_ADM ? Mai_PutIconToEditMailDomains : + NULL); + fprintf (Gbl.F.Out,"" + ""); for (Order = Mai_ORDER_BY_DOMAIN; Order <= Mai_ORDER_BY_USERS; Order++) @@ -145,7 +144,8 @@ void Mai_SeeMailDomains (void) Gbl.Mails.Lst[NumMai].NumUsrs); /***** Table end *****/ - Lay_EndRoundFrameTable (); + fprintf (Gbl.F.Out,"
"); + Lay_EndRoundFrame (); /***** Free list of mail domains *****/ Mai_FreeListMailDomains (); @@ -168,17 +168,14 @@ static void Mai_GetParamMaiOrderType (void) } /*****************************************************************************/ -/******************** Put a mail (form) to edit mail domains *****************/ +/************************ Put icon to edit mail domains **********************/ /*****************************************************************************/ -static void Mai_PutFormToEditMailDomains (void) +static void Mai_PutIconToEditMailDomains (void) { extern const char *Txt_Edit; - fprintf (Gbl.F.Out,"
"); - Lay_PutContextualLink (ActEdiMai,NULL,"edit64x64.png", - Txt_Edit,Txt_Edit); - fprintf (Gbl.F.Out,"
"); + Lay_PutContextualLink (ActEdiMai,NULL,"edit64x64.png",Txt_Edit,NULL); } /*****************************************************************************/