mirror of https://github.com/acanas/swad-core.git
Version 14.96.1
This commit is contained in:
parent
47a12a1446
commit
63364e7d9c
|
@ -823,7 +823,7 @@ a:hover img.CENTRE_PHOTO_SHOW
|
|||
.RANK
|
||||
{
|
||||
color:#808080;
|
||||
font-size:12pt;
|
||||
font-size:11pt;
|
||||
font-weight:bold;
|
||||
}
|
||||
|
||||
|
|
|
@ -636,7 +636,7 @@ a:hover img.CENTRE_PHOTO_SHOW
|
|||
.RANK
|
||||
{
|
||||
color:#808080;
|
||||
font-size:18pt;
|
||||
font-size:16pt;
|
||||
font-weight:bold;
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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," / %s",Txt_day);
|
||||
fprintf (Gbl.F.Out," / %s ",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 %s",
|
||||
fprintf (Gbl.F.Out,"%ld %s ",
|
||||
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," / %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 %s",
|
||||
fprintf (Gbl.F.Out,"%ld %s ",
|
||||
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," / %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 %s",
|
||||
fprintf (Gbl.F.Out,"%ld %s ",
|
||||
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," / %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," %s %lu"
|
||||
"</div>",
|
||||
Txt_of_PART_OF_A_TOTAL,NumUsrs);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
|
|
@ -27482,7 +27482,7 @@ const char *Txt_Quota_exceeded =
|
|||
#elif L==8
|
||||
"Quota excedida!";
|
||||
#endif
|
||||
|
||||
/*
|
||||
const char *Txt_Ranking =
|
||||
#if L==0
|
||||
"Rànquing";
|
||||
|
@ -27503,7 +27503,7 @@ const char *Txt_Ranking =
|
|||
#elif L==8
|
||||
"Posição";
|
||||
#endif
|
||||
|
||||
*/
|
||||
const char *Txt_ReaBRders =
|
||||
#if L==0
|
||||
"Lec-<br />tores"; // Necessita traduccio
|
||||
|
|
Loading…
Reference in New Issue