<commit_before>{% extends 'template.html.twig' %}

{% block title %}{{campaign.name}}{% endblock %}

{% block meta %}
  <meta property="og:image" content="{{ main_app_url }}/assets/img/FunRun2017-banner.png"/>
  <meta property="og:description" content="{{ campaign.description|striptags }}" />
  <meta property="og:title" content="Help the {{ campaign.name }} Today!" />
  <meta property="og:url" content="{{ main_app_url }}/{{ path('campaign_index', {'campaignUrl': campaignUrl}) }}" />
{% endblock %}

{% block css %}
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/bs/dt-1.10.12/fh-3.1.2/r-2.1.0/sc-1.4.2/datatables.min.css"/>
{% endblock %}

{% block body %}
      <div class="row">
        <div class="col-md-8">
            <img class="img-fluid center-block" src="/static/img/FunRun2017-banner.png"/>
        </div>
        <div class="col-md-4">
          <p class="lead"><strong>${{totals.donation_amount|number_format(0, '.', ',')}}</strong> of ${{campaign.fundingGoal|number_format(0, '.', ',')}} goal</p>
          <div class="progress">
              <div
                  class="progress-bar progress-bar-warning"
                  role="progressbar"
                  aria-valuenow="{{ totals.donation_amount / campaign.fundingGoal * 100}}"
                  aria-valuemin="0"
                  aria-valuemax="100"
                  style="width:{{ totals.donation_amount / campaign.fundingGoal * 100}}%">
                  <span>{{ (totals.donation_amount / campaign.fundingGoal * 100)|number_format(2, '.', ',')}}% Complete</span>
              </div>
          </div>
          <p>Raised by {{ totals.total_donations }} donors</p>
          <p style="text-align:center;vertical-align: middle;">
              <div id="track" data-countdown="{{ campaign.endDate|date('Y/m/d') }}"></div>
          </p>
          <hr>
          <p><a href="{{ path('donation_index', {'campaignUrl':campaign.url}) }}" class="btn btn-primary btn-lg btn-block">DONATE NOW!</a></p>
          <p><a href="http://www.facebook.com/share.php?u={{ app.request.uri }}" target="_blank" class="btn btn-info btn-block"><i class="fa fa-facebook-official" aria-hidden="true"></i> Share on Facebook</a></p>
        </div>
      </div>
      <hr>
      <div id="index-nav">
      <ul class="nav justify-content-center nav-pills">
        <li class="nav-item">
          <a class="nav-link" href="#about">About</a>
        </li>
        <li class="nav-item">
          <a class="nav-link" href="#teams">Teams</a>
        </li>
        <li class="nav-item">
          <a class="nav-link" href="#classrooms">Classrooms</a>
        </li>
      </ul>
    </div><commit_msg>Updated to prevent pre or post donations.<commit_after>{% extends 'template.html.twig' %}

{% block title %}{{campaign.name}}{% endblock %}

{% block meta %}
  <meta property="og:image" content="{{ main_app_url }}/assets/img/FunRun2017-banner.png"/>
  <meta property="og:description" content="{{ campaign.description|striptags }}" />
  <meta property="og:title" content="Help the {{ campaign.name }} Today!" />
  <meta property="og:url" content="{{ main_app_url }}/{{ path('campaign_index', {'campaignUrl': campaignUrl}) }}" />
{% endblock %}

{% block css %}
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/bs/dt-1.10.12/fh-3.1.2/r-2.1.0/sc-1.4.2/datatables.min.css"/>
{% endblock %}

{% block body %}
      <div class="row">
        <div class="col-md-8">
            <img class="img-fluid center-block" src="/static/img/FunRun2017-banner.png"/>
        </div>
        <div class="col-md-4">
          <p class="lead"><strong>${{totals.donation_amount|number_format(0, '.', ',')}}</strong> of ${{campaign.fundingGoal|number_format(0, '.', ',')}} goal</p>
          <div class="progress">
              <div
                  class="progress-bar progress-bar-warning"
                  role="progressbar"
                  aria-valuenow="{{ totals.donation_amount / campaign.fundingGoal * 100}}"
                  aria-valuemin="0"
                  aria-valuemax="100"
                  style="width:{{ totals.donation_amount / campaign.fundingGoal * 100}}%">
                  <span>{{ (totals.donation_amount / campaign.fundingGoal * 100)|number_format(2, '.', ',')}}% Complete</span>
              </div>
          </div>
          <p>Raised by {{ totals.total_donations }} donors</p>
          {% if not isEnded and not notStarted %} 
          <p style="text-align:center;vertical-align: middle;">
              <div id="track" data-countdown="{{ campaign.endDate|date('Y/m/d') }}"></div>
          </p>
          <hr>
          <p><a href="{{ path('donation_index', {'campaignUrl':campaign.url}) }}" class="btn btn-primary btn-lg btn-block">DONATE NOW!</a></p>
          <p><a href="http://www.facebook.com/share.php?u={{ app.request.uri }}" target="_blank" class="btn btn-info btn-block"><i class="fa fa-facebook-official" aria-hidden="true"></i> Share on Facebook</a></p>
          {% elseif isEnded %}
          <hr>
          <p>
              This campaign has officially ended. Thank you for all of your support!
          </p>     
          {% elseif notStarted %}
          <hr>
          <p>
              This campaign has not officially started yet, so check back soon!
          </p>               
          {% endif %}
        </div>
      </div>
      <hr>
      <div id="index-nav">
      <ul class="nav justify-content-center nav-pills">
        <li class="nav-item">
          <a class="nav-link" href="#about">About</a>
        </li>
        <li class="nav-item">
          <a class="nav-link" href="#teams">Teams</a>
        </li>
        <li class="nav-item">
          <a class="nav-link" href="#classrooms">Classrooms</a>
        </li>
      </ul>
    </div>
{'fraction_non_alphanumeric': 0.19903331607112032, 'fraction_numerical': 0.013809770412566891, 'mean_word_length': 2.4122497055359244, 'pattern_counts': {'":': 0, '<': 121, '<?xml version=': 0, '>': 121, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1074160', 'n_tokens_mistral': 1974, 'n_tokens_neox': 1845, 'n_words': 337}