mirror of https://github.com/acanas/swad-core.git
Version 22.35: Sep 30, 2022 Changes in layout of projects.
This commit is contained in:
parent
c1067681eb
commit
114f552583
|
@ -3245,6 +3245,10 @@ table.CELLS_PAD_10 > tbody > tr > td {padding:10px;}
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************** Projects ***********************************/
|
/******************************** Projects ***********************************/
|
||||||
|
.PRJ_LOCK
|
||||||
|
{
|
||||||
|
display:inline-block;
|
||||||
|
}
|
||||||
.PRJ_LST_USR
|
.PRJ_LST_USR
|
||||||
{
|
{
|
||||||
margin:0;
|
margin:0;
|
|
@ -468,7 +468,7 @@ static void Asg_PutIconsOneAsg (void *Assignments)
|
||||||
/***** Set anchor string *****/
|
/***** Set anchor string *****/
|
||||||
Frm_SetAnchorStr (((struct Asg_Assignments *) Assignments)->Asg.AsgCod,&Anchor);
|
Frm_SetAnchorStr (((struct Asg_Assignments *) Assignments)->Asg.AsgCod,&Anchor);
|
||||||
|
|
||||||
/***** Forms to remove/edit this assignment *****/
|
/***** Icons to remove/edit this assignment *****/
|
||||||
Asg_PutIconsToRemEditOneAsg (Assignments,Anchor);
|
Asg_PutIconsToRemEditOneAsg (Assignments,Anchor);
|
||||||
|
|
||||||
/***** Free anchor string *****/
|
/***** Free anchor string *****/
|
||||||
|
|
|
@ -606,10 +606,11 @@ TODO: Fix bug: error al enviar un mensaje a dos recipientes, error on duplicate
|
||||||
|
|
||||||
TODO: Attach pdf files in multimedia.
|
TODO: Attach pdf files in multimedia.
|
||||||
*/
|
*/
|
||||||
#define Log_PLATFORM_VERSION "SWAD 22.34 (2022-09-29)"
|
#define Log_PLATFORM_VERSION "SWAD 22.35 (2022-09-30)"
|
||||||
#define CSS_FILE "swad22.22.1.css"
|
#define CSS_FILE "swad22.35.css"
|
||||||
#define JS_FILE "swad21.100.js"
|
#define JS_FILE "swad21.100.js"
|
||||||
/*
|
/*
|
||||||
|
Version 22.35: Sep 30, 2022 Changes in layout of projects. (? lines)
|
||||||
Version 22.34: Sep 29, 2022 Changes in layout of assignments. (332721 lines)
|
Version 22.34: Sep 29, 2022 Changes in layout of assignments. (332721 lines)
|
||||||
Version 22.33.4: Sep 29, 2022 Code refactoring in program resources. (332711 lines)
|
Version 22.33.4: Sep 29, 2022 Code refactoring in program resources. (332711 lines)
|
||||||
Version 22.33.3: Sep 29, 2022 Fixed layout of marks file metadata. (332709 lines)
|
Version 22.33.3: Sep 29, 2022 Fixed layout of marks file metadata. (332709 lines)
|
||||||
|
|
505
swad_project.c
505
swad_project.c
File diff suppressed because it is too large
Load Diff
|
@ -132,22 +132,6 @@ typedef enum
|
||||||
Prj_ROLE_EVL = 3, // Evaluator
|
Prj_ROLE_EVL = 3, // Evaluator
|
||||||
} Prj_RoleInProject_t;
|
} Prj_RoleInProject_t;
|
||||||
|
|
||||||
/***** Struct to store context/status of projects *****/
|
|
||||||
struct Prj_Projects
|
|
||||||
{
|
|
||||||
struct
|
|
||||||
{
|
|
||||||
bool Editable;
|
|
||||||
} Config;
|
|
||||||
struct Prj_Filter Filter;
|
|
||||||
bool LstIsRead; // Is the list already read from database, or it needs to be read?
|
|
||||||
unsigned Num; // Number of projects
|
|
||||||
long *LstPrjCods; // List of project codes
|
|
||||||
Prj_Order_t SelectedOrder;
|
|
||||||
unsigned CurrentPage;
|
|
||||||
long PrjCod; // Current project
|
|
||||||
};
|
|
||||||
|
|
||||||
/***** Struct to store a project *****/
|
/***** Struct to store a project *****/
|
||||||
struct Prj_Project
|
struct Prj_Project
|
||||||
{
|
{
|
||||||
|
@ -168,6 +152,22 @@ struct Prj_Project
|
||||||
char URL[Cns_MAX_BYTES_WWW + 1];
|
char URL[Cns_MAX_BYTES_WWW + 1];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/***** Struct to store context/status of projects *****/
|
||||||
|
struct Prj_Projects
|
||||||
|
{
|
||||||
|
struct
|
||||||
|
{
|
||||||
|
bool Editable;
|
||||||
|
} Config;
|
||||||
|
struct Prj_Filter Filter;
|
||||||
|
bool LstIsRead; // Is the list already read from database, or it needs to be read?
|
||||||
|
unsigned Num; // Number of projects
|
||||||
|
long *LstPrjCods; // List of project codes
|
||||||
|
Prj_Order_t SelectedOrder;
|
||||||
|
unsigned CurrentPage;
|
||||||
|
struct Prj_Project Prj; // Selected/current project
|
||||||
|
};
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/***************************** Public prototypes *****************************/
|
/***************************** Public prototypes *****************************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
|
@ -48,13 +48,13 @@ void PrjRsc_GetLinkToProject (void)
|
||||||
|
|
||||||
/***** Get parameters *****/
|
/***** Get parameters *****/
|
||||||
Prj_GetParams (&Projects);
|
Prj_GetParams (&Projects);
|
||||||
Projects.PrjCod = Prj_GetParamPrjCod ();
|
Projects.Prj.PrjCod = Prj_GetParamPrjCod ();
|
||||||
|
|
||||||
/***** Get project title *****/
|
/***** Get project title *****/
|
||||||
PrjRsc_GetTitleFromPrjCod (Projects.PrjCod,Title,sizeof (Title) - 1);
|
PrjRsc_GetTitleFromPrjCod (Projects.Prj.PrjCod,Title,sizeof (Title) - 1);
|
||||||
|
|
||||||
/***** Copy link to PROJECT into resource clipboard *****/
|
/***** Copy link to PROJECT into resource clipboard *****/
|
||||||
Prg_DB_CopyToClipboard (PrgRsc_PROJECT,Projects.PrjCod);
|
Prg_DB_CopyToClipboard (PrgRsc_PROJECT,Projects.Prj.PrjCod);
|
||||||
|
|
||||||
/***** Write sucess message *****/
|
/***** Write sucess message *****/
|
||||||
Ale_ShowAlert (Ale_SUCCESS,Txt_Link_to_resource_X_copied_into_clipboard,
|
Ale_ShowAlert (Ale_SUCCESS,Txt_Link_to_resource_X_copied_into_clipboard,
|
||||||
|
|
Loading…
Reference in New Issue