Permalink
Browse files

Don't show test framework related views for students. They only

see the test results files drop-down in the results view.
  • Loading branch information...
1 parent 5d45450 commit 1baf514ce0c63a5d8c4c19e98b6e7d19e034def1 Severin Gehwolf committed Dec 2, 2010
@@ -271,73 +271,6 @@
</div>
</div>
- <% # HTML for Student Testing Interface %>
- <% if @assignment.enable_test %>
- <div class="block">
- <h2><%= I18n.t("test_framework.test") %></h2>
- <% if @grouping.nil? %>
- <div class="sub_block">
- <br />
- <%= I18n.t("test_framework.need_group_for_test") %>
- <br />
- </div>
- <% else %>
- <div class="block_content">
- <h3><%= I18n.t("test_framework.information") %></h3>
- <% if !@grouping.submissions.empty? %>
- <div class="sub_block">
- <%= I18n.t("test_framework.revision_used_for_test", :revision => @revision_number) %>
- </div>
- <% end %>
- <br />
- <div class="sub_block">
- <br />
- <%= I18n.t("test_framework.token.tokens_per_day", :tokens => @assignment.tokens_per_day) %>
- </div>
- <br />
- <div class="sub_block">
- <br />
- <% if @token.nil? %>
- <%= I18n.t("test_framework.token.tokens_not_given_yet") %>
- <% else %>
- <% if @token.tokens == 0 %>
- <%= I18n.t("test_framework.token.no_more_available") %>
- <% else %>
- <%= I18n.t("test_framework.token.tokens_available", :tokens => @token.tokens) %>
- <% end %>
- <% end %>
- <br />
- </div>
- <br />
- <h3><%= I18n.t("test_framework.run_tests") %></h3>
- <% if @grouping.assignment.submission_rule.can_collect_now? %>
- <%= I18n.t("test_framework.due_date_is_passed") %>
- <br />
- <% else %>
- <% if @result.nil? && @test_result_files.nil? %>
- <%= I18n.t("test_framework.need_one_file") %>
- <br />
- <% else %>
- <%
- # Javascript for test result window
- %>
- <%= render :partial => "results/common/test_result_window.html" %>
- <div id="test_results_controls">
- <%= render :partial => 'results/common/test_selector', :locals => {:test_result_files => @test_result_files, :result => @result} %>
- <br />
- </div>
- <br />
- <% end %>
- <% if @grouping.submissions.empty? %>
- <br />
- <%= link_to I18n.t("test_framework.collect_and_test"), {:controller => 'assignments', :action => 'student_interface', :id => @assignment.id, :grouping_id => @grouping.id , :revision_number => @revision_number, :collect => true}, :class => "button"%>
- <br />
- <% end %>
- <% end %>
- <% end %>
- </div>
- </div>
- <% end %>
</div>
<%
@@ -2,8 +2,6 @@
# file when using this partial
%>
<%=label_tag "select_test_result_id", h(I18n.t("common.test_results")), :class => "inline_label" %>
-<%= link_to_remote( image_tag("icons/cog_go.png", :alt => "Test Student's code", :title => "Test Student code", :id => "test_icon"),
-{:url => {:action => "index", :controller => "test_framework", :result => @result}}) %>
<select id="select_test_result_id" onchange="if ($(this).getValue() != '') { load_test_result($(this).getValue()); }">
<% if test_result_files.empty? %>
<option value=""><%= I18n.t("test_result.no_files_available")%></option>

0 comments on commit 1baf514

Please sign in to comment.