From a98d2082f7d71437d7e996ddcf1510ad3b7ebcdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Mon, 27 Mar 2017 00:11:38 +0200 Subject: [PATCH] Version 16.169.3 --- swad_banner.c | 14 ++++++++++++++ swad_banner.h | 1 + swad_changelog.h | 7 +++++-- swad_link.c | 11 +++++++++++ 4 files changed, 31 insertions(+), 2 deletions(-) diff --git a/swad_banner.c b/swad_banner.c index c14dd15e..c8815cab 100644 --- a/swad_banner.c +++ b/swad_banner.c @@ -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 ****************************/ /*****************************************************************************/ diff --git a/swad_banner.h b/swad_banner.h index 9e1cdc4f..b80ad605 100644 --- a/swad_banner.h +++ b/swad_banner.h @@ -56,6 +56,7 @@ struct Banner /***************************** Public prototypes *****************************/ /*****************************************************************************/ +void Ban_PutLinkToViewBanners (void); void Ban_SeeBanners (void); void Ban_EditBanners (void); void Ban_FreeListBanners (void); diff --git a/swad_changelog.h b/swad_changelog.h index 693570ed..d2f1a155 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -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) diff --git a/swad_link.c b/swad_link.c index f343b424..a924b7ba 100644 --- a/swad_link.c +++ b/swad_link.c @@ -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,"
"); + + /* Put link to view banners */ + Ban_PutLinkToViewBanners (); + + fprintf (Gbl.F.Out,"
"); + } + /***** Get list of links *****/ Lnk_GetListLinks ();