From 27ea34c3b2db6eae431249aea9652f17158d5f96 Mon Sep 17 00:00:00 2001 From: acanas Date: Fri, 21 Apr 2023 08:38:06 +0200 Subject: [PATCH] Version 22.101.11:Apr 21, 2023 Changes in edition of centers and places. --- swad_center.c | 13 ------------- swad_center.h | 2 -- swad_changelog.h | 3 ++- swad_place.c | 6 ------ swad_timetable.c | 3 ++- 5 files changed, 4 insertions(+), 23 deletions(-) diff --git a/swad_center.c b/swad_center.c index 74b14e8d..388e4659 100644 --- a/swad_center.c +++ b/swad_center.c @@ -293,9 +293,6 @@ static void Ctr_PutIconsListingCenters (__attribute__((unused)) void *Args) if (Hie_CheckIfICanEdit ()) Ctr_PutIconToEditCenters (); - /***** Put icon to view places *****/ - Plc_PutIconToViewPlaces (); - /***** Put icon to show a figure *****/ Fig_PutIconToShowFigure (Fig_HIERARCHY); } @@ -475,20 +472,10 @@ static void Ctr_PutIconsEditingCenters (__attribute__((unused)) void *Args) Ico_PutContextualIconToView (ActSeeCtr,NULL, NULL,NULL); - /***** Put icon to view places *****/ - Plc_PutIconToViewPlaces (); - /***** Put icon to show a figure *****/ Fig_PutIconToShowFigure (Fig_HIERARCHY); } -void Ctr_PutIconToViewCenters (void) - { - Lay_PutContextualLinkOnlyIcon (ActSeeCtr,NULL, - NULL,NULL, - "building.svg",Ico_BLACK); - } - /*****************************************************************************/ /************ Get basic list of centers ordered by name of center ************/ /*****************************************************************************/ diff --git a/swad_center.h b/swad_center.h index 1e73e16f..847af2b0 100644 --- a/swad_center.h +++ b/swad_center.h @@ -86,8 +86,6 @@ void Ctr_DrawCenterLogoAndNameWithLink (struct Ctr_Center *Ctr,Act_Action_t Acti void Ctr_ShowCtrsOfCurrentIns (void); void Ctr_EditCenters (void); -void Ctr_PutIconToViewCenters (void); - void Ctr_GetBasicListOfCenters (long InsCod); void Ctr_GetFullListOfCenters (long InsCod,Ctr_Order_t SelectedOrder); bool Ctr_GetCenterDataByCod (struct Ctr_Center *Ctr); diff --git a/swad_changelog.h b/swad_changelog.h index d0668d75..70bd7fe4 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -629,10 +629,11 @@ TODO: Emilce Barrera Mesa: Podr TODO: Emilce Barrera Mesa: Mis estudiantes presentan muchas dificultades a la hora de poner la foto porque la plataforma es muy exigente respecto al fondo de la imagen. */ -#define Log_PLATFORM_VERSION "SWAD 22.101.10 (2023-04-21)" +#define Log_PLATFORM_VERSION "SWAD 22.101.11 (2023-04-21)" #define CSS_FILE "swad22.95.css" #define JS_FILE "swad22.49.js" /* + Version 22.101.11:Apr 21, 2023 Changes in edition of centers and places. (337289 lines) Version 22.101.10:Apr 21, 2023 Changes in course information. (337302 lines) Version 22.101.9: Apr 21, 2023 Changes in edition of countries, links, banners, institutions, centers, places, degrees, degree types, buildings, rooms and courses. (337313 lines) Version 22.101.8: Apr 20, 2023 Changes in edition of rubrics, degree types and departments. (337350 lines) diff --git a/swad_place.c b/swad_place.c index 237ec986..9c36a6b4 100644 --- a/swad_place.c +++ b/swad_place.c @@ -252,9 +252,6 @@ static void Plc_PutIconsListingPlaces (__attribute__((unused)) void *Args) /***** Put icon to edit places *****/ if (Plc_ICanEditPlaces[Gbl.Usrs.Me.Role.Logged]) Plc_PutIconToEditPlaces (); - - /***** Put icon to view centers *****/ - Ctr_PutIconToViewCenters (); } /*****************************************************************************/ @@ -323,9 +320,6 @@ static void Plc_PutIconsEditingPlaces (__attribute__((unused)) void *Args) /***** Put icon to view places *****/ Ico_PutContextualIconToView (ActSeePlc,NULL, NULL,NULL); - - /***** Put icon to view centers *****/ - Ctr_PutIconToViewCenters (); } /*****************************************************************************/ diff --git a/swad_timetable.c b/swad_timetable.c index f582f2e9..d1d14f8b 100644 --- a/swad_timetable.c +++ b/swad_timetable.c @@ -349,7 +349,8 @@ void Tmt_ShowClassTimeTable (void) Gbl.Usrs.Me.Role.Logged >= Rol_TCH); Timetable.ContextualIcons.PutIconEditOfficeHours = (Timetable.Type == Tmt_MY_TIMETABLE && !PrintView && - (Gbl.Usrs.Me.Role.Available & (1 << Rol_TCH))); + (Gbl.Usrs.Me.Role.Available & (1 << Rol_TCH | + 1 << Rol_NET))); Timetable.ContextualIcons.PutIconPrint = !PrintView; /***** Get whether to show only my groups or all groups *****/