Version 16.147.2

This commit is contained in:
Antonio Cañas Vargas 2017-03-05 13:40:30 +01:00
parent b41ef05445
commit e31e599f09
5 changed files with 44 additions and 19 deletions

View File

@ -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;

View File

@ -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)

View File

@ -3143,14 +3143,10 @@ void Msg_WriteMsgAuthor (struct UsrData *UsrDat,
fprintf (Gbl.F.Out," %s",BgColor);
fprintf (Gbl.F.Out,"\">"
"<div class=\"AUTHOR_2_LINES %s\">"
"%s<br />"
"%s",
Style,
UsrDat->FirstName,
UsrDat->Surname1);
"%s<br />%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,"</div>");
}
else

View File

@ -727,12 +727,16 @@ static void Not_DrawANotice (Not_Listing_t TypeNoticesListing,
TextClass[Status],Content);
/***** Write the author *****/
fprintf (Gbl.F.Out,"<div class=\"%s\">",
fprintf (Gbl.F.Out,"<div class=\"NOTICE_AUTHOR %s\">",
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<br />%s",UsrDat.FirstName,UsrDat.Surname1);
if (UsrDat.Surname2[0])
fprintf (Gbl.F.Out," %s",UsrDat.Surname2);
}
Usr_UsrDataDestructor (&UsrDat);
fprintf (Gbl.F.Out,"</div>");

View File

@ -1552,9 +1552,13 @@ void Prf_ShowUsrInRanking (struct UsrData *UsrDat,unsigned Rank)
{
Act_FormStart (ActSeeOthPubPrf);
Usr_PutParamUsrCodEncrypted (UsrDat->EncryptedUsrCod);
fprintf (Gbl.F.Out,"<div class=\"RANK_USR\">");
Act_LinkFormSubmit (Txt_Another_user_s_profile,"DAT_SMALL",NULL);
Usr_RestrictLengthAndWriteName (UsrDat,8);
fprintf (Gbl.F.Out,"</a>");
fprintf (Gbl.F.Out,"%s<br />%s",UsrDat->FirstName,UsrDat->Surname1);
if (UsrDat->Surname2[0])
fprintf (Gbl.F.Out," %s",UsrDat->Surname2);
fprintf (Gbl.F.Out,"</a>"
"</div>");
Act_FormEnd ();
}