Skip to content

Conversation

@drgrice1
Copy link
Member

This is achieved by displaying the student nav on the problem set page for users that have the permission to act as a user as well as always showing the student nav in problems and in tests.

If you are acting as a user, then the student nav looks the same as before with the next and previous buttons and the name of the user that is currently being acted as shown on the button. However, if you are not currently acting as another user, then the next and previous buttons are not shown and the button says "Select Student to Act As" (or in a test it says "Select a Test to Review").

Also fix the breadcrumb in a test when the set is not valid, but the setID does have the setID,v? format. Currently if you are acting as a student user and reviewing a test version, say "test,v1", but you have not worked the test, and you click the "Stop Acting" button, then the message stating that the selected test is not valid for the user is shown (it would be nice to not show this even) and the breadcrumb ends with the inactive link "test,v1", and you can only go back to the assignments page. Now, the "setID" link is shown and works, and the inactive "v1" link is at the end.

This is built on top of #2875 since it would conflict rather heavily with that pull request if it were not, and I don't want to have to resolve the conflicts later!

The problem grader is now always visible for users that have the
permission to use it and in the case that they are acting for another
user.  This does mean that there is no way to open the problem grader
when viewing your own problem.  However, the problem grader is in a
collapse.  The state of the collapse is stored in local storage, and
whenever you open another problem or change effective users, the
collapse goes back to the state that it was in the last time that you
had a page open that showed the problem grader.

Correct answers in feedback are now always shown with the reveal button,
even when the problem grader is on the page.  However, the reveal button
is removed by JavaScript behind the scenes while the problem grader is
expanded, and put back if the feedback button is not opened while the
problem grader is open.  So if you open a feedback button while the
problem grader is open, the reveal button is not shown, and the correct
answer is immediately visible.  To summarize the reveal button
visibility, the reveal button will not be shown anytime that a feedback
button is opened while the problem grader is open, and in that case will
never return until the page reloads, but any feedback button that is not
opened while the problem grader is open will still show the reveal
button, and as usual once the reveal button is used, it will never come
back until the page is reloaded.

The problem grader is now below the problem in homework sets as it is in
tests. With the collapse and the grader always in the page, I really do
not want it above the problem as it currently is.

The original reason for the problem grader being on top was so that it
would be close to the old results table with the answers.  With that
gone, that reason no longer applies.

Also remove the code for the `output_hidden_info` method in the
`Problem.html.ep` template. This is because the answer to the question
`$c->can('output_hidden_info')` is `$c` can't.  There is no such method
anywhere in the code anymore.
This is achieved by displaying the student nav on the problem set page
for users that have the permission to act as a user as well as always
showing the student nav in problems and in tests.

If you are acting as a user, then the student nav looks the same as
before with the next and previous buttons and the name of the user that
is currently being acted as shown on the button.  However, if you are
not currently acting as another user, then the next and previous buttons
are not shown and the button says "Select Student to Act As" (or in a
test it says "Select a Test to Review").

Also fix the breadcrumb in a test when the set is not valid, but the
setID does have the `setID,v?` format.  Currently if you are acting as a
student user and reviewing a test version, say "test,v1", but you have
not worked the test, and you click the "Stop Acting" button, then the
message stating that the selected test is not valid for the user is
shown (it would be nice to not show this even) and the breadcrumb ends
with the inactive link "test,v1", and you can only go back to the
assignments page. Now, the "setID" link is shown and works, and the
inactive "v1" link is at the end.

This is built on top of openwebwork#2875 since it would conflict rather heavily
with that pull request if it were not.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant