diff --git a/swad_changelog.h b/swad_changelog.h index cf5f44083..3a71836f9 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -156,13 +156,14 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 16.52 (2016-11-12)" +#define Log_PLATFORM_VERSION "SWAD 16.53 (2016-11-13)" #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.53: Nov 13, 2016 Contextual help on surveys. (206681 lines) Version 16.52: Nov 12, 2016 Code refactoring in frames to include contextual help. (206653 lines) Version 16.51: Nov 12, 2016 Contextual help on the top right corner of frames. (206606 lines) Copy icon/help64x64.png to icon directory diff --git a/swad_help.c b/swad_help.c index 517023efa..cf57d2a20 100644 --- a/swad_help.c +++ b/swad_help.c @@ -37,6 +37,15 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ +const char *Hlp_STATS_Surveys = + "https://github.com/acanas/swad-core/wiki/STATS.Surveys"; +const char *Hlp_STATS_Surveys_new_survey = + "https://github.com/acanas/swad-core/wiki/STATS.Surveys#new-survey"; +const char *Hlp_STATS_Surveys_edit_survey = + "https://github.com/acanas/swad-core/wiki/STATS.Surveys#edit-survey"; +const char *Hlp_STATS_Surveys_questions = + "https://github.com/acanas/swad-core/wiki/STATS.Surveys#questions"; + /*****************************************************************************/ /***************************** Private constants *****************************/ /*****************************************************************************/ diff --git a/swad_survey.c b/swad_survey.c index 2543f088a..3de294171 100644 --- a/swad_survey.c +++ b/swad_survey.c @@ -183,6 +183,7 @@ void Svy_SeeAllSurveys (void) static void Svy_ListAllSurveys (struct SurveyQuestion *SvyQst) { + extern const char *Hlp_STATS_Surveys; extern const char *Txt_Surveys; extern const char *Txt_ASG_ATT_OR_SVY_HELP_ORDER[2]; extern const char *Txt_ASG_ATT_OR_SVY_ORDER[2]; @@ -211,7 +212,8 @@ static void Svy_ListAllSurveys (struct SurveyQuestion *SvyQst) Pag_WriteLinksToPagesCentered (Pag_SURVEYS,0,&Pagination); /***** Start frame *****/ - Lay_StartRoundFrame ("100%",Txt_Surveys,Svy_PutIconsListSurveys,NULL); + Lay_StartRoundFrame ("100%",Txt_Surveys, + Svy_PutIconsListSurveys,Hlp_STATS_Surveys); /***** Select whether show only my groups or all groups *****/ if (Gbl.CurrentCrs.Grps.NumGrps) @@ -401,6 +403,7 @@ void Svy_SeeOneSurvey (void) static void Svy_ShowOneSurvey (long SvyCod,struct SurveyQuestion *SvyQst, bool ShowOnlyThisSvyComplete) { + extern const char *Hlp_STATS_Surveys; extern const char *Txt_Survey; extern const char *Txt_Today; extern const char *Txt_View_survey; @@ -421,12 +424,16 @@ static void Svy_ShowOneSurvey (long SvyCod,struct SurveyQuestion *SvyQst, /***** Start frame *****/ if (ShowOnlyThisSvyComplete) - Lay_StartRoundFrameTable (NULL,2,Txt_Survey); + Lay_StartRoundFrame (NULL,Txt_Survey,NULL,Hlp_STATS_Surveys); /***** Get data of this survey *****/ Svy.SvyCod = SvyCod; Svy_GetDataOfSurveyByCod (&Svy); + /***** Start table *****/ + if (ShowOnlyThisSvyComplete) + fprintf (Gbl.F.Out,"
" " | "
" |