Skip to content
Snippets Groups Projects
Commit 14ba19c7 authored by Andreas Beckmann's avatar Andreas Beckmann
Browse files

put other projects in parentheses if the student has been assigned

parent c74b752d
Branches
Tags
No related merge requests found
......@@ -883,7 +883,13 @@ for cell in user_sorted.most_common():
# get all three projects and first add all user's first choise, then second and then third choice
projID = user_data[id][fldName]
if projID:
project_list_tmp += "{0} <a href='#project_{1}'>{2}</a>".format(sep,projID,projID)
other = user_data[id]['selected'] and not user_data[id]['selected'].startswith("%d" % projID)
project_list_tmp += sep
if other:
project_list_tmp += "("
project_list_tmp += "<a href='#project_%(projID)s'>%(projID)s</a>" % {'projID': projID}
if other:
project_list_tmp += ")"
sep = ", "
row = row.replace("{{PROJECT_ID_LIST}}", project_list_tmp)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment