diff --git a/swad_changelog.h b/swad_changelog.h index 7e50c04e3..2d36e5fac 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -252,13 +252,14 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 17.5.8 (2017-09-22)" +#define Log_PLATFORM_VERSION "SWAD 17.5.9 (2017-09-22)" #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.5.9: Sep 22, 2017 Icon to remove user from project. (230350 lines) Version 17.5.8: Sep 22, 2017 Name of department in listing of projects. (230336 lines) Version 17.5.7: Sep 21, 2017 Selector for department in edition of a project. (230363 lines) Version 17.5.6: Sep 21, 2017 Added evaluators to projects. (230347 lines) diff --git a/swad_project.c b/swad_project.c index fa7feae68..eb6b631d4 100644 --- a/swad_project.c +++ b/swad_project.c @@ -604,6 +604,7 @@ static void Prj_ShowOneProjectUsrsRow (const struct Project *Prj, static void Prj_WriteUsrs (long PrjCod,Prj_ProjectView_t ProjectView, Prj_RoleInProject_t RoleInProject) { + extern const char *Txt_Remove; extern const char *Txt_ROLES_SINGUL_abc[Rol_NUM_ROLES][Usr_NUM_SEXS]; extern const char *Txt_ROLES_PLURAL_abc[Rol_NUM_ROLES][Usr_NUM_SEXS]; extern const char *Txt_Add_user; @@ -670,6 +671,20 @@ static void Prj_WriteUsrs (long PrjCod,Prj_ProjectView_t ProjectView, /* Get user's data */ UsrValid = Usr_ChkUsrCodAndGetAllUsrDataFromUsrCod (&UsrDat); + /* Start row for this user */ + fprintf (Gbl.F.Out,""); + + /* Icon to remove user */ + if (ProjectView == Prj_EDIT_ONE_PROJECT) + { + fprintf (Gbl.F.Out,""); + Lay_PutContextualLink (ActUnk,NULL,NULL, + "remove-on64x64.png", + Txt_Remove,NULL, + NULL); + fprintf (Gbl.F.Out,""); + } + /* Put user's photo */ fprintf (Gbl.F.Out,""); ShowPhoto = (UsrValid ? Pho_ShowingUsrPhotoIsAllowed (&UsrDat,PhotoURL) :