diff --git a/swad_changelog.h b/swad_changelog.h index 7382ab30f..64a2edc4e 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -41,11 +41,12 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 14.73.3 (2015/02/04)" +#define Log_PLATFORM_VERSION "SWAD 14.73.4 (2015/02/04)" // 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 | tail -1 /* + Version 14.73.4: Feb 04, 2015 Changes in institution configuration. (177103 lines) Version 14.73.3: Feb 04, 2015 Changes in degree configuration. (177080 lines) Version 14.73.2: Feb 04, 2015 Changes in centre configuration. (177057 lines) Version 14.73.1: Feb 04, 2015 Fixed bug in logo of centre. (177012 lines) diff --git a/swad_institution.c b/swad_institution.c index 2321624cc..e7ac9fc50 100644 --- a/swad_institution.c +++ b/swad_institution.c @@ -229,6 +229,7 @@ static void Ins_Configuration (bool PrintView) extern const char *Txt_Centres; extern const char *Txt_Institution; extern const char *Txt_Short_name; + extern const char *Txt_Web; extern const char *Txt_Shortcut_to_this_institution; extern const char *Txt_QR_code; extern const char *Txt_Degrees; @@ -240,16 +241,16 @@ static void Ins_Configuration (bool PrintView) if (Gbl.CurrentIns.Ins.InsCod > 0) { /***** Links to show centres, to print view and to upload logo *****/ - fprintf (Gbl.F.Out,"
"); - - /* Link to show centres */ - Act_FormStart (ActSeeCtr); - Act_LinkFormSubmit (Txt_Centres,The_ClassFormul[Gbl.Prefs.Theme]); - Lay_PutSendIcon ("ctr",Txt_Centres,Txt_Centres); - fprintf (Gbl.F.Out,""); - if (!PrintView) { + fprintf (Gbl.F.Out,"
"); + + /* Link to show centres */ + Act_FormStart (ActSeeCtr); + Act_LinkFormSubmit (Txt_Centres,The_ClassFormul[Gbl.Prefs.Theme]); + Lay_PutSendIcon ("ctr",Txt_Centres,Txt_Centres); + fprintf (Gbl.F.Out,""); + /* Link to print view */ Lay_PutLinkToPrintView1 (ActPrnInsInf); Lay_PutLinkToPrintView2 (); @@ -257,9 +258,9 @@ static void Ins_Configuration (bool PrintView) /* Link to upload logo */ if (Gbl.Usrs.Me.LoggedRole >= Rol_ROLE_INS_ADM) Log_PutFormToChangeLogo (Sco_SCOPE_INS); - } - fprintf (Gbl.F.Out,"
"); + fprintf (Gbl.F.Out,"
"); + } /***** Start frame *****/ Lay_StartRoundFrameTable10 (NULL,2,NULL); @@ -318,7 +319,29 @@ static void Ins_Configuration (bool PrintView) Txt_Short_name, Gbl.CurrentIns.Ins.ShortName); - /***** Link to the institution *****/ + /***** Institution WWW *****/ + if (Gbl.CurrentIns.Ins.WWW[0]) + { + fprintf (Gbl.F.Out,"" + "" + "%s:" + "" + "" + "", + The_ClassFormul[Gbl.Prefs.Theme], + Txt_Web, + Gbl.CurrentIns.Ins.WWW); + Str_LimitLengthHTMLStr (Gbl.CurrentIns.Ins.WWW,20); + fprintf (Gbl.F.Out,"%s" + "" + "" + "", + Gbl.CurrentIns.Ins.WWW); + } + + /***** Shortcut to the institution *****/ fprintf (Gbl.F.Out,"" ""