crowdAI/crowdai

View on GitHub
app/views/submissions/new/_no_submissions.html.erb

Summary

Maintainability
Test Coverage
<div class='info-content'>
<% if @reset_dttm.nil? %>
  <% if @challenge.challenge_rounds.count > 1 %>
    <p>You do not have any submissions remaining for this period.</p>
  <% else %>
    <p class='text-center'>You do not have any submissions remaining for this challenge.</p>
  <% end %>
<% else %>
  <p>You do not have any submissions remaining.</p>
  <p>Submissions will be possible as of <%= @reset_dttm %>.</p>
<% end %>
</div>