diff --git a/swad_changelog.h b/swad_changelog.h index 9f67c9184..a0a9627ed 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -209,13 +209,14 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 16.164.4 (2017-03-24)" +#define Log_PLATFORM_VERSION "SWAD 16.164.5 (2017-03-24)" #define CSS_FILE "swad16.161.css" #define JS_FILE "swad16.144.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 16.164.5: Mar 24, 2017 Link in notifications to allowed mail domains. (217632 lines) Version 16.164.4: Mar 24, 2017 Link to figures in types of degree. (217604 lines) Version 16.164.3: Mar 24, 2017 Fixed bug in types of degree. Types of degree in system tab restricted to system admins only. (217579 lines) diff --git a/swad_notification.c b/swad_notification.c index 669c9576c..af20fe787 100644 --- a/swad_notification.c +++ b/swad_notification.c @@ -289,6 +289,8 @@ void Ntf_ShowMyNotifications (void) extern const char *Hlp_MESSAGES_Notifications; extern const char *Txt_Change_preferences; extern const char *Txt_Preferences; + extern const char *Txt_Email_domains_allowed_for_notifications; + extern const char *Txt_Domains; extern const char *Txt_Mark_all_notifications_as_read; extern const char *Txt_Mark_all_NOTIFICATIONS_as_read; extern const char *Txt_Notifications; @@ -367,6 +369,12 @@ void Ntf_ShowMyNotifications (void) Txt_Change_preferences,Txt_Preferences, NULL); + /* Put form to view allowed mail domains */ + Lay_PutContextualLink (ActSeeMai,NULL, + "msg64x64.gif", + Txt_Email_domains_allowed_for_notifications,Txt_Domains, + NULL); + fprintf (Gbl.F.Out,""); /***** Start frame *****/ diff --git a/swad_text.c b/swad_text.c index 467588cb3..3b45af828 100644 --- a/swad_text.c +++ b/swad_text.c @@ -9870,6 +9870,27 @@ const char *Txt_documents_management_area = "zona de gestão de documentos"; #endif +const char *Txt_Domains = +#if L==1 + "Dominis"; +#elif L==2 + "Domänen"; +#elif L==3 + "Domains"; +#elif L==4 + "Dominios"; +#elif L==5 + "Domaines"; +#elif L==6 + "Dominios"; // Okoteve traducción +#elif L==7 + "Campi"; +#elif L==8 + "Domen"; +#elif L==9 + "Domínios"; +#endif + const char *Txt_Done = #if L==1 "Fet";