From 307f4e581320456d06b8114c70aeca08a70fb356 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Sun, 26 Mar 2017 16:47:02 +0200 Subject: [PATCH] Version 16.168.1 --- swad_action.c | 10 +++++----- swad_changelog.h | 3 ++- swad_degree.c | 3 +++ swad_degree_type.c | 14 ++++++++++++++ swad_degree_type.h | 1 + 5 files changed, 25 insertions(+), 6 deletions(-) diff --git a/swad_action.c b/swad_action.c index dd91585b..35df6c07 100644 --- a/swad_action.c +++ b/swad_action.c @@ -100,11 +100,11 @@ System: 12. ActSeePen List pending institutions, centres, degrees and courses 13. ActReqRemOldCrs Request the total removal of old courses 14. ActSeeDegTyp List types of degrees - 16. ActSeeBan See banners - 17. ActSeeLnk See institutional links - 18. ActLstPlg List plugins - 19. ActSetUp Initial set up - 20. ActSeeCalSys Show the academic calendar + 15. ActSeeBan See banners + 16. ActSeeLnk See institutional links + 17. ActLstPlg List plugins + 18. ActSetUp Initial set up + 19. ActSeeCalSys Show the academic calendar 21. ActSysSch Search for courses, teachers, documents... 22. ActEdiDegTyp Request edition of types of degrees diff --git a/swad_changelog.h b/swad_changelog.h index 9e75c62f..88bddd4f 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -211,13 +211,14 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 16.168 (2017-03-26)" +#define Log_PLATFORM_VERSION "SWAD 16.168.1 (2017-03-26)" #define CSS_FILE "swad16.166.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.168.1: Mar 26, 2017 Link to view degree types in degrees. (217694 lines) Version 16.168: Mar 26, 2017 Action to view places removed from main menu. (217679 lines) Version 16.167.16:Mar 26, 2017 Link to view places in centres. (217718 lines) Version 16.167.15:Mar 26, 2017 Code refactoring in enrollment. (217694 lines) diff --git a/swad_degree.c b/swad_degree.c index b6b4b3bf..e0a0bd83 100644 --- a/swad_degree.c +++ b/swad_degree.c @@ -1247,6 +1247,9 @@ static void Deg_PutIconsListDegrees (void) if (Deg_CheckIfICanCreateDegrees ()) Deg_PutIconToEditDegrees (); + /***** Put icon to view degree types *****/ + DT_PutIconToViewDegreeTypes (); + /***** Put icon to show a figure *****/ Gbl.Stat.FigureType = Sta_HIERARCHY; Sta_PutIconToShowFigure (); diff --git a/swad_degree_type.c b/swad_degree_type.c index 71ca4342..dcc715d2 100644 --- a/swad_degree_type.c +++ b/swad_degree_type.c @@ -84,6 +84,20 @@ static unsigned DT_CountNumDegsOfType (long DegTypCod); static void DT_RemoveDegreeTypeCompletely (long DegTypCod); static bool DT_CheckIfDegreeTypeNameExists (const char *DegTypName,long DegTypCod); +/*****************************************************************************/ +/******************* Put link (form) to view degree types ********************/ +/*****************************************************************************/ + +void DT_PutIconToViewDegreeTypes (void) + { + extern const char *Txt_Types_of_degree; + + Lay_PutContextualLink (ActSeeDegTyp,NULL, + "hierarchy64x64.png", + Txt_Types_of_degree,NULL, + NULL); + } + /*****************************************************************************/ /************** Show selector of degree types for statistics *****************/ /*****************************************************************************/ diff --git a/swad_degree_type.h b/swad_degree_type.h index 36ee60ec..2b153948 100644 --- a/swad_degree_type.h +++ b/swad_degree_type.h @@ -58,6 +58,7 @@ typedef enum /***************************** Public prototypes *****************************/ /*****************************************************************************/ +void DT_PutIconToViewDegreeTypes (void); void DT_WriteSelectorDegreeTypes (void); void DT_SeeDegreeTypesInSysTab (void);