diff --git a/css/swad16.50.2.css b/css/swad16.51.css similarity index 99% rename from css/swad16.50.2.css rename to css/swad16.51.css index a4443340e..62b0d8c5d 100644 --- a/css/swad16.50.2.css +++ b/css/swad16.51.css @@ -1339,8 +1339,18 @@ a:hover /* Default ==> underlined */ } .FRAME_ICONS { - display:table; + box-sizing:border-box; height:20px; + text-align:left; + } +.FRAME_ICONS_LEFT + { + display:inline-block; + } +.FRAME_ICONS_RIGHT + { + display:inline-block; + float:right; } .FRAME_TABLE { diff --git a/icon/help64x64.png b/icon/help64x64.png new file mode 100644 index 000000000..dc28e557e Binary files /dev/null and b/icon/help64x64.png differ diff --git a/swad_changelog.h b/swad_changelog.h index 18d28a2e4..b15621fac 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -156,13 +156,16 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 16.50.2 (2016-11-12)" -#define CSS_FILE "swad16.50.2.css" +#define Log_PLATFORM_VERSION "SWAD 16.51 (2016-11-12)" +#define CSS_FILE "swad16.51.css" #define JS_FILE "swad16.46.1.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.51: Nov 12, 2016 Contextual help on the top right corner of frames. (206606 lines) +Copy icon/help64x64.png to icon directory + Version 16.50.2: Nov 12, 2016 Changes in layout of record cards. (206556 lines) Version 16.50.1: Nov 12, 2016 Minor corrections in some messages. (206559 lines) Version 16.50: Nov 10, 2016 My frequent actions are moved from PROFILE tab to STATS tab. diff --git a/swad_layout.c b/swad_layout.c index 7f87cd5c7..670bb25a6 100644 --- a/swad_layout.c +++ b/swad_layout.c @@ -1236,7 +1236,8 @@ void Lay_WriteTitle (const char *Title) /*****************************************************************************/ // CellPadding must be 0, 1, 2, 4 or 8 -void Lay_StartRoundFrameTable (const char *Width,unsigned CellPadding,const char *Title) +void Lay_StartRoundFrameTable (const char *Width,unsigned CellPadding, + const char *Title) { Lay_StartRoundFrame (Width,Title,NULL); @@ -1246,8 +1247,11 @@ void Lay_StartRoundFrameTable (const char *Width,unsigned CellPadding,const char fprintf (Gbl.F.Out,"\">"); } -void Lay_StartRoundFrame (const char *Width,const char *Title,void (*FunctionToDrawContextualIcons) (void)) +void Lay_StartRoundFrame (const char *Width,const char *Title, + void (*FunctionToDrawContextualIcons) (void)) { + extern const char *Txt_Help; + fprintf (Gbl.F.Out,"
" "
"); if (FunctionToDrawContextualIcons) + { + fprintf (Gbl.F.Out,"
"); FunctionToDrawContextualIcons (); + fprintf (Gbl.F.Out,"
"); + } + // if (HelpLink) + // { + fprintf (Gbl.F.Out,""); + // } fprintf (Gbl.F.Out,"
"); if (Title) diff --git a/swad_layout.h b/swad_layout.h index 48a0211b7..1b5808284 100644 --- a/swad_layout.h +++ b/swad_layout.h @@ -94,8 +94,10 @@ void Lay_PutConfirmButtonInline (const char *Text); void Lay_PutRemoveButton (const char *Text); void Lay_PutRemoveButtonInline (const char *Text); -void Lay_StartRoundFrameTable (const char *Width,unsigned CellPadding,const char *Title); -void Lay_StartRoundFrame (const char *Width,const char *Title,void (*FunctionToDrawContextualIcons) (void)); +void Lay_StartRoundFrameTable (const char *Width,unsigned CellPadding, + const char *Title); +void Lay_StartRoundFrame (const char *Width,const char *Title, + void (*FunctionToDrawContextualIcons) (void)); void Lay_StartRoundFrameTableShadow (const char *Width,unsigned CellPadding); void Lay_EndRoundFrameTable (void); void Lay_EndRoundFrame (void); diff --git a/swad_text.c b/swad_text.c index 2b65057e9..c3a7f1ec1 100644 --- a/swad_text.c +++ b/swad_text.c @@ -13762,6 +13762,27 @@ const char *Txt_Happy_birthday = "Feliz aniversário!"; #endif +const char *Txt_Help = +#if L==1 + "Ajuda"; +#elif L==2 + "Hilfe"; +#elif L==3 + "Help"; +#elif L==4 + "Ayuda"; +#elif L==5 + "Aide"; +#elif L==6 + "Pytyvõ"; +#elif L==7 + "Aiuto"; +#elif L==8 + "Pomoc"; +#elif L==9 + "Ajuda"; +#endif + const char *Txt_HELP_email = #if L==1 "Exemple: garcia@exemplemail.com";