Version 18.31.5

This commit is contained in:
Antonio Cañas Vargas 2019-01-11 12:47:02 +01:00
parent 5249780dfd
commit 3e5c96f4ff
2 changed files with 20 additions and 26 deletions

View File

@ -346,8 +346,6 @@ Buenos d
// TODO: Un administrador de centro ahora no tiene permisos para editar horario asignatura, pero le sale el icono de editar
// O le damos permisos o quitamos el icono de editar. Comprobar para admin. de titulaciones.
// TODO: Fix bug: un usuario no identificado no debería ver el icono para acceder a sus asignaturas en la opción de buscar.
/*****************************************************************************/
/****************************** Public constants *****************************/
/*****************************************************************************/
@ -367,10 +365,11 @@ En OpenSWAD:
ps2pdf source.ps destination.pdf
*/
#define Log_PLATFORM_VERSION "SWAD 18.31.4 (2019-01-11)"
#define Log_PLATFORM_VERSION "SWAD 18.31.5 (2019-01-11)"
#define CSS_FILE "swad18.31.css"
#define JS_FILE "swad17.17.1.js"
/*
Version 18.31.5: Jan 11, 2019 Fixed bug in link to my courses. (239583 lines)
Version 18.31.4: Jan 11, 2019 Option for last clicks is moved to analytics tab. (239587 lines)
Version 18.31.3: Jan 11, 2019 Changes in some icons. (239533 lines)
Copy the following icons to icon public directory:

View File

@ -2990,26 +2990,20 @@ void Crs_PutIconToSelectMyCoursesInBreadcrumb (void)
if (Gbl.Usrs.Me.Logged) // I am logged
{
/***** Fill the list with the courses I belong to, if not filled *****/
Usr_GetMyCourses ();
/***** Start form *****/
Frm_StartForm (ActMyCrs);
if (Gbl.Usrs.Me.MyCrss.Num) // I am enrolled in at least one course
{
/***** Start form *****/
Frm_StartForm (ActMyCrs);
/***** Put icon with link *****/
Frm_LinkFormSubmit (Txt_My_courses,NULL,NULL);
fprintf (Gbl.F.Out,"<img src=\"%s/sitemap.svg\""
" alt=\"%s\" title=\"%s\""
" class=\"BC_ICON ICO_HIGHLIGHT\" />"
"</a>",
Gbl.Prefs.URLTheme,
Txt_My_courses,Txt_My_courses);
/***** Put icon with link *****/
Frm_LinkFormSubmit (Txt_My_courses,NULL,NULL);
fprintf (Gbl.F.Out,"<img src=\"%s/sitemap.svg\""
" alt=\"%s\" title=\"%s\""
" class=\"BC_ICON ICO_HIGHLIGHT\" />"
"</a>",
Gbl.Prefs.URLTheme,
Txt_My_courses,Txt_My_courses);
/***** End form *****/
Frm_EndForm ();
}
/***** End form *****/
Frm_EndForm ();
}
}
@ -3021,11 +3015,12 @@ void Crs_PutIconToSelectMyCourses (void)
{
extern const char *Txt_My_courses;
/***** Put form to search / select courses *****/
Lay_PutContextualLink (ActMyCrs,NULL,NULL,
"sitemap.svg",
Txt_My_courses,NULL,
NULL);
if (Gbl.Usrs.Me.Logged) // I am logged
/***** Put icon with link *****/
Lay_PutContextualLink (ActMyCrs,NULL,NULL,
"sitemap.svg",
Txt_My_courses,NULL,
NULL);
}
/*****************************************************************************/