diff --git a/swad_changelog.h b/swad_changelog.h index e098d1dcb..73e84bac2 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -46,6 +46,7 @@ // 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.3: Feb 04, 2015 Changes in degree configuration. (? 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) Version 14.73: Feb 03, 2015 New options to remove institution, centre and degree icons. (177007 lines) diff --git a/swad_degree.c b/swad_degree.c index 174dd130e..7693b7de3 100644 --- a/swad_degree.c +++ b/swad_degree.c @@ -291,6 +291,7 @@ static void Deg_Configuration (bool PrintView) extern const char *Txt_Courses; extern const char *Txt_Degree; extern const char *Txt_Short_name; + extern const char *Txt_Web; extern const char *Txt_Shortcut_to_this_degree; extern const char *Txt_QR_code; extern const char *Txt_ROLES_PLURAL_Abc[Rol_NUM_ROLES][Usr_NUM_SEXS]; @@ -299,16 +300,16 @@ static void Deg_Configuration (bool PrintView) if (Gbl.CurrentDeg.Deg.DegCod > 0) { /***** Links to show courses, to print view and to upload logo *****/ - fprintf (Gbl.F.Out,"
"); - - /* Link to show courses */ - Act_FormStart (ActSeeCrs); - Act_LinkFormSubmit (Txt_Courses,The_ClassFormul[Gbl.Prefs.Theme]); - Lay_PutSendIcon ("crs",Txt_Courses,Txt_Courses); - fprintf (Gbl.F.Out,""); - if (!PrintView) { + fprintf (Gbl.F.Out,"
"); + + /* Link to show courses */ + Act_FormStart (ActSeeCrs); + Act_LinkFormSubmit (Txt_Courses,The_ClassFormul[Gbl.Prefs.Theme]); + Lay_PutSendIcon ("crs",Txt_Courses,Txt_Courses); + fprintf (Gbl.F.Out,""); + /* Link to print view */ Lay_PutLinkToPrintView1 (ActPrnDegInf); Lay_PutLinkToPrintView2 (); @@ -316,9 +317,10 @@ static void Deg_Configuration (bool PrintView) /* Link to upload logo */ if (Gbl.Usrs.Me.LoggedRole >= Rol_ROLE_DEG_ADM) Log_PutFormToChangeLogo (Sco_SCOPE_DEG); + + fprintf (Gbl.F.Out,"
"); } - fprintf (Gbl.F.Out,"
"); /***** Start frame *****/ Lay_StartRoundFrameTable10 (NULL,2,NULL); @@ -378,7 +380,29 @@ static void Deg_Configuration (bool PrintView) Txt_Short_name, Gbl.CurrentDeg.Deg.ShortName); - /***** Link to the degree *****/ + /***** Degree WWW *****/ + if (Gbl.CurrentDeg.Deg.WWW[0]) + { + fprintf (Gbl.F.Out,"" + "" + "%s:" + "" + "" + "", + The_ClassFormul[Gbl.Prefs.Theme], + Txt_Web, + Gbl.CurrentDeg.Deg.WWW); + Str_LimitLengthHTMLStr (Gbl.CurrentDeg.Deg.WWW,20); + fprintf (Gbl.F.Out,"%s" + "" + "" + "", + Gbl.CurrentDeg.Deg.WWW); + } + + /***** Shortcut to the degree *****/ fprintf (Gbl.F.Out,"" ""