diff --git a/css/swad16.147.css b/css/swad16.147.css index 3873e290a..be72b5031 100644 --- a/css/swad16.147.css +++ b/css/swad16.147.css @@ -1376,19 +1376,26 @@ a:hover /* Default ==> underlined */ color:#4070A0; overflow:hidden; } +.NOTICE_AUTHOR + { + display:inline-block; + box-sizing:border-box; + float:right; + max-width:120px; + text-align:right; + vertical-align:middle; + white-space:nowrap; + overflow:hidden; + text-overflow:ellipsis; + font-size:12pt; + } .NOTICE_AUTHOR_ACTIVE { color:#404040; - font-size:12pt; - text-align:right; - overflow:hidden; } .NOTICE_AUTHOR_OBSOLETE { color:#808080; - font-size:12pt; - text-align:right; - overflow:hidden; } /**************************** Institutional links ****************************/ @@ -2907,7 +2914,19 @@ a:hover img.CENTRE_PHOTO_SHOW .CON {color:#B8D070; font-size:11pt; line-height:110%; white-space:nowrap;} .CON_CRS {color:#398000; font-size:11pt; line-height:110%; white-space:nowrap;} -/*************************** Indicators about courses ************************/ +/****************************** Users ranking ********************************/ +.RANK_USR + { + box-sizing:border-box; + max-width:50px; + text-align:left; + vertical-align:middle; + white-space:nowrap; + overflow:hidden; + text-overflow:ellipsis; + } + +/************************* Indicators about courses **************************/ .INDICATORS td,.INDICATORS th { border:1px solid silver; diff --git a/swad_changelog.h b/swad_changelog.h index a70c30d5d..be8ebe6d6 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -197,13 +197,15 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 16.147 (2017-03-04)" +#define Log_PLATFORM_VERSION "SWAD 16.147.2 (2017-03-04)" #define CSS_FILE "swad16.147.css" #define JS_FILE "swad16.144.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.147.2: Mar 05, 2017 Changes in layout of notice author. (216316 lines) + Version 16.147.1: Mar 05, 2017 Changes in layout of notice author. (216300 lines) Version 16.147: Mar 04, 2017 Changes in layout of file browser. (216292 lines) Version 16.146.9: Mar 04, 2017 Changes in layout of assignments and works. (216271 lines) Version 16.146.8: Mar 04, 2017 Changes in layout of connected users. (216284 lines) diff --git a/swad_message.c b/swad_message.c index 085139f07..408358436 100644 --- a/swad_message.c +++ b/swad_message.c @@ -3143,14 +3143,10 @@ void Msg_WriteMsgAuthor (struct UsrData *UsrDat, fprintf (Gbl.F.Out," %s",BgColor); fprintf (Gbl.F.Out,"\">" "
" - "%s
" - "%s", - Style, - UsrDat->FirstName, - UsrDat->Surname1); + "%s
%s", + Style,UsrDat->FirstName,UsrDat->Surname1); if (UsrDat->Surname2[0]) - fprintf (Gbl.F.Out,"%s", - UsrDat->Surname2); + fprintf (Gbl.F.Out,"%s",UsrDat->Surname2); fprintf (Gbl.F.Out,"
"); } else diff --git a/swad_notice.c b/swad_notice.c index 225933a21..4c25836e0 100644 --- a/swad_notice.c +++ b/swad_notice.c @@ -727,12 +727,16 @@ static void Not_DrawANotice (Not_Listing_t TypeNoticesListing, TextClass[Status],Content); /***** Write the author *****/ - fprintf (Gbl.F.Out,"
", + fprintf (Gbl.F.Out,"
", AuthorClass[Status]); Usr_UsrDataConstructor (&UsrDat); UsrDat.UsrCod = UsrCod; if (Usr_ChkUsrCodAndGetAllUsrDataFromUsrCod (&UsrDat)) // Get from the database the data of the autor - Usr_RestrictLengthAndWriteName (&UsrDat,16); + { + fprintf (Gbl.F.Out,"%s
%s",UsrDat.FirstName,UsrDat.Surname1); + if (UsrDat.Surname2[0]) + fprintf (Gbl.F.Out," %s",UsrDat.Surname2); + } Usr_UsrDataDestructor (&UsrDat); fprintf (Gbl.F.Out,"
"); diff --git a/swad_profile.c b/swad_profile.c index 395fa607d..fdfbb1018 100644 --- a/swad_profile.c +++ b/swad_profile.c @@ -1552,9 +1552,13 @@ void Prf_ShowUsrInRanking (struct UsrData *UsrDat,unsigned Rank) { Act_FormStart (ActSeeOthPubPrf); Usr_PutParamUsrCodEncrypted (UsrDat->EncryptedUsrCod); + fprintf (Gbl.F.Out,"
"); Act_LinkFormSubmit (Txt_Another_user_s_profile,"DAT_SMALL",NULL); - Usr_RestrictLengthAndWriteName (UsrDat,8); - fprintf (Gbl.F.Out,""); + fprintf (Gbl.F.Out,"%s
%s",UsrDat->FirstName,UsrDat->Surname1); + if (UsrDat->Surname2[0]) + fprintf (Gbl.F.Out," %s",UsrDat->Surname2); + fprintf (Gbl.F.Out,"" + "
"); Act_FormEnd (); }