crowdAI/crowdai

View on GitHub
app/views/dataset_files/index.html.erb

Summary

Maintainability
Test Coverage
<div class='content'>
  <%= concept(Challenge::Cell::ChallengeMasthead,
                @challenge,
                current_participant: current_participant) %>
  <%= render partial: 'challenges/show/subnav',
        locals: { challenge: @challenge } %>

  <% if @challenge.dataset_note.present?  %>
    <div class='row'>
      <div class="leaderboard-note">
        <%= sanitize(@challenge.dataset_note) %>
      </div>
    </div>
  <% end %>

  <div class="row">
    <% if @challenge.require_toc_acceptance && !@challenge_participant.accepted_dataset_toc %>
        <%= render partial: 'toc_form' %>
    <% else %>
      <ul class="list-datasets">
          <%= concept(Dataset::Cell::ListDetail,
                      collection: @dataset_files,
                      current_participant: current_participant) %>
      </ul>
    <% end %>
  </div>
</div>