From 2fe1a780a60565c37a76b38d8a1885d356c7bb38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Mon, 30 May 2016 19:11:08 +0200 Subject: [PATCH] Version 15.212.4 --- swad_changelog.h | 6 +++--- swad_photo.c | 17 ++++++++++++----- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/swad_changelog.h b/swad_changelog.h index f76ff283e..cea9b9da5 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -116,7 +116,6 @@ // TODO: If a follower follows a user whose profile is no longer visible ==> put icon to unfollow in list of followed // TODO: FIX BUG: In results of search of students, no mark of confirmation is shown even if the student really has confirmed his/her registration in the course // TODO: Insert "http://" to WWW when WWW does not start with "*://" -// TODO: Change links from external degrees to internal degrees in STATS > Degrees // TODO: Icon to the left in list of forums is not correct when scope is system // TODO: Move info about number of files to bottom of file browsers // TODO: To avoid wrong email addresses, when a user fills his/her email address, check if the domain is in the white list of allowed domains. If not, ask for confirmation. @@ -127,7 +126,7 @@ // TODO: Messages in msg_content_deleted older than a certain time should be deleted to ensure the protection of personal data // TODO: Request confirmation to remove user's photo // TODO: FIX BUG: In Statistics > Indicators, if we select only 5 indicators, the message "The list is too big..." is shown. -// TODO: FIX BUG: A theacher uploads a document in course documents zone, then he/she unregister from course, the he/she search for his/her documents, a document is shown in results but he/she can not view it +// TODO: FIX BUG: A teacher uploads a document in course documents zone, then he/she unregister from course, the he/she search for his/her documents, a document is shown in results but he/she can not view it // TODO: FIX BUG: Txt_Save_file_properties does not have sense in briefcase, because nothing to save (license should be editable in briefcase?) // TODO: In listing of courses, teachers column is before than students column. In edition of courses, students column is before teachers column. // TODO: List exam announcement as a list, like assignments. When clicking on an announcement, it will be shown alone, as now. @@ -141,13 +140,14 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 15.212.3 (2016-05-30)" +#define Log_PLATFORM_VERSION "SWAD 15.212.4 (2016-05-30)" #define CSS_FILE "swad15.210.css" #define JS_FILE "swad15.197.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 15.212.4: May 30, 2016 Changed links from external degrees to internal degrees in STATS > Degrees. (201529 lines) Version 15.212.3: May 30, 2016 Fixed bug in test question. A student can see now his/her test results. (201522 lines) Version 15.212.2: May 30, 2016 Fixed bug in test question. Button "Add a new question" in tests will not be available for students. (201516 lines) Version 15.212.1: May 30, 2016 Fixed bug in course information. (201515 lines) diff --git a/swad_photo.c b/swad_photo.c index cda0635dd..62d0458af 100644 --- a/swad_photo.c +++ b/swad_photo.c @@ -2242,6 +2242,7 @@ static void Pho_ShowDegreeAvgPhotoAndStat (struct Degree *Deg, int NumStds,int NumStdsWithPhoto) { extern const char *Usr_StringsSexDB[Usr_NUM_SEXS]; + extern const char *Txt_Go_to_X; extern const char *Txt_students_ABBREVIATION; extern const char *Txt_SEX_PLURAL_abc[Usr_NUM_SEXS]; extern const char *Txt_photos; @@ -2265,8 +2266,12 @@ static void Pho_ShowDegreeAvgPhotoAndStat (struct Degree *Deg, /***** Put link to degree *****/ if (SeeOrPrint == Pho_DEGREES_SEE) - fprintf (Gbl.F.Out,"", - Deg->WWW,Deg->FullName); + { + Act_FormGoToStart (ActSeeDegInf); + Deg_PutParamDegCod (Deg->DegCod); + sprintf (Gbl.Title,Txt_Go_to_X,Deg->FullName); + Act_LinkFormSubmit (Gbl.Title,NULL); + } /***** Check if photo of degree can be shown *****/ if (Gbl.Usrs.Me.LoggedRole == Rol_SYS_ADM) @@ -2315,9 +2320,8 @@ static void Pho_ShowDegreeAvgPhotoAndStat (struct Degree *Deg, fprintf (Gbl.F.Out,"%s/usr_bl.jpg\"" " style=\"width:%upx; height:%upx;\"", Gbl.Prefs.IconsURL,PhotoWidth,PhotoHeight); - fprintf (Gbl.F.Out," alt=\"%s\" title=\"%s\" />", - Deg->ShortName, - Deg->FullName); + fprintf (Gbl.F.Out," alt=\"%s\" />", + Deg->ShortName); /***** Caption *****/ if (SeeOrPrint == Pho_DEGREES_PRINT) @@ -2329,7 +2333,10 @@ static void Pho_ShowDegreeAvgPhotoAndStat (struct Degree *Deg, NumStds > 0 ? (int) (((NumStdsWithPhoto * 100.0) / NumStds) + 0.5) : 0); if (SeeOrPrint == Pho_DEGREES_SEE) + { fprintf (Gbl.F.Out,""); + Act_FormEnd (); + } else fprintf (Gbl.F.Out,""); }