diff --git a/css/swad16.106.5.css b/css/swad16.108.css similarity index 99% rename from css/swad16.106.5.css rename to css/swad16.108.css index 53936bff7..6da809cd9 100644 --- a/css/swad16.106.5.css +++ b/css/swad16.108.css @@ -435,6 +435,11 @@ a:hover /* Default ==> underlined */ .GREY_COURSE {color:#F7F6F5;} .BLUE_COURSE {color:white;} .YELLOW_COURSE {color:white;} +#my_courses + { + width:130px; + margin:1px; + } /***************************** Notifications *********************************/ #msg /* Notifications, used for AJAX based refresh */ diff --git a/swad_changelog.h b/swad_changelog.h index aa1a50469..c5fc3f703 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -189,13 +189,15 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 16.107.10 (2016-12-27)" -#define CSS_FILE "swad16.106.5.css" +#define Log_PLATFORM_VERSION "SWAD 16.108 (2016-12-27)" +#define CSS_FILE "swad16.108.css" #define JS_FILE "swad16.101.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 16.108: Dec 27, 2016 Changes in layout. + Changes in behaviour of labels in forms. (211608 lines) Version 16.107.10:Dec 27, 2016 Changes in behaviour of labels in forms. (211606 lines) Version 16.107.9: Dec 27, 2016 Changes in edition of new notice. (211607 lines) Version 16.107.8: Dec 27, 2016 Changes in behaviour of labels in forms. (211598 lines) diff --git a/swad_course.c b/swad_course.c index a4fdd93f7..c9022bb84 100644 --- a/swad_course.c +++ b/swad_course.c @@ -1103,8 +1103,7 @@ void Crs_WriteSelectorMyCourses (void) ActSysReqSch); /***** Start of selector of courses *****/ - fprintf (Gbl.F.Out,"", The_ClassForm[Gbl.Prefs.Theme], Txt_Eliminate_all_courses_whithout_users_PART_1_OF_2); - fprintf (Gbl.F.Out,"" - " ", - The_ClassForm[Gbl.Prefs.Theme]); + fprintf (Gbl.F.Out," "); fprintf (Gbl.F.Out,Txt_Eliminate_all_courses_whithout_users_PART_2_OF_2, Cfg_PLATFORM_SHORT_NAME); - fprintf (Gbl.F.Out,""); + fprintf (Gbl.F.Out,""); /***** End frame *****/ Lay_EndRoundFrameWithButton (Lay_REMOVE_BUTTON,Txt_Eliminate); diff --git a/swad_degree.c b/swad_degree.c index 84ef11a51..b8555b0f6 100644 --- a/swad_degree.c +++ b/swad_degree.c @@ -604,7 +604,8 @@ void Deg_WriteSelectorOfDegree (void) Gbl.Form.Id); else fprintf (Gbl.F.Out," disabled=\"disabled\""); - fprintf (Gbl.F.Out,">", diff --git a/swad_enrollment.c b/swad_enrollment.c index 1e95e532b..a3f4572aa 100644 --- a/swad_enrollment.c +++ b/swad_enrollment.c @@ -675,7 +675,7 @@ void Enr_AskRemoveOldUsrs (void) Lay_StartRoundFrame (NULL,Txt_Eliminate_old_users,NULL,NULL); /***** Form to request number of months without clicks *****/ - fprintf (Gbl.F.Out,"%s ", + fprintf (Gbl.F.Out,""); /***** End frame *****/ Lay_EndRoundFrameWithButton (Lay_REMOVE_BUTTON,Txt_Eliminate); diff --git a/swad_file_browser.c b/swad_file_browser.c index 029b72e68..c0dcc2d79 100644 --- a/swad_file_browser.c +++ b/swad_file_browser.c @@ -9394,14 +9394,16 @@ void Brw_ShowFileMetadata (void) /***** Private or public? *****/ fprintf (Gbl.F.Out,"" - "" + "" + "" "" "", The_ClassForm[Gbl.Prefs.Theme],Txt_Availability); if (ICanChangePublic) // I can change file to public { - fprintf (Gbl.F.Out,""); fprintf (Gbl.F.Out,"", + fprintf (Gbl.F.Out,"", (unsigned) Gbl.Usrs.Me.LoggedRole, Txt_ROLES_SINGUL_Abc[Gbl.Usrs.Me.LoggedRole][UsrDat->Sex]); break; @@ -2817,26 +2823,29 @@ static void Rec_ShowRole (struct UsrData *UsrDat, DefaultRoleInCurrentCrs = (UsrDat->Roles & ((1 << Rol_STUDENT) | (1 << Rol_TEACHER))) ? Rol_VISITOR : Rol__GUEST_; - fprintf (Gbl.F.Out,"", + fprintf (Gbl.F.Out,"", (unsigned) DefaultRoleInCurrentCrs, Txt_ROLES_SINGUL_Abc[DefaultRoleInCurrentCrs][UsrDat->Sex]); } fprintf (Gbl.F.Out,""); break; case Rec_SHA_OTHER_NEW_USR_FORM: // The other user does not exist in platform - fprintf (Gbl.F.Out,""); if (Gbl.CurrentCrs.Crs.CrsCod > 0) // Course selected switch (Gbl.Usrs.Me.LoggedRole) { case Rol_TEACHER: // A teacher only can create students - fprintf (Gbl.F.Out,"", + fprintf (Gbl.F.Out,"", (unsigned) Rol_STUDENT,Txt_ROLES_SINGUL_Abc[Rol_STUDENT][Usr_SEX_UNKNOWN]); break; case Rol_DEG_ADM: // An administrator can create students and teachers in a course case Rol_CTR_ADM: case Rol_INS_ADM: case Rol_SYS_ADM: - fprintf (Gbl.F.Out,"" + fprintf (Gbl.F.Out,"" "", (unsigned) Rol_STUDENT,Txt_ROLES_SINGUL_Abc[Rol_STUDENT][Usr_SEX_UNKNOWN], (unsigned) Rol_TEACHER,Txt_ROLES_SINGUL_Abc[Rol_TEACHER][Usr_SEX_UNKNOWN]); @@ -2848,7 +2857,8 @@ static void Rec_ShowRole (struct UsrData *UsrDat, switch (Gbl.Usrs.Me.LoggedRole) { case Rol_SYS_ADM: - fprintf (Gbl.F.Out,"", + fprintf (Gbl.F.Out,"", (unsigned) Rol__GUEST_,Txt_ROLES_SINGUL_Abc[Rol__GUEST_][Usr_SEX_UNKNOWN]); break; default: // The rest of users can not register other users @@ -3033,13 +3043,11 @@ static void Rec_ShowCountry (struct UsrData *UsrDat, fprintf (Gbl.F.Out,"" "" - "" "" ""); @@ -3678,9 +3686,7 @@ void Rec_ShowFormMyInsCtrDpt (void) /***** Country *****/ fprintf (Gbl.F.Out,"" "" - "" + "" "" "", ClassForm,Txt_Country_of_your_institution, @@ -3722,9 +3728,7 @@ void Rec_ShowFormMyInsCtrDpt (void) /***** Institution *****/ fprintf (Gbl.F.Out,"" "" - "" + "" "" "", ClassForm,Txt_Institution, @@ -3771,9 +3775,7 @@ void Rec_ShowFormMyInsCtrDpt (void) /***** Centre *****/ fprintf (Gbl.F.Out,"" "" - "" + "" "" "", ClassForm,Txt_Centre, @@ -3818,9 +3820,7 @@ void Rec_ShowFormMyInsCtrDpt (void) /***** Department *****/ fprintf (Gbl.F.Out,"" "" - "" + "" "" "", ClassForm,Txt_Department, diff --git a/swad_role.c b/swad_role.c index 63909c732..299ae3097 100644 --- a/swad_role.c +++ b/swad_role.c @@ -292,7 +292,7 @@ void Rol_PutFormToChangeMyRole (void) Rol_Role_t Role; Act_FormStart (ActChgMyRol); - fprintf (Gbl.F.Out,"%s: " + ""); + fprintf (Gbl.F.Out,"" + ""); Act_FormEnd (); fprintf (Gbl.F.Out,"" ""); @@ -3812,8 +3814,7 @@ void Sta_ReqShowFigures (void) Lay_StartRoundFrame (NULL,Txt_Statistic,NULL,Hlp_STATS_Figures); /***** Compute stats for anywhere, degree or course? *****/ - fprintf (Gbl.F.Out,"
" - "%s: ", + fprintf (Gbl.F.Out,"
"); /***** Type of statistic *****/ - fprintf (Gbl.F.Out,"
" - "%s: ", + The_ClassForm[Gbl.Prefs.Theme],Txt_Statistic); for (FigureType = (Sta_FigureType_t) 0; FigureType < Sta_NUM_FIGURES; FigureType++) @@ -3843,7 +3845,7 @@ void Sta_ReqShowFigures (void) Txt_STAT_USE_STAT_TYPES[FigureType]); } fprintf (Gbl.F.Out,"" - "
"); + ""); /***** Send button and end frame *****/ Lay_EndRoundFrameWithButton (Lay_CONFIRM_BUTTON,Txt_Show_statistic); diff --git a/swad_timetable.c b/swad_timetable.c index 544681b4a..fcdb71eb8 100644 --- a/swad_timetable.c +++ b/swad_timetable.c @@ -1181,7 +1181,7 @@ static void TT_TimeTableDrawCell (unsigned Day,unsigned Hour,unsigned Column,uns RowSpan,ColSpan,TimeTableClasses[ClassType]); if (ClassType == TT_NO_CLASS) fprintf (Gbl.F.Out,"%u",Hour % 4); - fprintf (Gbl.F.Out," CENTER_MIDDLE\">"); + fprintf (Gbl.F.Out," CENTER_MIDDLE DAT_SMALL\">"); /***** Form to modify this cell *****/ if (TimeTableView == TT_CRS_EDIT) @@ -1241,8 +1241,6 @@ static void TT_TimeTableDrawCell (unsigned Day,unsigned Hour,unsigned Column,uns Par_PutHiddenParamUnsigned ("ModTTHour",Hour); Par_PutHiddenParamUnsigned ("ModTTCol",Column); - fprintf (Gbl.F.Out,""); - /***** Class type *****/ fprintf (Gbl.F.Out,""); break; } diff --git a/swad_user.c b/swad_user.c index 662cc9d90..0ef0f2964 100644 --- a/swad_user.c +++ b/swad_user.c @@ -2091,7 +2091,7 @@ void Usr_WriteLoggedUsrHead (void) char PhotoURL[PATH_MAX+1]; char UsrName[Usr_MAX_BYTES_NAME+1]; - /***** User's type *****/ + /***** User's role *****/ if (Rol_GetNumAvailableRoles () == 1) { Act_FormStart (ActFrmRolSes); @@ -2882,18 +2882,16 @@ void Usr_ShowFormsLogoutAndRole (void) /***** Put a form to change my role *****/ if (Rol_GetNumAvailableRoles () == 1) - fprintf (Gbl.F.Out,"
" - "%s: %s" - "
", + fprintf (Gbl.F.Out,"%s: " + "%s", Txt_Role, Txt_ROLES_SINGUL_Abc[Gbl.Usrs.Me.LoggedRole][Gbl.Usrs.Me.UsrDat.Sex]); else { - fprintf (Gbl.F.Out,"
" - "%s: ", + fprintf (Gbl.F.Out,"
"); + fprintf (Gbl.F.Out,""); } /***** End frame *****/