Version 16.147.5

This commit is contained in:
Antonio Cañas Vargas 2017-03-05 17:12:00 +01:00
parent ed12d86d9e
commit 41efe78478
4 changed files with 30 additions and 30 deletions

View File

@ -2022,15 +2022,15 @@ a:hover img.CENTRE_PHOTO_SHOW
.REC_C2_TOP .REC_C2_TOP
{ {
box-sizing:border-box; box-sizing:border-box;
width:282px; width:278px;
height:68px; height:68px;
padding-top:8px !important; padding-top:8px !important;
} }
.REC_C3_TOP .REC_C3_TOP
{ {
box-sizing:border-box; box-sizing:border-box;
width:190px; width:190px;
} }
.REC_C1_MID .REC_C1_MID
{ {
@ -2040,8 +2040,8 @@ a:hover img.CENTRE_PHOTO_SHOW
.REC_C2_MID .REC_C2_MID
{ {
box-sizing:border-box; box-sizing:border-box;
width:282px; width:278px;
} }
.REC_C3_MID .REC_C3_MID
{ {
box-sizing:border-box; box-sizing:border-box;
@ -2052,7 +2052,7 @@ a:hover img.CENTRE_PHOTO_SHOW
{ {
box-sizing:border-box; box-sizing:border-box;
width:170px; width:170px;
} }
.REC_C2_BOT .REC_C2_BOT
{ {
box-sizing:border-box; box-sizing:border-box;
@ -2065,7 +2065,17 @@ a:hover img.CENTRE_PHOTO_SHOW
} }
.REC_HEAD {font-family:Georgia,"DejaVu LGC Serif","Bitstream Vera Serif",serif; color:#808080; font-size:12pt;} .REC_HEAD {font-family:Georgia,"DejaVu LGC Serif","Bitstream Vera Serif",serif; color:#808080; font-size:12pt;}
.REC_NAME {color:#808080; font-size:20pt; font-weight:bold;} .REC_NAME
{
box-sizing:border-box;
max-width:274px;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
color:#808080;
font-size:20pt;
font-weight:bold;
}
.REC_NICK {color:#808080; font-size:15pt; font-weight:bold;} .REC_NICK {color:#808080; font-size:15pt; font-weight:bold;}
.REC_WEBS .REC_WEBS
{ {

View File

@ -197,13 +197,14 @@
/****************************** Public constants *****************************/ /****************************** Public constants *****************************/
/*****************************************************************************/ /*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 16.147.4 (2017-03-04)" #define Log_PLATFORM_VERSION "SWAD 16.147.5 (2017-03-04)"
#define CSS_FILE "swad16.147.css" #define CSS_FILE "swad16.147.css"
#define JS_FILE "swad16.144.js" #define JS_FILE "swad16.144.js"
// Number of lines (includes comments but not blank lines) has been got with the following command: // 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 // 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.5: Mar 05, 2017 Changes in layout of record card. (216346 lines)
Version 16.147.4: Mar 05, 2017 Changes in layout of enrollment requesters. Version 16.147.4: Mar 05, 2017 Changes in layout of enrollment requesters.
Code refactoring writing user's name. (216345 lines) Code refactoring writing user's name. (216345 lines)
Version 16.147.3: Mar 05, 2017 Changes in layout of followed users, users to follow and connected users. (216365 lines) Version 16.147.3: Mar 05, 2017 Changes in layout of followed users, users to follow and connected users. (216365 lines)

View File

@ -685,7 +685,6 @@ static void For_GetThrSubject (long ThrCod,char Subject[Cns_MAX_BYTES_SUBJECT +
row = mysql_fetch_row (mysql_res); row = mysql_fetch_row (mysql_res);
Str_Copy (Subject,row[0], Str_Copy (Subject,row[0],
Cns_MAX_BYTES_SUBJECT); Cns_MAX_BYTES_SUBJECT);
Str_LimitLengthHTMLStr (Subject,20);
/***** Free structure that stores the query result *****/ /***** Free structure that stores the query result *****/
DB_FreeMySQLResult (&mysql_res); DB_FreeMySQLResult (&mysql_res);
@ -3495,7 +3494,6 @@ void For_ListForumThrs (long ThrCods[Pag_ITEMS_PER_PAGE],struct Pagination *Pagi
PaginationPsts.NumItems = Thr.NumPosts; PaginationPsts.NumItems = Thr.NumPosts;
PaginationPsts.CurrentPage = 1; // First page PaginationPsts.CurrentPage = 1; // First page
Pag_CalculatePagination (&PaginationPsts); Pag_CalculatePagination (&PaginationPsts);
Str_LimitLengthHTMLStr (Thr.Subject,80);
Pag_WriteLinksToPages (Pag_POSTS_FORUM,Thr.ThrCod,&PaginationPsts, Pag_WriteLinksToPages (Pag_POSTS_FORUM,Thr.ThrCod,&PaginationPsts,
Thr.Enabled[For_FIRST_MSG], Thr.Enabled[For_FIRST_MSG],
Thr.Subject, Thr.Subject,

View File

@ -2173,7 +2173,9 @@ void Rec_ShowSharedUsrRecord (Rec_SharedRecordViewType_t TypeOfView,
fprintf (Gbl.F.Out,"</tr>"); fprintf (Gbl.F.Out,"</tr>");
/***** User's nickname *****/ /***** User's nickname *****/
fprintf (Gbl.F.Out,"<tr>");
Rec_ShowNickname (UsrDat,PutFormLinks); Rec_ShowNickname (UsrDat,PutFormLinks);
fprintf (Gbl.F.Out,"</tr>");
/***** User's country, web and social networks *****/ /***** User's country, web and social networks *****/
fprintf (Gbl.F.Out,"<tr>"); fprintf (Gbl.F.Out,"<tr>");
@ -2597,29 +2599,20 @@ static void Rec_ShowPhoto (struct UsrData *UsrDat)
static void Rec_ShowFullName (struct UsrData *UsrDat) static void Rec_ShowFullName (struct UsrData *UsrDat)
{ {
char Name[Usr_MAX_BYTES_NAME + 1]; // To shorten length of FirstName, Surname1, Surname2 fprintf (Gbl.F.Out,"<td class=\"REC_C2_MID LEFT_TOP\">"
"<div class=\"REC_NAME\">");
fprintf (Gbl.F.Out,"<td class=\"REC_C2_MID REC_NAME LEFT_TOP\">");
/***** First name *****/ /***** First name *****/
Str_Copy (Name,UsrDat->FirstName, fprintf (Gbl.F.Out,"%s<br />",UsrDat->FirstName);
Usr_MAX_BYTES_NAME);
Str_LimitLengthHTMLStr (Name,20);
fprintf (Gbl.F.Out,"%s<br />",Name);
/***** Surname 1 *****/ /***** Surname 1 *****/
Str_Copy (Name,UsrDat->Surname1, fprintf (Gbl.F.Out,"%s<br />",UsrDat->Surname1);
Usr_MAX_BYTES_NAME);
Str_LimitLengthHTMLStr (Name,20);
fprintf (Gbl.F.Out,"%s<br />",Name);
/***** Surname 2 *****/ /***** Surname 2 *****/
Str_Copy (Name,UsrDat->Surname2, fprintf (Gbl.F.Out,"%s",UsrDat->Surname2);
Usr_MAX_BYTES_NAME);
Str_LimitLengthHTMLStr (Name,20);
fprintf (Gbl.F.Out,"%s",Name);
fprintf (Gbl.F.Out,"</td>"); fprintf (Gbl.F.Out,"</div>"
"</td>");
} }
/*****************************************************************************/ /*****************************************************************************/
@ -2632,8 +2625,7 @@ static void Rec_ShowNickname (struct UsrData *UsrDat,bool PutFormLinks)
extern const char *Txt_Another_user_s_profile; extern const char *Txt_Another_user_s_profile;
bool ItsMe; bool ItsMe;
fprintf (Gbl.F.Out,"<tr>" fprintf (Gbl.F.Out,"<td class=\"REC_C2_MID LEFT_BOTTOM\">"
"<td class=\"REC_C2_MID REC_NAME LEFT_BOTTOM\">"
"<div class=\"REC_NICK\">"); "<div class=\"REC_NICK\">");
if (UsrDat->Nickname[0]) if (UsrDat->Nickname[0])
{ {
@ -2656,8 +2648,7 @@ static void Rec_ShowNickname (struct UsrData *UsrDat,bool PutFormLinks)
} }
} }
fprintf (Gbl.F.Out,"</div>" fprintf (Gbl.F.Out,"</div>"
"</td>" "</td>");
"</tr>");
} }
/*****************************************************************************/ /*****************************************************************************/