diff --git a/swad_changelog.h b/swad_changelog.h
index 99b387c68..8dc677dc4 100644
--- a/swad_changelog.h
+++ b/swad_changelog.h
@@ -35,11 +35,12 @@
/****************************** Public constants *****************************/
/*****************************************************************************/
-#define Log_PLATFORM_VERSION "SWAD 14.48.1 (2014/12/30)"
+#define Log_PLATFORM_VERSION "SWAD 14.48.2 (2014/12/30)"
// 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.48.2 :Dec 30, 2014 New links to see the results of test exams. (174539 lines)
Version 14.48.1 :Dec 30, 2014 The text of some menu items has been reduced to a single word.
Fixed bugs in layout. (174502 lines)
Version 14.48 :Dec 30, 2014 Changes in layout and CSS. (174502 lines)
diff --git a/swad_test.c b/swad_test.c
index 0216cf1da..664a44c77 100644
--- a/swad_test.c
+++ b/swad_test.c
@@ -131,6 +131,7 @@ extern struct Globals Gbl;
/***************************** Internal prototypes ***************************/
/*****************************************************************************/
+static void Tst_PutFormToSeeResultsOfUsersTests (void);
static void Tst_PutFormToEdit (void);
static void Tst_PutFormToConfigure (void);
@@ -251,10 +252,12 @@ void Tst_ShowFormAskTst (void)
Tst_GetConfigTstFromDB ();
/***** Put form to go to test edition and configuration *****/
- if (Gbl.Usrs.Me.LoggedRole == Rol_ROLE_TEACHER ||
+ if (Gbl.Usrs.Me.LoggedRole == Rol_ROLE_STUDENT ||
+ Gbl.Usrs.Me.LoggedRole == Rol_ROLE_TEACHER ||
Gbl.Usrs.Me.LoggedRole == Rol_ROLE_SUPERUSER)
{
fprintf (Gbl.F.Out,"
");
+ Tst_PutFormToSeeResultsOfUsersTests ();
Tst_PutFormToEdit ();
Tst_PutFormToConfigure ();
fprintf (Gbl.F.Out,"
");
@@ -304,6 +307,22 @@ void Tst_ShowFormAskTst (void)
DB_FreeMySQLResult (&mysql_res);
}
+/*****************************************************************************/
+/*************** Write a form to go to result of users' tests ****************/
+/*****************************************************************************/
+
+static void Tst_PutFormToSeeResultsOfUsersTests (void)
+ {
+ extern const char *The_ClassFormul[The_NUM_THEMES];
+ extern const char *Txt_Results_tests;
+
+ Act_FormStart (Gbl.Usrs.Me.LoggedRole == Rol_ROLE_STUDENT ? ActReqSeeMyTstExa:
+ ActReqSeeUsrTstExa);
+ Act_LinkFormSubmit (Txt_Results_tests,The_ClassFormul[Gbl.Prefs.Theme]);
+ Lay_PutSendIcon ("file",Txt_Results_tests,Txt_Results_tests);
+ fprintf (Gbl.F.Out,"");
+ }
+
/*****************************************************************************/
/************** Write a form to go to edition of test questions **************/
/*****************************************************************************/
diff --git a/swad_text.c b/swad_text.c
index c98b53677..ecc679e37 100644
--- a/swad_text.c
+++ b/swad_text.c
@@ -30451,6 +30451,27 @@ const char *Txt_results_per_page =
"results per page"; // Necessita de tradução
#endif
+const char *Txt_Results_tests =
+#if L==0
+ "Resultats tests";
+#elif L==1
+ "Ergebnisse Tests";
+#elif L==2
+ "Results tests";
+#elif L==3
+ "Resultados tests";
+#elif L==4
+ "Résultats tests";
+#elif L==5
+ "Resultados tests"; // Okoteve traducción
+#elif L==6
+ "Risultati test";
+#elif L==7
+ "Wyniki testów";
+#elif L==8
+ "Resultados testes";
+#endif
+
const char *Txt_Retype_new_password =
#if L==0
"Reescriviu la nova contrasenya";