Version 14.96.1

This commit is contained in:
Antonio Cañas Vargas 2015-03-18 20:34:00 +01:00
parent 47a12a1446
commit 63364e7d9c
5 changed files with 20 additions and 19 deletions

View File

@ -823,7 +823,7 @@ a:hover img.CENTRE_PHOTO_SHOW
.RANK
{
color:#808080;
font-size:12pt;
font-size:11pt;
font-weight:bold;
}

View File

@ -636,7 +636,7 @@ a:hover img.CENTRE_PHOTO_SHOW
.RANK
{
color:#808080;
font-size:18pt;
font-size:16pt;
font-weight:bold;
}

View File

@ -103,11 +103,12 @@
/****************************** Public constants *****************************/
/*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 14.96 (2015/03/18)"
#define Log_PLATFORM_VERSION "SWAD 14.96.1 (2015/03/18)"
// 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 14.96.1: Mar 18, 2015 Changes in user's profile. (183015 lines)
Version 14.96: Mar 18, 2015 New layout in record cards. (183011 lines)
Version 14.95.1: Mar 18, 2015 Show user's profile after followin or unfollowing. (182985 lines)
Version 14.95: Mar 18, 2015 New module swad_follow for follow users. (182903 lines)

View File

@ -472,15 +472,16 @@ static void Prf_ShowHistoricUserProfile (const struct UsrData *UsrDat)
Txt_Clicks);
if (UsrFigures.NumClicks >= 0)
{
fprintf (Gbl.F.Out,"%ld %s",
fprintf (Gbl.F.Out,"%ld %s ",
UsrFigures.NumClicks,Txt_clicks);
Prf_ShowRanking (Prf_GetRankingFigure (UsrDat->UsrCod,"NumClicks"),
Prf_GetNumUsrsWithFigure ("NumClicks"));
if (UsrFigures.NumDays >= 0)
{
fprintf (Gbl.F.Out,"<br />");
Str_WriteFloatNum ((float) UsrFigures.NumClicks /
(float) (UsrFigures.NumDays + 1));
fprintf (Gbl.F.Out,"&nbsp;/&nbsp;%s",Txt_day);
fprintf (Gbl.F.Out,"&nbsp;/&nbsp;%s&nbsp;",Txt_day);
Prf_ShowRanking (Prf_GetRankingNumClicksPerDay (UsrDat->UsrCod),
Prf_GetNumUsrsWithNumClicksPerDay ());
}
@ -511,7 +512,7 @@ static void Prf_ShowHistoricUserProfile (const struct UsrData *UsrDat)
Txt_Downloads);
if (UsrFigures.NumFileViews >= 0)
{
fprintf (Gbl.F.Out,"%ld&nbsp;%s",
fprintf (Gbl.F.Out,"%ld&nbsp;%s&nbsp;",
UsrFigures.NumFileViews,
(UsrFigures.NumFileViews == 1) ? Txt_download :
Txt_downloads);
@ -519,6 +520,7 @@ static void Prf_ShowHistoricUserProfile (const struct UsrData *UsrDat)
Prf_GetNumUsrsWithFigure ("NumFileViews"));
if (UsrFigures.NumDays >= 0)
{
fprintf (Gbl.F.Out,"<br />");
Str_WriteFloatNum ((float) UsrFigures.NumFileViews /
(float) (UsrFigures.NumDays + 1));
fprintf (Gbl.F.Out,"&nbsp;/&nbsp;%s",Txt_day);
@ -550,7 +552,7 @@ static void Prf_ShowHistoricUserProfile (const struct UsrData *UsrDat)
Txt_Forums);
if (UsrFigures.NumForPst >= 0)
{
fprintf (Gbl.F.Out,"%ld&nbsp;%s",
fprintf (Gbl.F.Out,"%ld&nbsp;%s&nbsp;",
UsrFigures.NumForPst,
(UsrFigures.NumForPst == 1) ? Txt_post :
Txt_posts);
@ -558,6 +560,7 @@ static void Prf_ShowHistoricUserProfile (const struct UsrData *UsrDat)
Prf_GetNumUsrsWithFigure ("NumForPst"));
if (UsrFigures.NumDays >= 0)
{
fprintf (Gbl.F.Out,"<br />");
Str_WriteFloatNum ((float) UsrFigures.NumForPst /
(float) (UsrFigures.NumDays + 1));
fprintf (Gbl.F.Out,"&nbsp;/&nbsp;%s",Txt_day);
@ -589,7 +592,7 @@ static void Prf_ShowHistoricUserProfile (const struct UsrData *UsrDat)
Txt_Messages);
if (UsrFigures.NumMsgSnt >= 0)
{
fprintf (Gbl.F.Out,"%ld&nbsp;%s",
fprintf (Gbl.F.Out,"%ld&nbsp;%s&nbsp;",
UsrFigures.NumMsgSnt,
(UsrFigures.NumMsgSnt == 1) ? Txt_message :
Txt_messages);
@ -597,6 +600,7 @@ static void Prf_ShowHistoricUserProfile (const struct UsrData *UsrDat)
Prf_GetNumUsrsWithFigure ("NumMsgSnt"));
if (UsrFigures.NumDays >= 0)
{
fprintf (Gbl.F.Out,"<br />");
Str_WriteFloatNum ((float) UsrFigures.NumMsgSnt /
(float) (UsrFigures.NumDays + 1));
fprintf (Gbl.F.Out,"&nbsp;/&nbsp;%s",Txt_day);
@ -757,24 +761,20 @@ static unsigned long Prf_GetNumUsrsWithNumClicksPerDay (void)
static void Prf_ShowRanking (unsigned long Rank,unsigned long NumUsrs)
{
extern const char *Txt_Ranking;
// extern const char *Txt_Ranking;
extern const char *Txt_of_PART_OF_A_TOTAL;
/***** Start container *****/
fprintf (Gbl.F.Out,"<div style=\"vertical-align:middle;\">");
/***** Part of a total and end container *****/
sprintf (Gbl.Title,"#%lu %s %lu",
Rank,Txt_of_PART_OF_A_TOTAL,NumUsrs);
/***** Rank in form to go to ranking *****/
Act_FormStart (ActSeeUseGbl);
Sco_PutParamScope (Sco_SCOPE_SYS);
Par_PutHiddenParamUnsigned ("UseStatType",(unsigned) Sta_USRS_RANKING);
Act_LinkFormSubmit (Txt_Ranking,"RANK");
Act_LinkFormSubmit (Gbl.Title,"RANK");
fprintf (Gbl.F.Out,"#%lu</a>",Rank);
Act_FormEnd ();
/***** Part of a total and end container *****/
fprintf (Gbl.F.Out,"&nbsp;%s&nbsp;%lu"
"</div>",
Txt_of_PART_OF_A_TOTAL,NumUsrs);
}
/*****************************************************************************/

View File

@ -27482,7 +27482,7 @@ const char *Txt_Quota_exceeded =
#elif L==8
"Quota excedida!";
#endif
/*
const char *Txt_Ranking =
#if L==0
"R&agrave;nquing";
@ -27503,7 +27503,7 @@ const char *Txt_Ranking =
#elif L==8
"Posi&ccedil;&atilde;o";
#endif
*/
const char *Txt_ReaBRders =
#if L==0
"Lec-<br />tores"; // Necessita traduccio