<commit_before>{% extends "participant.html" %}
{% block head2 %}
    {% if user.ADMIN %}<script src="/assets/{{ website.version }}/admin.js"></script>{% end %}
    <script>$(document).ready(Gittip.tips.init)</script>
    <script>$(document).ready(function() {
      $('#goal-custom').on('click change', function() {
        $('#goal-yes').attr('checked', true)
      })
    })</script>
{% end %}

{% block heading %}<h2 class="top"><span>{{ hero }}</span></h2>{% end %}

{% block nav %}
{% set current_page = path.raw.split('/')[2] %}
{% if user.participant == participant or user.ADMIN %}
<div class="nav level-2">
    <h2>Navigation</h2>
    {% set pages = [('/', 'Profile'), ('/giving/', 'Giving'), ('/history/', 'History'), ('/widgets/', 'Widgets')] %}
    {% for slug, name in pages %}
    <a href="/{{ participant.username }}{{ slug }}"><button{% if slug.strip('/') == current_page %} class="selected"{% end %}>{{ name }}</button></a>
    {% end %}
    {% if participant.show_as_team(user) %}
    <a href="/{{ participant.username }}/members/"><button{% if 'members' == current_page %} class="selected"{% end %}>Members</button></a>
    {% end %}
</div>
{% elif participant.show_as_team(user) %}
<div class="nav level-2">
    <h2>Navigation</h2>
    <a href="/{{ participant.username }}/"><button{% if '' == current_page %} class="selected"{% end %}>Profile</button></a>
    <a href="/{{ participant.username }}/members/"><button{% if 'members' == current_page %} class="selected"{% end %}>Members</button></a>
</div>
{% else %}
<div class="nav level-2">
    <h2>Navigation</h2>
    <a href="/{{ participant.username }}/"><button{% if '' == current_page %} class="selected"{% end %}>Profile</button></a>
</div>
{% end %}
{% end %}<commit_msg>Don't show nav w/ only one button; #1466<commit_after>{% extends "participant.html" %}
{% block head2 %}
    {% if user.ADMIN %}<script src="/assets/{{ website.version }}/admin.js"></script>{% end %}
    <script>$(document).ready(Gittip.tips.init)</script>
    <script>$(document).ready(function() {
      $('#goal-custom').on('click change', function() {
        $('#goal-yes').attr('checked', true)
      })
    })</script>
{% end %}

{% block heading %}<h2 class="top"><span>{{ hero }}</span></h2>{% end %}

{% block nav %}
{% set current_page = path.raw.split('/')[2] %}
{% if user.participant == participant or user.ADMIN %}
<div class="nav level-2">
    <h2>Navigation</h2>
    {% set pages = [('/', 'Profile'), ('/giving/', 'Giving'), ('/history/', 'History'), ('/widgets/', 'Widgets')] %}
    {% for slug, name in pages %}
    <a href="/{{ participant.username }}{{ slug }}"><button{% if slug.strip('/') == current_page %} class="selected"{% end %}>{{ name }}</button></a>
    {% end %}
    {% if participant.show_as_team(user) %}
    <a href="/{{ participant.username }}/members/"><button{% if 'members' == current_page %} class="selected"{% end %}>Members</button></a>
    {% end %}
</div>
{% elif participant.show_as_team(user) %}
<div class="nav level-2">
    <h2>Navigation</h2>
    <a href="/{{ participant.username }}/"><button{% if '' == current_page %} class="selected"{% end %}>Profile</button></a>
    <a href="/{{ participant.username }}/members/"><button{% if 'members' == current_page %} class="selected"{% end %}>Members</button></a>
</div>
{% end %}
{% end %}
{'fraction_non_alphanumeric': 0.2656062424969988, 'fraction_numerical': 0.008103241296518607, 'mean_word_length': 4.104134762633997, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 0, '>': 79, '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': '2189640', 'n_tokens_mistral': 1198, 'n_tokens_neox': 1083, 'n_words': 244}