Itay,

When a student displays a problem with the parameter CSS file to link(cssfile) 
set to point at a CSS file, and in effect for the current student, then the 
styles defined in that file will apply when rendering the problem.  Whether the 
folder was previously opened (and submissions were made) is immaterial.

However, currently if you select "Manual Grading/View Submissions" from the 
Grading interface and select "Select individual students to grade and view 
submissions" and the choose either "one student" or "all students" in the "View 
Problem Text" row, those CSS styles are applied when rendering the student's 
current view of the problem.

The reason is that for each resource, when LON-CAPA adds the <link> tag(s) 
which reference(s) the css file(s) in effect, those tags are included between 
the <head></head> tags in the resource, but during assembly of the grading page 
the HTML in the head portion of each rendered resource is removed.

Anyway, I filed a bug report: https://bugs.loncapa.org/show_bug.cgi?id=6943, 
implemented changes so css file(s) for resource(s) will be incorporated in the 
grading page, when rendering of the student's current view of the problem for 
the grading interface, and marked 6943 as resolved.

Stuart Raeburn
LON-CAPA Academic Consortium
________________________________________
From: LON-CAPA-users <lon-capa-users-boun...@mail.lon-capa.org> on behalf of 
Itay <it...@nospammail.net>
Sent: Friday, November 6, 2020 7:42 AM
To: Discussion list for LON-CAPA users
Subject: [LON-CAPA-users] Application of new style after problem opening

Hi

I applied a new display style (parameter : css file to link) to a folder 
containing already-opened problems.
My assumption was that the new styling will apply (after the standard 10min 
grace period).
Looking at previous student submissions, the problems are displayed with the 
old style.

Am I correct to assume that when the student will revisit a problem she will be 
presented with the new shiny style?

Thank you

_______________________________________________
LON-CAPA-users mailing list
LON-CAPA-users@mail.lon-capa.org
http://mail.lon-capa.org/mailman/listinfo/lon-capa-users

Reply via email to