Skip to content

Commit 359686e

Browse files
author
Ben Lerner
committed
show score and links
1 parent 89919a7 commit 359686e

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

app/views/grades/show_SandboxGrader.html.erb

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616

1717
<h3>
1818
<%= @grading_header %>
19-
<% if cur_reg_staff && @grading_output.kind_of?(TapParser) %>
19+
<% if cur_reg_staff %>
20+
<% if @grading_output.kind_of?(TapParser) %>
2021
<%= link_to Upload.upload_path_for(@grade.grading_output), class: "btn btn-default" do %>
2122
<i class="glyphicon glyphicon-download-alt"></i> Download raw test output
2223
<% end %>
@@ -28,6 +29,20 @@
2829
<%= to_fixed(@grading_output.points_earned) %>&nbsp;/&nbsp;
2930
<%= to_fixed(@grading_output.points_available)%>
3031
</span>
32+
<% else if @grader.response_type == 'simple_list' %>
33+
<%= link_to Upload.upload_path_for(@grade.grading_output), class: "btn btn-default" do %>
34+
<i class="glyphicon glyphicon-download-alt"></i> Download raw test output
35+
<% end %>
36+
<%= link_to Upload.upload_path_for(@grade.orca_result_path), class: "btn btn-default" do %>
37+
<i class="glyphicon glyphicon-download-alt"></i> Download full log
38+
<% end %>
39+
40+
<span class="pull-right">Total score:
41+
<%= to_fixed(@grading_output['score']) %>&nbsp;/&nbsp;
42+
<%= to_fixed(@grading_output['max-score'])%>
43+
</span>
44+
45+
<% end %>
3146
<% end %>
3247
</h3>
3348
<% if @grading_output.nil? %>

0 commit comments

Comments
 (0)