ucberkeley/moocchat

View on GitHub
app/views/tasks/welcome.html.erb

Summary

Maintainability
Test Coverage
<h1>Welcome to MOOCchat</h1>
<h3> Greetings, <%= @task.learner.name %>!</h3>
<%= render(:partial => 'tasks/force_continue_button') if @test_user %>
<%= form_tag task_join_group_path(@task), :id => '_main' do %>
  <p> 
    Your activity <strong>"<%= @task.condition.primary_activity_schema.name %>"</strong>
    will start automatically in: 
    <span class="timer">
      <%= timer(@timer, {:heartbeat_seconds => @heartbeat_seconds, :heartbeat_url => '/tasks/' + @task.id.to_s + '/heartbeat'}) %>
    </span>
  </p>
  <%= time_filler(@task.condition)%>
  <input type="submit" id="_submit" class="offscreen">
<% end %>