mirror of https://github.com/acanas/swad-core.git
Version18.116.7
This commit is contained in:
parent
5fbb40778d
commit
803860237f
|
@ -401,6 +401,7 @@ static void Ban_ListBannersForEdition (void)
|
|||
{
|
||||
unsigned NumBan;
|
||||
struct Banner *Ban;
|
||||
char *Anchor = NULL;
|
||||
|
||||
/***** Start table *****/
|
||||
Tbl_StartTableWide (2);
|
||||
|
@ -416,6 +417,9 @@ static void Ban_ListBannersForEdition (void)
|
|||
Ban = &Gbl.Banners.Lst[NumBan];
|
||||
Gbl.Banners.BanCodToEdit = Ban->BanCod;
|
||||
|
||||
/* Set anchor string */
|
||||
Frm_SetAnchorStr (Ban->BanCod,&Anchor);
|
||||
|
||||
/* Put icon to remove banner */
|
||||
fprintf (Gbl.F.Out,"<tr>"
|
||||
"<td class=\"BM\">");
|
||||
|
@ -425,18 +429,19 @@ static void Ban_ListBannersForEdition (void)
|
|||
/* Put icon to hide/show banner */
|
||||
fprintf (Gbl.F.Out,"<td class=\"BM\">");
|
||||
if (Ban->Hidden)
|
||||
Ico_PutContextualIconToUnhide (ActShoBan,NULL,Ban_PutParamBanCodToEdit);
|
||||
Ico_PutContextualIconToUnhide (ActShoBan,Anchor,Ban_PutParamBanCodToEdit);
|
||||
else
|
||||
Ico_PutContextualIconToHide (ActHidBan,NULL,Ban_PutParamBanCodToEdit);
|
||||
Ico_PutContextualIconToHide (ActHidBan,Anchor,Ban_PutParamBanCodToEdit);
|
||||
fprintf (Gbl.F.Out,"</td>");
|
||||
|
||||
/* Banner code */
|
||||
fprintf (Gbl.F.Out,"<td class=\"%s RIGHT_MIDDLE\">"
|
||||
"%ld "
|
||||
"</td>",
|
||||
fprintf (Gbl.F.Out,"<td class=\"%s RIGHT_MIDDLE\">",
|
||||
Ban->Hidden ? "DAT_LIGHT" :
|
||||
"DAT",
|
||||
Ban->BanCod);
|
||||
"DAT");
|
||||
Lay_StartArticle (Anchor);
|
||||
fprintf (Gbl.F.Out,"%ld",Ban->BanCod);
|
||||
Lay_EndArticle ();
|
||||
fprintf (Gbl.F.Out,"</td>");
|
||||
|
||||
/* Banner short name */
|
||||
fprintf (Gbl.F.Out,"<td class=\"CENTER_MIDDLE\">");
|
||||
|
@ -485,6 +490,9 @@ static void Ban_ListBannersForEdition (void)
|
|||
Frm_EndForm ();
|
||||
fprintf (Gbl.F.Out,"</td>"
|
||||
"</tr>");
|
||||
|
||||
/* Free anchor string */
|
||||
Frm_FreeAnchorStr (Anchor);
|
||||
}
|
||||
|
||||
/***** End table *****/
|
||||
|
@ -576,9 +584,6 @@ void Ban_HideBanner (void)
|
|||
|
||||
static void Ban_ShowOrHideBanner (bool Hide)
|
||||
{
|
||||
extern const char *Txt_The_banner_X_is_now_hidden;
|
||||
extern const char *Txt_The_banner_X_is_now_visible;
|
||||
|
||||
/***** Get banner code *****/
|
||||
if ((Ban_EditingBan->BanCod = Ban_GetParamBanCod ()) == -1L)
|
||||
Lay_ShowErrorAndExit ("Code of banner is missing.");
|
||||
|
@ -594,12 +599,6 @@ static void Ban_ShowOrHideBanner (bool Hide)
|
|||
Hide ? 'Y' :
|
||||
'N',
|
||||
Ban_EditingBan->BanCod);
|
||||
|
||||
/***** Write message to show the change made *****/
|
||||
Ale_CreateAlert (Ale_SUCCESS,NULL,
|
||||
Hide ? Txt_The_banner_X_is_now_hidden :
|
||||
Txt_The_banner_X_is_now_visible,
|
||||
Ban_EditingBan->ShrtName);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
|
|
@ -448,10 +448,11 @@ En OpenSWAD:
|
|||
ps2pdf source.ps destination.pdf
|
||||
*/
|
||||
|
||||
#define Log_PLATFORM_VERSION "SWAD 18.116.6 (2019-04-20)"
|
||||
#define Log_PLATFORM_VERSION "SWAD 18.116.7 (2019-04-20)"
|
||||
#define CSS_FILE "swad18.112.1.css"
|
||||
#define JS_FILE "swad18.116.5.js"
|
||||
/*
|
||||
Version 18.116.7: Apr 20, 2019 Changed the behaviour of hiding/showing a banner. (242934 lines)
|
||||
Version 18.116.6: Apr 20, 2019 Changed the behaviour of hiding/showing an assignment. (242974 lines)
|
||||
Version 18.116.5: Apr 20, 2019 Changed the behaviour of hiding/showing an attendance event.
|
||||
Code refactoring related to anchors. (243014 lines)
|
||||
|
|
42
swad_text.c
42
swad_text.c
|
@ -43034,48 +43034,6 @@ const char *Txt_The_banner_X_has_been_renamed_as_Y = // Warning: it is very impo
|
|||
"O banner <strong>%s</strong> foi renomeado como <strong>%s</strong>.";
|
||||
#endif
|
||||
|
||||
const char *Txt_The_banner_X_is_now_hidden = // Warning: it is very important to include %s in the following sentences
|
||||
#if L==1 // ca
|
||||
"El banner <strong>%s</strong> ara està ocult.";
|
||||
#elif L==2 // de
|
||||
"Der Werbebanner <strong>%s</strong> ist jetzt ausgeblendet."; // Need Übersetzung
|
||||
#elif L==3 // en
|
||||
"The banner <strong>%s</strong> is now hidden.";
|
||||
#elif L==4 // es
|
||||
"El banner <strong>%s</strong> ahora está oculto.";
|
||||
#elif L==5 // fr
|
||||
"Le banner <strong>%s</strong> est maintenant caché.";
|
||||
#elif L==6 // gn
|
||||
"El banner <strong>%s</strong> ahora está oculto."; // Okoteve traducción
|
||||
#elif L==7 // it
|
||||
"Il banner <strong>%s</strong> è ora nascosto.";
|
||||
#elif L==8 // pl
|
||||
"The banner <strong>%s</strong> jest ukryte.";
|
||||
#elif L==9 // pt
|
||||
"O banner <strong>%s</strong> é agora oculto.";
|
||||
#endif
|
||||
|
||||
const char *Txt_The_banner_X_is_now_visible = // Warning: it is very important to include %s in the following sentences
|
||||
#if L==1 // ca
|
||||
"El banner <strong>%s</strong> ara està visible.";
|
||||
#elif L==2 // de
|
||||
"Der Werbebanner <strong>%s</strong> ist jetzt sichtbar."; // Need Übersetzung
|
||||
#elif L==3 // en
|
||||
"The banner <strong>%s</strong> is now visible.";
|
||||
#elif L==4 // es
|
||||
"El banner <strong>%s</strong> ahora está visible.";
|
||||
#elif L==5 // fr
|
||||
"Le banner <strong>%s</strong> est maintenant visible.";
|
||||
#elif L==6 // gn
|
||||
"El banner <strong>%s</strong> ahora está visible."; // Okoteve traducción
|
||||
#elif L==7 // it
|
||||
"Il banner <strong>%s</strong> è ora visible.";
|
||||
#elif L==8 // pl
|
||||
"The banner <strong>%s</strong> jest teraz widoczny.";
|
||||
#elif L==9 // pt
|
||||
"O banner <strong>%s</strong> é agora visible.";
|
||||
#endif
|
||||
|
||||
const char *Txt_The_capacity_of_classroom_X_has_not_changed = // Warning: it is very important to include %s in the following sentences
|
||||
#if L==1 // ca
|
||||
"L'aforament de l'aula <strong>%s</strong> no ha canviat.";
|
||||
|
|
Loading…
Reference in New Issue