mirror of
https://github.com/acanas/swad-core.git
synced 2024-06-15 21:24:07 +02:00
Version 15.160.4
This commit is contained in:
parent
0949f0d185
commit
332886a725
|
@ -137,14 +137,15 @@
|
||||||
/****************************** Public constants *****************************/
|
/****************************** Public constants *****************************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
#define Log_PLATFORM_VERSION "SWAD 15.160.3 (2016-03-24)"
|
#define Log_PLATFORM_VERSION "SWAD 15.160.4 (2016-03-24)"
|
||||||
#define CSS_FILE "swad15.160.2.css"
|
#define CSS_FILE "swad15.160.2.css"
|
||||||
#define JS_FILE "swad15.131.3.js"
|
#define JS_FILE "swad15.131.3.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 15.160.3: Mar 24, 2016 Put contextual icon "update" integrate in frame in "Who to follow". (196538 lines)
|
Version 15.160.4: Mar 24, 2016 Put contextual icon "update" integrated in frame in "Connected users". (196543 lines)
|
||||||
|
Version 15.160.3: Mar 24, 2016 Put contextual icon "update" integrated in frame in "Who to follow". (196538 lines)
|
||||||
Version 15.160.2: Mar 22, 2016 Changes in layout of tagline. (196512 lines)
|
Version 15.160.2: Mar 22, 2016 Changes in layout of tagline. (196512 lines)
|
||||||
Version 15.160.1: Mar 21, 2016 Changes in layout of tagline. (196504 lines)
|
Version 15.160.1: Mar 21, 2016 Changes in layout of tagline. (196504 lines)
|
||||||
Version 15.160: Mar 21, 2016 Changes in forms to login and to create new account. (196423 lines)
|
Version 15.160: Mar 21, 2016 Changes in forms to login and to create new account. (196423 lines)
|
||||||
|
|
|
@ -52,6 +52,8 @@ extern struct Globals Gbl;
|
||||||
/*************************** Internal prototypes *****************************/
|
/*************************** Internal prototypes *****************************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
static void Con_PutIconToUpdateConnected (void);
|
||||||
|
|
||||||
static void Con_ComputeConnectedUsrsWithARoleBelongingToCurrentCrs (Rol_Role_t Role);
|
static void Con_ComputeConnectedUsrsWithARoleBelongingToCurrentCrs (Rol_Role_t Role);
|
||||||
static void Con_ShowConnectedUsrsBelongingToLocation (void);
|
static void Con_ShowConnectedUsrsBelongingToLocation (void);
|
||||||
|
|
||||||
|
@ -73,10 +75,8 @@ static void Con_WriteHoursMinutesSecondsFromSeconds (time_t Seconds);
|
||||||
|
|
||||||
void Con_ShowConnectedUsrs (void)
|
void Con_ShowConnectedUsrs (void)
|
||||||
{
|
{
|
||||||
extern const char *The_ClassFormBold[The_NUM_THEMES];
|
|
||||||
extern const char *Txt_Connected_users;
|
extern const char *Txt_Connected_users;
|
||||||
extern const char *Txt_MONTHS_SMALL_SHORT[12];
|
extern const char *Txt_MONTHS_SMALL_SHORT[12];
|
||||||
extern const char *Txt_Update;
|
|
||||||
|
|
||||||
/***** Link to show last clicks in real time *****/
|
/***** Link to show last clicks in real time *****/
|
||||||
if (Gbl.Usrs.Me.Logged)
|
if (Gbl.Usrs.Me.Logged)
|
||||||
|
@ -98,16 +98,7 @@ void Con_ShowConnectedUsrs (void)
|
||||||
Gbl.Now.Date.Day,
|
Gbl.Now.Date.Day,
|
||||||
Gbl.Now.Time.Hour,
|
Gbl.Now.Time.Hour,
|
||||||
Gbl.Now.Time.Minute);
|
Gbl.Now.Time.Minute);
|
||||||
Lay_StartRoundFrame (NULL,Gbl.Title,NULL);
|
Lay_StartRoundFrame (NULL,Gbl.Title,Con_PutIconToUpdateConnected);
|
||||||
|
|
||||||
/***** Put form to update connected users *****/
|
|
||||||
fprintf (Gbl.F.Out,"<div class=\"CONTEXT_MENU\">");
|
|
||||||
Act_FormStart (ActLstCon);
|
|
||||||
Sco_PutParamScope (Gbl.Scope.Current);
|
|
||||||
Act_LinkFormSubmitAnimated (Txt_Update,The_ClassFormBold[Gbl.Prefs.Theme]);
|
|
||||||
Lay_PutCalculateIconWithText (Txt_Update,Txt_Update);
|
|
||||||
Act_FormEnd ();
|
|
||||||
fprintf (Gbl.F.Out,"</div>");
|
|
||||||
|
|
||||||
/***** Number of connected users in the whole platform *****/
|
/***** Number of connected users in the whole platform *****/
|
||||||
Con_ShowGlobalConnectedUsrs ();
|
Con_ShowGlobalConnectedUsrs ();
|
||||||
|
@ -119,6 +110,22 @@ void Con_ShowConnectedUsrs (void)
|
||||||
Lay_EndRoundFrame ();
|
Lay_EndRoundFrame ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
/******************** Put icon to update connected users *********************/
|
||||||
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
static void Con_PutIconToUpdateConnected (void)
|
||||||
|
{
|
||||||
|
extern const char *The_ClassFormBold[The_NUM_THEMES];
|
||||||
|
extern const char *Txt_Update;
|
||||||
|
|
||||||
|
Act_FormStart (ActLstCon);
|
||||||
|
Sco_PutParamScope (Gbl.Scope.Current);
|
||||||
|
Act_LinkFormSubmitAnimated (Txt_Update,The_ClassFormBold[Gbl.Prefs.Theme]);
|
||||||
|
Lay_PutCalculateIcon (Txt_Update);
|
||||||
|
Act_FormEnd ();
|
||||||
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/*************** Put a link to show last clicks in real time *****************/
|
/*************** Put a link to show last clicks in real time *****************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
|
@ -66,7 +66,7 @@ extern struct Globals Gbl;
|
||||||
/***************************** Private prototypes ****************************/
|
/***************************** Private prototypes ****************************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
static void Fol_UpdateWhoToFollow (void);
|
static void Fol_PutIconToUpdateWhoToFollow (void);
|
||||||
|
|
||||||
static void Fol_ShowNumberOfFollowingOrFollowers (const struct UsrData *UsrDat,
|
static void Fol_ShowNumberOfFollowingOrFollowers (const struct UsrData *UsrDat,
|
||||||
unsigned NumUsrs,
|
unsigned NumUsrs,
|
||||||
|
@ -209,7 +209,7 @@ void Fol_SuggestWhoToFollow (void)
|
||||||
if (NumUsrs)
|
if (NumUsrs)
|
||||||
{
|
{
|
||||||
/***** Start frame *****/
|
/***** Start frame *****/
|
||||||
Lay_StartRoundFrame ("560px",Txt_Who_to_follow,Fol_UpdateWhoToFollow);
|
Lay_StartRoundFrame ("560px",Txt_Who_to_follow,Fol_PutIconToUpdateWhoToFollow);
|
||||||
|
|
||||||
/***** Initialize structure with user's data *****/
|
/***** Initialize structure with user's data *****/
|
||||||
Usr_UsrDataConstructor (&UsrDat);
|
Usr_UsrDataConstructor (&UsrDat);
|
||||||
|
@ -257,7 +257,7 @@ void Fol_SuggestWhoToFollow (void)
|
||||||
/********************* Put icon to update who to follow **********************/
|
/********************* Put icon to update who to follow **********************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
static void Fol_UpdateWhoToFollow (void)
|
static void Fol_PutIconToUpdateWhoToFollow (void)
|
||||||
{
|
{
|
||||||
extern const char *The_ClassFormBold[The_NUM_THEMES];
|
extern const char *The_ClassFormBold[The_NUM_THEMES];
|
||||||
extern const char *Txt_Update;
|
extern const char *Txt_Update;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user