diff --git a/css/swad16.209.3.css b/css/swad16.222.css similarity index 99% rename from css/swad16.209.3.css rename to css/swad16.222.css index 31b0c4302..bf72107de 100644 --- a/css/swad16.209.3.css +++ b/css/swad16.222.css @@ -1498,9 +1498,20 @@ a:hover /* Default ==> underlined */ border-radius:2px; box-shadow: 0 2px 2px 0 rgba(124,121,109,0.14), 0 2px 1px -2px rgba(124,121,109,0.2), 0 1px 5px 0 rgba(124,121,109,0.12); } +.ALERT_CLOSE + { + float:right; + margin:-8px -8px 8px 8px; + opacity:0.3; + } +.ALERT_CLOSE:hover + { + opacity:1; + } .ALERT_TXT { - padding:8px 8px 8px 40px; + box-sizing:border-box; + padding:8px 0 8px 40px; background-position:8px 8px; background-size:20px 20px; background-repeat:no-repeat; diff --git a/icon/close64x64.png b/icon/close64x64.png new file mode 100644 index 000000000..f4e4eb1af Binary files /dev/null and b/icon/close64x64.png differ diff --git a/swad_changelog.h b/swad_changelog.h index ebe0a3f4d..1751c70aa 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -233,13 +233,17 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 16.221.1 (2017-05-23)" -#define CSS_FILE "swad16.209.3.css" +#define Log_PLATFORM_VERSION "SWAD 16.222 (2017-05-23)" +#define CSS_FILE "swad16.222.css" #define JS_FILE "swad16.206.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 16.222: May 23, 2017 Alerts can be closed. (220313 lines) +Copy the following icon to icon public directory: +sudo cp -a icon/close64x64.png /var/www/html/swad/icon/ + Version 16.221.1: May 23, 2017 Fixed bugs related with new role. Fixed bug in surveys. Fixed bug in attendance events. (220260 lines) diff --git a/swad_photo.c b/swad_photo.c index a97a4fb5c..4c9157869 100644 --- a/swad_photo.c +++ b/swad_photo.c @@ -352,8 +352,11 @@ static void Pho_ReqPhoto (const struct UsrData *UsrDat,const char *PhotoURL) } /***** Show current photo and help message *****/ + fprintf (Gbl.F.Out,"

"); Pho_ShowUsrPhoto (UsrDat,PhotoURL, "PHOTO186x248",Pho_NO_ZOOM,false); + fprintf (Gbl.F.Out,"

"); + Ale_ShowAlert (Ale_INFO,Txt_You_can_send_a_file_with_an_image_in_JPEG_format_); /***** Form to upload photo *****/ diff --git a/swad_text.c b/swad_text.c index a8167d8a1..8eef69d89 100644 --- a/swad_text.c +++ b/swad_text.c @@ -4886,6 +4886,27 @@ const char *Txt_Clicks_per_day = "Cliques por dia"; #endif +const char *Txt_Close = +#if L==1 + "Tancar"; +#elif L==2 + "Schließen"; +#elif L==3 + "Close"; +#elif L==4 + "Cerrar"; +#elif L==5 + "Fermer"; +#elif L==6 + "Sẽ"; +#elif L==7 + "Chiudi"; +#elif L==8 + "Zamknij"; +#elif L==9 + "Fechar"; +#endif + const char *Txt_Closed_survey = #if L==1 "Enquesta tancada";