Version 16.147.9

This commit is contained in:
Antonio Cañas Vargas 2017-03-06 01:31:06 +01:00
parent 926c60fed0
commit 5395a78662
3 changed files with 41 additions and 27 deletions

View File

@ -206,12 +206,38 @@ a:hover /* Default ==> underlined */
@media only screen and (max-width: 480px)
{ /* For mobile phones */
.SEL_ROLE {width:55px;};
.SEL_ROLE {width:55px;}
.HEAD_USR
{
display:inline-block;
box-sizing:border-box;
max-width:200px;
text-align:left;
vertical-align:middle;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
}
@media only screen and (min-width: 480px)
{ /* For mobile phones */
.SEL_ROLE {width:130px;};
.SEL_ROLE {width:130px;}
.HEAD_USR
{
display:inline-block;
box-sizing:border-box;
max-width:320px;
text-align:left;
vertical-align:middle;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
}
.WHITE_USR {color:#E0E0E0; font-size:15pt; font-weight:bold; white-space:nowrap;}
.GREY_USR {color:#E0E0E0; font-size:15pt; font-weight:bold; white-space:nowrap;}
.BLUE_USR {color:white; font-size:15pt; font-weight:bold; white-space:nowrap;}
.YELLOW_USR {color:#B3B0B3; font-size:15pt; font-weight:bold; white-space:nowrap;}
#head_row_1_right
{
@ -222,7 +248,7 @@ a:hover /* Default ==> underlined */
#login_box
{
display:inline;
padding:0 20px;
padding:0 10px;
}
@media only screen and (max-width: 1024px)
{ /* For mobile phones and tablets */
@ -1820,11 +1846,6 @@ a:hover img.CENTRE_PHOTO_SHOW
.USR_LIST_NUM_N {color:#404040; font-size:15pt; font-weight:bold;}
/*****************************************************************************/
.WHITE_USR {color:#E0E0E0; font-size:15pt; font-weight:bold; white-space:nowrap;}
.GREY_USR {color:#E0E0E0; font-size:15pt; font-weight:bold; white-space:nowrap;}
.BLUE_USR {color:white; font-size:15pt; font-weight:bold; white-space:nowrap;}
.YELLOW_USR {color:#B3B0B3; font-size:15pt; font-weight:bold; white-space:nowrap;}
.WHITE_TITLE {color:#505050; font-size:18pt;}
.GREY_TITLE {color:#505050; font-size:18pt;}
.BLUE_TITLE {color:#4D88A1; font-size:18pt;}

View File

@ -197,13 +197,14 @@
/****************************** Public constants *****************************/
/*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 16.147.8 (2017-03-04)"
#define Log_PLATFORM_VERSION "SWAD 16.147.9 (2017-03-06)"
#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.9: Mar 06, 2017 Changes in layout of header. (216389 lines)
Version 16.147.8: Mar 05, 2017 Changes in layout of timetable. (216374 lines)
Version 16.147.7: Mar 05, 2017 Changes in layout of social timeline. (216372 lines)
Version 16.147.6: Mar 05, 2017 Changes in layout of record card. (216370 lines)

View File

@ -2237,24 +2237,25 @@ void Usr_WriteLoggedUsrHead (void)
extern const char *Txt_ROLES_SINGUL_Abc[Rol_NUM_ROLES][Usr_NUM_SEXS];
bool ShowPhoto;
char PhotoURL[PATH_MAX + 1];
char UsrName[Usr_MAX_BYTES_NAME + 1];
unsigned NumAvailableRoles = Rol_GetNumAvailableRoles ();
fprintf (Gbl.F.Out,"<div class=\"HEAD_USR %s\">",
The_ClassUsr[Gbl.Prefs.Theme]);
/***** User's role *****/
if (Rol_GetNumAvailableRoles () == 1)
if (NumAvailableRoles == 1)
{
Act_FormStart (ActFrmRolSes);
Act_LinkFormSubmit (Txt_Role,The_ClassUsr[Gbl.Prefs.Theme],NULL);
fprintf (Gbl.F.Out,"%s</a>",
Txt_ROLES_SINGUL_Abc[Gbl.Usrs.Me.LoggedRole][Gbl.Usrs.Me.UsrDat.Sex]);
Act_FormEnd ();
fprintf (Gbl.F.Out,"<span class=\"%s\">:&nbsp;</span>",
The_ClassUsr[Gbl.Prefs.Theme]);
fprintf (Gbl.F.Out,":&nbsp;");
}
else
{
Rol_PutFormToChangeMyRole ();
fprintf (Gbl.F.Out,"<span class=\"%s\">&nbsp;</span>",
The_ClassUsr[Gbl.Prefs.Theme]);
fprintf (Gbl.F.Out,"&nbsp;");
}
/***** Show my photo *****/
@ -2264,19 +2265,10 @@ void Usr_WriteLoggedUsrHead (void)
"PHOTO18x24",Pho_ZOOM,false);
/***** User's name *****/
fprintf (Gbl.F.Out,"<span class=\"%s\">&nbsp;",
The_ClassUsr[Gbl.Prefs.Theme]);
if (Gbl.Usrs.Me.UsrDat.FirstName[0])
fprintf (Gbl.F.Out,"&nbsp;%s",Gbl.Usrs.Me.UsrDat.FirstName);
/* Name */
if (Gbl.Usrs.Me.UsrDat.FullName[0])
{
Str_Copy (UsrName,Gbl.Usrs.Me.UsrDat.FirstName,
Usr_MAX_BYTES_NAME);
Str_LimitLengthHTMLStr (UsrName,12);
fprintf (Gbl.F.Out,"%s",UsrName);
}
fprintf (Gbl.F.Out,"</span>");
fprintf (Gbl.F.Out,"</div>");
}
/*****************************************************************************/