mirror of https://github.com/acanas/swad-core.git
Version 16.147.5
This commit is contained in:
parent
ed12d86d9e
commit
41efe78478
|
@ -2022,15 +2022,15 @@ a:hover img.CENTRE_PHOTO_SHOW
|
|||
.REC_C2_TOP
|
||||
{
|
||||
box-sizing:border-box;
|
||||
width:282px;
|
||||
width:278px;
|
||||
height:68px;
|
||||
padding-top:8px !important;
|
||||
}
|
||||
}
|
||||
.REC_C3_TOP
|
||||
{
|
||||
box-sizing:border-box;
|
||||
width:190px;
|
||||
}
|
||||
}
|
||||
|
||||
.REC_C1_MID
|
||||
{
|
||||
|
@ -2040,8 +2040,8 @@ a:hover img.CENTRE_PHOTO_SHOW
|
|||
.REC_C2_MID
|
||||
{
|
||||
box-sizing:border-box;
|
||||
width:282px;
|
||||
}
|
||||
width:278px;
|
||||
}
|
||||
.REC_C3_MID
|
||||
{
|
||||
box-sizing:border-box;
|
||||
|
@ -2052,7 +2052,7 @@ a:hover img.CENTRE_PHOTO_SHOW
|
|||
{
|
||||
box-sizing:border-box;
|
||||
width:170px;
|
||||
}
|
||||
}
|
||||
.REC_C2_BOT
|
||||
{
|
||||
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_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_WEBS
|
||||
{
|
||||
|
|
|
@ -197,13 +197,14 @@
|
|||
/****************************** 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 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.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.
|
||||
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)
|
||||
|
|
|
@ -685,7 +685,6 @@ static void For_GetThrSubject (long ThrCod,char Subject[Cns_MAX_BYTES_SUBJECT +
|
|||
row = mysql_fetch_row (mysql_res);
|
||||
Str_Copy (Subject,row[0],
|
||||
Cns_MAX_BYTES_SUBJECT);
|
||||
Str_LimitLengthHTMLStr (Subject,20);
|
||||
|
||||
/***** Free structure that stores the query result *****/
|
||||
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.CurrentPage = 1; // First page
|
||||
Pag_CalculatePagination (&PaginationPsts);
|
||||
Str_LimitLengthHTMLStr (Thr.Subject,80);
|
||||
Pag_WriteLinksToPages (Pag_POSTS_FORUM,Thr.ThrCod,&PaginationPsts,
|
||||
Thr.Enabled[For_FIRST_MSG],
|
||||
Thr.Subject,
|
||||
|
|
|
@ -2173,7 +2173,9 @@ void Rec_ShowSharedUsrRecord (Rec_SharedRecordViewType_t TypeOfView,
|
|||
fprintf (Gbl.F.Out,"</tr>");
|
||||
|
||||
/***** User's nickname *****/
|
||||
fprintf (Gbl.F.Out,"<tr>");
|
||||
Rec_ShowNickname (UsrDat,PutFormLinks);
|
||||
fprintf (Gbl.F.Out,"</tr>");
|
||||
|
||||
/***** User's country, web and social networks *****/
|
||||
fprintf (Gbl.F.Out,"<tr>");
|
||||
|
@ -2597,29 +2599,20 @@ static void Rec_ShowPhoto (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 REC_NAME LEFT_TOP\">");
|
||||
fprintf (Gbl.F.Out,"<td class=\"REC_C2_MID LEFT_TOP\">"
|
||||
"<div class=\"REC_NAME\">");
|
||||
|
||||
/***** First name *****/
|
||||
Str_Copy (Name,UsrDat->FirstName,
|
||||
Usr_MAX_BYTES_NAME);
|
||||
Str_LimitLengthHTMLStr (Name,20);
|
||||
fprintf (Gbl.F.Out,"%s<br />",Name);
|
||||
fprintf (Gbl.F.Out,"%s<br />",UsrDat->FirstName);
|
||||
|
||||
/***** Surname 1 *****/
|
||||
Str_Copy (Name,UsrDat->Surname1,
|
||||
Usr_MAX_BYTES_NAME);
|
||||
Str_LimitLengthHTMLStr (Name,20);
|
||||
fprintf (Gbl.F.Out,"%s<br />",Name);
|
||||
fprintf (Gbl.F.Out,"%s<br />",UsrDat->Surname1);
|
||||
|
||||
/***** Surname 2 *****/
|
||||
Str_Copy (Name,UsrDat->Surname2,
|
||||
Usr_MAX_BYTES_NAME);
|
||||
Str_LimitLengthHTMLStr (Name,20);
|
||||
fprintf (Gbl.F.Out,"%s",Name);
|
||||
fprintf (Gbl.F.Out,"%s",UsrDat->Surname2);
|
||||
|
||||
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;
|
||||
bool ItsMe;
|
||||
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"REC_C2_MID REC_NAME LEFT_BOTTOM\">"
|
||||
fprintf (Gbl.F.Out,"<td class=\"REC_C2_MID LEFT_BOTTOM\">"
|
||||
"<div class=\"REC_NICK\">");
|
||||
if (UsrDat->Nickname[0])
|
||||
{
|
||||
|
@ -2656,8 +2648,7 @@ static void Rec_ShowNickname (struct UsrData *UsrDat,bool PutFormLinks)
|
|||
}
|
||||
}
|
||||
fprintf (Gbl.F.Out,"</div>"
|
||||
"</td>"
|
||||
"</tr>");
|
||||
"</td>");
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
|
Loading…
Reference in New Issue