mirror of https://github.com/acanas/swad-core.git
Version19.40.2
This commit is contained in:
parent
d9dddf5a65
commit
54edf78c75
|
@ -2826,7 +2826,7 @@ a:hover img.CENTRE_PHOTO_SHOW
|
|||
.MATCH_SCORE_BAR
|
||||
{
|
||||
display:inline-block;
|
||||
height:10px;
|
||||
height:12px;
|
||||
vertical-align:middle;
|
||||
}
|
||||
|
|
@ -487,13 +487,14 @@ enscript -2 --landscape --color --file-align=2 --highlight --line-numbers -o - *
|
|||
En OpenSWAD:
|
||||
ps2pdf source.ps destination.pdf
|
||||
*/
|
||||
#define Log_PLATFORM_VERSION "SWAD 19.40.1 (2019-10-21)"
|
||||
#define CSS_FILE "swad19.40.css"
|
||||
#define Log_PLATFORM_VERSION "SWAD 19.40.2 (2019-10-21)"
|
||||
#define CSS_FILE "swad19.40.2.css"
|
||||
#define JS_FILE "swad19.39.js"
|
||||
/*
|
||||
// TODO: Perico: poner un candado de bloqueo de creación/edición de proyectos (por ejemplo en asignaturas obsoletas)
|
||||
// TODO: Hacer un nuevo rol en los TFG: tutor externo (profesor de áreas no vinculadas con el centro, profesionales de empresas, etc.)
|
||||
|
||||
Version 19.40.2: Oct 21, 2019 Fixed bug in score table. (245777 lines)
|
||||
Version 19.40.1: Oct 21, 2019 Coloured bars in score table. (245774 lines)
|
||||
Copy the following 10 icons to icon public directory:
|
||||
sudo cp -a icon/score*_1x1.png /var/www/html/swad/icon/
|
||||
|
|
|
@ -2571,6 +2571,8 @@ static void Mch_ShowMatchScore (struct Match *Match)
|
|||
|
||||
/***** Draw empty rows until reaching the adequate row *****/
|
||||
NumRowForThisScore = (unsigned) ((MaxScore - Score) * NumRowsPerScorePoint);
|
||||
if (NumRowForThisScore == Mch_NUM_ROWS_SCORE)
|
||||
NumRowForThisScore = Mch_NUM_ROWS_SCORE - 1;
|
||||
for (;
|
||||
NumRow < NumRowForThisScore;
|
||||
NumRow++)
|
||||
|
@ -2651,7 +2653,7 @@ static void Mch_DrawScoreRow (double Score,double MinScore,double MaxScore,
|
|||
+----------------- MinScore
|
||||
*/
|
||||
Color = (unsigned) (((Score - MinScore) / (MaxScore - MinScore)) * 10.0);
|
||||
if (Color >= 10)
|
||||
if (Color == 10)
|
||||
Color = 9;
|
||||
|
||||
/***** Compute bar width *****/
|
||||
|
|
Loading…
Reference in New Issue