From 5163bb992afa814a7fdfacf082e0aa1dde1d266b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Wed, 20 Sep 2017 13:56:48 +0200 Subject: [PATCH] Version 17.3.10 --- swad_changelog.h | 3 ++- swad_project.c | 24 +++++++++++++++++++++++- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/swad_changelog.h b/swad_changelog.h index 134ce10f9..161ce8ff9 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -252,13 +252,14 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 17.3.9 (2017-09-19)" +#define Log_PLATFORM_VERSION "SWAD 17.3.10 (2017-09-19)" #define CSS_FILE "swad17.0.css" #define JS_FILE "swad16.206.3.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 17.3.10: Sep 19, 2017 New row in listing of projects for students. (230009 lines) Version 17.3.9: Sep 19, 2017 Tutor code moved from table projects to table prj_grp. (229987 lines) 1 change necessary in database: ALTER TABLE projects DROP COLUMN UsrCod; diff --git a/swad_project.c b/swad_project.c index cdd6a9e15..396f0b84e 100644 --- a/swad_project.c +++ b/swad_project.c @@ -345,6 +345,7 @@ static void Prj_ShowOneProject (struct Project *Prj,bool PrintView) extern const char *Txt_Required_knowledge; extern const char *Txt_Required_materials; extern const char *Txt_Tutors; + extern const char *Txt_ROLES_PLURAL_Abc[Rol_NUM_ROLES][Usr_NUM_SEXS]; static unsigned UniqueId = 0; /***** Get data of this project *****/ @@ -353,7 +354,7 @@ static void Prj_ShowOneProject (struct Project *Prj,bool PrintView) /***** Write first row of data of this project *****/ /* Forms to remove/edit this project */ fprintf (Gbl.F.Out,"" - ""); else @@ -532,6 +533,27 @@ static void Prj_ShowOneProject (struct Project *Prj,bool PrintView) fprintf (Gbl.F.Out,"" ""); + /* Project students */ + fprintf (Gbl.F.Out,"" + "" + "%s:" + "" + "Hidden ? "ASG_LABEL_LIGHT" : + "ASG_LABEL", + Txt_ROLES_PLURAL_Abc[Rol_STD][Usr_SEX_UNKNOWN]); + if (!PrintView) + fprintf (Gbl.F.Out," COLOR%u",Gbl.RowEvenOdd); + fprintf (Gbl.F.Out," %s\">", + Prj->Hidden ? "DAT_LIGHT" : + "DAT"); + Prj_WriteUsrs (Prj->PrjCod,Prj_ROLE_STD); + fprintf (Gbl.F.Out,"" + ""); + Gbl.RowEvenOdd = 1 - Gbl.RowEvenOdd; }