Version 16.169.3

This commit is contained in:
Antonio Cañas Vargas 2017-03-27 00:11:38 +02:00
parent 52e8216a7e
commit a98d2082f7
4 changed files with 31 additions and 2 deletions

View File

@ -73,6 +73,20 @@ static void Ban_PutFormToCreateBanner (void);
static void Ban_PutHeadBanners (void);
static void Ban_CreateBanner (struct Banner *Ban);
/*****************************************************************************/
/************************* Put link to view banners **************************/
/*****************************************************************************/
void Ban_PutLinkToViewBanners (void)
{
extern const char *Txt_Banners;
Lay_PutContextualLink (ActSeeBan,NULL,
"picture64x64.gif",
Txt_Banners,Txt_Banners,
NULL);
}
/*****************************************************************************/
/*************************** List all the banners ****************************/
/*****************************************************************************/

View File

@ -56,6 +56,7 @@ struct Banner
/***************************** Public prototypes *****************************/
/*****************************************************************************/
void Ban_PutLinkToViewBanners (void);
void Ban_SeeBanners (void);
void Ban_EditBanners (void);
void Ban_FreeListBanners (void);

View File

@ -211,14 +211,17 @@
/****************************** Public constants *****************************/
/*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 16.169.2 (2017-03-26)"
#define Log_PLATFORM_VERSION "SWAD 16.169.3 (2017-03-26)"
#define CSS_FILE "swad16.166.css"
#define JS_FILE "swad16.144.js"
// 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 16.169.3: Mar 26, 2017 Link to banners from institutional links. (? lines)
Version 16.169.3: Mar 26, 2017 Link to banners from institutional links. (217592 lines)
Copy the following icon to icon public directory:
sudo cp -a icon/picture64x64.gif /var/www/html/swad/icon/
Version 16.169.2: Mar 26, 2017 Fix bug in institutional links.
Some messages removed in edition of banners, links, etc. (217570 lines)
Version 16.169.1: Mar 26, 2017 Changed help URLs related to degree types. (217661 lines)

View File

@ -84,6 +84,17 @@ void Lnk_SeeLinks (void)
extern const char *Txt_Create_another_link;
extern const char *Txt_Create_link;
/***** Put contextual links *****/
if (Gbl.Usrs.Me.LoggedRole == Rol_SYS_ADM) // Only for system admins
{
fprintf (Gbl.F.Out,"<div class=\"CONTEXT_MENU\">");
/* Put link to view banners */
Ban_PutLinkToViewBanners ();
fprintf (Gbl.F.Out,"</div>");
}
/***** Get list of links *****/
Lnk_GetListLinks ();