Version 22.35: Sep 30, 2022 Changes in layout of projects.

This commit is contained in:
acanas 2022-09-30 00:19:57 +02:00
parent c1067681eb
commit 114f552583
6 changed files with 264 additions and 290 deletions

View File

@ -3245,6 +3245,10 @@ table.CELLS_PAD_10 > tbody > tr > td {padding:10px;}
}
/******************************** Projects ***********************************/
.PRJ_LOCK
{
display:inline-block;
}
.PRJ_LST_USR
{
margin:0;

View File

@ -468,7 +468,7 @@ static void Asg_PutIconsOneAsg (void *Assignments)
/***** Set anchor string *****/
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);
/***** Free anchor string *****/

View File

@ -606,10 +606,11 @@ TODO: Fix bug: error al enviar un mensaje a dos recipientes, error on duplicate
TODO: Attach pdf files in multimedia.
*/
#define Log_PLATFORM_VERSION "SWAD 22.34 (2022-09-29)"
#define CSS_FILE "swad22.22.1.css"
#define Log_PLATFORM_VERSION "SWAD 22.35 (2022-09-30)"
#define CSS_FILE "swad22.35.css"
#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.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)

File diff suppressed because it is too large Load Diff

View File

@ -132,22 +132,6 @@ typedef enum
Prj_ROLE_EVL = 3, // Evaluator
} 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 Prj_Project
{
@ -168,6 +152,22 @@ struct Prj_Project
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 *****************************/
/*****************************************************************************/

View File

@ -48,13 +48,13 @@ void PrjRsc_GetLinkToProject (void)
/***** Get parameters *****/
Prj_GetParams (&Projects);
Projects.PrjCod = Prj_GetParamPrjCod ();
Projects.Prj.PrjCod = Prj_GetParamPrjCod ();
/***** 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 *****/
Prg_DB_CopyToClipboard (PrgRsc_PROJECT,Projects.PrjCod);
Prg_DB_CopyToClipboard (PrgRsc_PROJECT,Projects.Prj.PrjCod);
/***** Write sucess message *****/
Ale_ShowAlert (Ale_SUCCESS,Txt_Link_to_resource_X_copied_into_clipboard,