<commit_before>{% extends 'contest/contest.html' %}
{% import "layout/macros.html" as macros %}

{% block title %}
{{ contestant.display_name }}
{{ super() }}
{% endblock %}

{%- macro amount_button(field) -%}
  <button name="{{ form[field].name }}" value="1" type="submit" class="btn btn-primary ladda-button pp-amount-bar" data-size="xs" data-style="expand-left"><span class="ladda-label">{{ form[field].label.text }}</span></button>
{%- endmacro -%}

{%- macro amount_bar() -%}
  <div>
    <form class="form-inline" method="POST" action="{{ contestant.format_uri('contestant') }}">
      {{ form.csrf_token() }}
      {{ amount_button('donate10') }}
      {{ amount_button('donate25') }}
      {{ amount_button('donate100') }}
      <div class="form-group {{ macros.error_class(form, 'amount') }}">
       	<div class="input-group pp-amount-bar">
    	  <span class="input-group-addon"><strong>$</strong></span>
	    {{ form['amount'](class="form-control", size="12", placeholder="Other Amount") }}
      	</div>
      	<button type="submit" class="btn btn-primary pp-amount-bar">Back This Contestant</button>
      </div>
    </form>
  </div>
{%- endmacro -%}

{% block contest_content %}
<div class="pp-main">
<div class="pp-contestant">
    {{ amount_bar() }}
    <div class="pp-title">{{ contestant.display_name }}</div>
    <div class="pp-pitch">
    	<div class="embed-responsive embed-responsive-16by9">
    	    <iframe class="embed-responsive-item"
	    src="//www.youtube.com/embed/{{ contestant.youtube_code -}}
		 {%- if request.args.get('autoplay'): -%}
		 ?autoplay=1
		 {%- endif %}" allowfullscreen></iframe>
    	</div>
    </div>
    <div class="pp-abstract">
    	<h3 class="pp-heading">Summary</h3>
    	<p class="pp-contestant-desc">
   	    {{ contestant.contestant_desc }}
    	</p>
    </div>
    <div class="pp-slides">
    	<div class="embed-responsive embed-responsive-4by3">
    	    <iframe class="embed-responsive-item"
	    	src="//www.slideshare.net/slideshow/embed_code/{{ contestant.slideshow_code }}"
	    	allowfullscreen></iframe>
    	</div>
    </div>
    <div class="pp-founders">
    	<h3 class="pp-heading">Founders</h3>

    	{% for founder in founders %}

    	    <div class="pp-item">

	      {% if founder.founder_avatar: %}
    	    	<img class="pp-thumb" src="{{ founder.format_uri('founder_avatar') }}" alt="{{ founder.display_name }}"/>
	      {% endif %}
    	    	<span class="pp-name">{{ founder.display_name }}</span><commit_msg>replace _ in urls to -<commit_after>{% extends 'contest/contest.html' %}
{% import "layout/macros.html" as macros %}

{% block title %}
{{ contestant.display_name }}
{{ super() }}
{% endblock %}

{%- macro amount_button(field) -%}
  <button name="{{ form[field].name }}" value="1" type="submit" class="btn btn-primary ladda-button pp-amount-bar" data-size="xs" data-style="expand-left"><span class="ladda-label">{{ form[field].label.text }}</span></button>
{%- endmacro -%}

{%- macro amount_bar() -%}
  <div>
    <form class="form-inline" method="POST" action="{{ contestant.format_uri('contestant') }}">
      {{ form.csrf_token() }}
      {{ amount_button('donate10') }}
      {{ amount_button('donate25') }}
      {{ amount_button('donate100') }}
      <div class="form-group {{ macros.error_class(form, 'amount') }}">
       	<div class="input-group pp-amount-bar">
    	  <span class="input-group-addon"><strong>$</strong></span>
	    {{ form['amount'](class="form-control", size="6") }}
      	</div>
      	<button type="submit" class="btn btn-primary pp-amount-bar">Back This Contestant</button>
      </div>
    </form>
  </div>
{%- endmacro -%}

{% block contest_content %}
<div class="pp-main">
<div class="pp-contestant">
    {{ amount_bar() }}
    <div class="pp-title">{{ contestant.display_name }}</div>
    <div class="pp-pitch">
    	<div class="embed-responsive embed-responsive-16by9">
    	    <iframe class="embed-responsive-item"
	    src="//www.youtube.com/embed/{{ contestant.youtube_code -}}
		 {%- if request.args.get('autoplay'): -%}
		 ?autoplay=1
		 {%- endif %}" allowfullscreen></iframe>
    	</div>
    </div>
    <div class="pp-abstract">
    	<h3 class="pp-heading">Summary</h3>
    	<p class="pp-contestant-desc">
   	    {{ contestant.contestant_desc }}
    	</p>
    </div>
    <div class="pp-slides">
    	<div class="embed-responsive embed-responsive-4by3">
    	    <iframe class="embed-responsive-item"
	    	src="//www.slideshare.net/slideshow/embed_code/{{ contestant.slideshow_code }}"
	    	allowfullscreen></iframe>
    	</div>
    </div>
    <div class="pp-founders">
    	<h3 class="pp-heading">Founders</h3>

    	{% for founder in founders %}

    	    <div class="pp-item">

	      {% if founder.founder_avatar: %}
    	    	<img class="pp-thumb" src="{{ founder.format_uri('founder-avatar') }}" alt="{{ founder.display_name }}"/>
	      {% endif %}
    	    	<span class="pp-name">{{ founder.display_name }}</span>
{'fraction_non_alphanumeric': 0.20831651190956801, 'fraction_numerical': 0.007872426322163908, 'mean_word_length': 3.3464912280701755, 'pattern_counts': {'":': 0, '<': 97, '<?xml version=': 0, '>': 97, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '644913', 'n_tokens_mistral': 1829, 'n_tokens_neox': 1697, 'n_words': 275}