<commit_before><% content_for :page_title do %>
  <%= @school.name %>: Awards
<% end %>
<div class="application container">

  <div class="row padded-row">
    <div class="col-md-12">
      <h1><%= @school.name %> Awards</h1>
      <p><%= link_to @school.name, school_path(@school) %> are earning awards when they record their activities using <%= t('application') %>.</p>
      <p>As they earn an award it will be revealed on this page. Awards that are still to be earned are shown to help them plan
      their next activities.</p>
    </div>
  </div>

  <div class="row">
    <div class="col-md-12">
      <% @all_badges.in_groups_of(4, false).each do |group| %>
          <div class="row">
            <% group.each do |badge| %>
                <div class="col-md-3">
                  <div class="card award">
                    <% image = @badges.include?(badge) ? "#{badge.image}" : "#{badge.image}" %>
                    <%= image_tag(image,
                                  height: 100, width: 100,
                                  class: 'card-image-top d-block mx-auto',
                                  title: badge.description) %>

                    <div class="card-body">
                      <h5 class="card-title text-center"><%= badge.custom_fields[:title] %></h5>
                      <p class="card-text small text-center"><%= badge.description %></p>
                    </div>
                  </div>
                </div>
            <% end %>
          </div>
      <% end %>

      <%= link_to 'School homepage', school_path(@school), class: 'btn btn-secondary' %>

    </div>

  </div>

</div>
<commit_msg>Show holding icon<commit_after><% content_for :page_title do %>
  <%= @school.name %>: Awards
<% end %>
<div class="application container">

  <div class="row padded-row">
    <div class="col-md-12">
      <h1><%= @school.name %> Awards</h1>
      <p><%= link_to @school.name, school_path(@school) %> are earning awards when they record their activities using <%= t('application') %>.</p>
      <p>As they earn an award it will be revealed on this page. Awards that are still to be earned are shown to help them plan
      their next activities.</p>
    </div>
  </div>

  <div class="row">
    <div class="col-md-12">
      <% @all_badges.in_groups_of(4, false).each do |group| %>
          <div class="row">
            <% group.each do |badge| %>
                <div class="col-md-3">
                  <div class="card award">
                    <% image = @badges.include?(badge) ? "#{badge.image}" : "badges/00-Holding-Symbol.png" %>
                    <%= image_tag(image,
                                  height: 100, width: 100,
                                  class: 'card-image-top d-block mx-auto',
                                  title: badge.description) %>

                    <div class="card-body">
                      <h5 class="card-title text-center"><%= badge.custom_fields[:title] %></h5>
                      <p class="card-text small text-center"><%= badge.description %></p>
                    </div>
                  </div>
                </div>
            <% end %>
          </div>
      <% end %>

      <%= link_to 'School homepage', school_path(@school), class: 'btn btn-secondary' %>

    </div>

  </div>

</div>

{'fraction_non_alphanumeric': 0.16273442226255294, 'fraction_numerical': 0.0102843315184513, 'mean_word_length': 1.701797385620915, 'pattern_counts': {'":': 0, '<': 89, '<?xml version=': 0, '>': 89, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4718071', 'n_tokens_mistral': 1064, 'n_tokens_neox': 948, 'n_words': 252}