<commit_before>{% extends "logged_in_base.html" %}

{% load class_tags %}

{% block page_title %}
  Prizes
{% endblock %}

{% block extra_head %}
  {% import_page_css "view_prizes" STATIC_URL CSS_THEME %}
{% endblock %}

{% block selected_icon %}selected-prizes{% endblock %}

{% block body %}
<div {% get_id_and_classes "prizes-list" %}>
  <div {% get_id_and_classes "prizes-list-box" %}>
    <div {% get_id_and_classes "prizes-list-title" %}>
      Prizes and Prize Winners
      <a href="#" style="float: right">
      <img src="{{ STATIC_URL}}/css/default/images/icon-help-sm.png" width="20" align="center" 
		title="Click to get help about this window" 
		onclick="toggleHelp('widget', 'prizes'); return false;"
	   /></a>
    </div>
    <div {% get_id_and_classes "prizes-list-content" %}>
      {% include "view_prizes/prize_list.html" %}
    </div>
  </div>
</div>

{% include "view_prizes/raffle_box.html" %}
{% endblock %}

{% block extra_round_energy %}
  {# Note: contents are inserted into Javascript in the middle of the round iterator. #}
  {# Usage is already calculated for us there. #}
  {# See PROJECT_ROOT/templates/logged_in_base.html #}
  if ($("#{{key|slugify}}-leader") != null) {
    leader =  energyRank.insertLeader("{{key|slugify}}-leader", energyRank.calculateLeader(usage));
  }
{% endblock %}

{% block extra_body %}
  <script type="text/javascript">
    $(document).ready(function() {
      var height = 10 + (85 * {{prizes.items|length}});
      $("#prizes-list-content").children().each(function(index, value) {
        if ($(value).height() > height) {
          height = $(value).height();
        }
      });

      $("#prizes-list-content").after("<div id='prize-cycle-nav'>").cycle({
          height: "" + height + "px",
          pause: 1,
          timeout: 7000,
          pager: '#prize-cycle-nav'<commit_msg>Tweak to make the prizes fit on production.<commit_after>{% extends "logged_in_base.html" %}

{% load class_tags %}

{% block page_title %}
  Prizes
{% endblock %}

{% block extra_head %}
  {% import_page_css "view_prizes" STATIC_URL CSS_THEME %}
{% endblock %}

{% block selected_icon %}selected-prizes{% endblock %}

{% block body %}
<div {% get_id_and_classes "prizes-list" %}>
  <div {% get_id_and_classes "prizes-list-box" %}>
    <div {% get_id_and_classes "prizes-list-title" %}>
      Prizes and Prize Winners
      <a href="#" style="float: right">
      <img src="{{ STATIC_URL}}/css/default/images/icon-help-sm.png" width="20" align="center" 
		title="Click to get help about this window" 
		onclick="toggleHelp('widget', 'prizes'); return false;"
	   /></a>
    </div>
    <div {% get_id_and_classes "prizes-list-content" %}>
      {% include "view_prizes/prize_list.html" %}
    </div>
  </div>
</div>

{% include "view_prizes/raffle_box.html" %}
{% endblock %}

{% block extra_round_energy %}
  {# Note: contents are inserted into Javascript in the middle of the round iterator. #}
  {# Usage is already calculated for us there. #}
  {# See PROJECT_ROOT/templates/logged_in_base.html #}
  if ($("#{{key|slugify}}-leader") != null) {
    leader =  energyRank.insertLeader("{{key|slugify}}-leader", energyRank.calculateLeader(usage));
  }
{% endblock %}

{% block extra_body %}
  <script type="text/javascript">
    $(document).ready(function() {
      var height = 10 + (140 * {{prizes.items|length}});
      $("#prizes-list-content").children().each(function(index, value) {
        if ($(value).height() > height) {
          height = $(value).height();
        }
      });

      $("#prizes-list-content").after("<div id='prize-cycle-nav'>").cycle({
          height: "" + height + "px",
          pause: 1,
          timeout: 7000,
          pager: '#prize-cycle-nav'
{'fraction_non_alphanumeric': 0.1833021139951833, 'fraction_numerical': 0.006154669521006155, 'mean_word_length': 3.4447086801426874, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 31, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '6885178', 'n_tokens_mistral': 1397, 'n_tokens_neox': 1256, 'n_words': 260}