Commit 5273d447 by Vik Paruchuri

Fix css and display current step

parent 349a43f3
...@@ -21,7 +21,6 @@ h2 { ...@@ -21,7 +21,6 @@ h2 {
} }
section.combined-open-ended { section.combined-open-ended {
margin-right:20px;
.status-container .status-container
{ {
float:right; float:right;
...@@ -45,6 +44,23 @@ section.combined-open-ended { ...@@ -45,6 +44,23 @@ section.combined-open-ended {
section.open-ended-child, section.combined-open-ended-status { section.open-ended-child, section.combined-open-ended-status {
.statusitem {
background-color: #FAFAFA;
color: #2C2C2C;
font-family: monospace;
font-size: 1em;
padding-top: 10px;
}
.statusitem-current {
background-color: #BEBEBE;
color: #2C2C2C;
font-family: monospace;
font-size: 1em;
padding-top: 10px;
}
.evaluation { .evaluation {
p { p {
margin-bottom: 1px; margin-bottom: 1px;
......
<section id="combined-open-ended-status" class="combined-open-ended-status"> <section id="combined-open-ended-status" class="combined-open-ended-status">
%for status in status_list: %for i in xrange(0,len(status_list)):
<div class="statusitem"> <%status=status_list[i]%>
Step ${status['task_number']} (${status['human_state']}) : ${status['score']} / ${status['max_score']} %if i==len(status_list)-1:
%if status['type']=="openended": <div class="statusitem-current" data-status-number="${i}">
<div class="collapsible external-grader-message"> %else:
<header> <div class="statusitem" data-status-number="${i}">
<a href="#">Show feedback from step ${status['task_number']}</a>
</header>
<section id="post-assessment">
${status['post_assessment']}
</section>
</div>
%endif %endif
</div>
Step ${status['task_number']} (${status['human_state']}) : ${status['score']} / ${status['max_score']}
%if status['type']=="openended":
<div class="collapsible external-grader-message">
<header>
<a href="#">Show feedback from step ${status['task_number']}</a>
</header>
<section id="post-assessment">
${status['post_assessment']}
</section>
</div>
%endif
</div>
%endfor %endfor
</section> </section>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment