<div class="center jumbotron">
  <h1>Criteria</h1>
  <!-- This page quickly shows some information about the Criteria. -->
  <p>
  <a href='https://github.com/linuxfoundation/cii-best-practices-badge/blob/master/doc/criteria.md'>Criteria information is on GitHub</a>.</p>
  <p>
  <%
    active_criteria = Criteria.reject(&:future?)
    future_criteria = Criteria.select(&:future?)
  %>
  Current number of criteria:
    <%= active_criteria.count %> (active)
    + <%= future_criteria.count %> (future)
    = <%= Criteria.count %> (total)
  <br>
  Among active criteria, there are
    <%= active_criteria.count(&:must?) %> MUST,
    <%= active_criteria.count(&:should?) %> SHOULD, and
    <%= active_criteria.count(&:suggested?) %>
    SUGGESTED criteria.
  Among active criteria,
    <%= active_criteria.count(&:na_allowed?) %> allow N/A,
    <%= active_criteria.count(&:met_url_required?) %>
    require a URL when met, and
    <%= active_criteria.count(&:details_present?) %>
    have details in their description.
  <p>
</div>

<div class="center jumbotron">
  <h1>Criteria</h1>
  <!-- This page quickly shows some information about the Criteria. -->
  <p>
  <a href='https://github.com/linuxfoundation/cii-best-practices-badge/blob/master/doc/criteria.md'>The detailed criteria are on GitHub</a>.</p>
  <p>
  <%
    active_criteria = Criteria.reject(&:future?)
    future_criteria = Criteria.select(&:future?)
  %>
  Current number of criteria:
    <%= active_criteria.count %> (active)
    + <%= future_criteria.count %> (future)
    = <%= Criteria.count %> (total).
  <br>
  Among active criteria, there are
    <%= active_criteria.count(&:must?) %> MUST,
    <%= active_criteria.count(&:should?) %> SHOULD, and
    <%= active_criteria.count(&:suggested?) %>
    SUGGESTED criteria.
  Among active criteria,
    <%= active_criteria.count(&:na_allowed?) %> allow N/A,
    <%= active_criteria.count(&:met_url_required?) %>
    require a URL when met, and
    <%= active_criteria.count(&:details_present?) %>
    have details in their description.
  <p>
</div>

Tweak display of criteria statistics.
Tweak display of criteria statistics.

Signed-off-by: David A. Wheeler <9ae72d22d8b894b865a7a496af4fab6320e6abb2@dwheeler.com>
