File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 16
16
17
17
< h3 >
18
18
<%= @grading_header %>
19
- <% if cur_reg_staff && @grading_output . kind_of? ( TapParser ) %>
19
+ <% if cur_reg_staff %>
20
+ <% if @grading_output . kind_of? ( TapParser ) %>
20
21
<%= link_to Upload . upload_path_for ( @grade . grading_output ) , class : "btn btn-default" do %>
21
22
< i class ="glyphicon glyphicon-download-alt "> </ i > Download raw test output
22
23
<% end %>
28
29
<%= to_fixed ( @grading_output . points_earned ) %> /
29
30
<%= to_fixed ( @grading_output . points_available ) %>
30
31
</ 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' ] ) %> /
42
+ <%= to_fixed ( @grading_output [ 'max-score' ] ) %>
43
+ </ span >
44
+
45
+ <% end %>
31
46
<% end %>
32
47
</ h3 >
33
48
<% if @grading_output . nil? %>
You can’t perform that action at this time.
0 commit comments