<commit_before>{% extends "wafer/base.html" %}
{% block content %}
{% with profile=object.get_profile %}
<div class="row">
    <div class="span2" id="profile-avatar">
        <img src="{{ profile.avatar_url }}">
        {% if user = object or user.is_staff %}
            <a class="btn btn-small" href="#" rel="popover" data-toggle="popover"
                data-title="{% trans 'Changing your mugshot' %}" data-html="true"
                data-placement="bottom">{% trans 'Edit Mugshot' %}</a>
            <div class="popover-contents">
                {% blocktrans %}
                    Pictures provided by <a href="https://www.libravatar.org/">libravatar</a>
                    (which falls back to <a href="https://secure.gravatar.com/">Gravatar</a>).<br>
                    Change your picture there.
                {% endblocktrans %}
            </div>
        {% endif %}
    </div>
    <div class="span10">
        {% if user = object or user.is_staff %}
        <div class="pull-right">
            <a href="{% url 'wafer_user_edit' object.username %}" class="btn">{% trans 'Edit User' %}</a>
            <a href="{% url 'wafer_user_edit_profile' object.username %}" class="btn">{% trans 'Edit Profile' %}</a>
        </div>
        {% endif %}
        {% spaceless %}
        <h1>
            {% if profile.homepage %}
                <a href="{{ profile.homepage }}">
            {% endif %}
            {{ object.get_full_name|default:object.username }}
            {% if profile.homepage %}
                </a>
            {% endif %}
        </h1>
        {% if profile.twitter_handle %}
        <p>
            <a href="https://twitter.com/{{ profile.twitter_handle }}" class="twitter-follow-button" data-show-count="false">
                {% blocktrans with handle=profile.twitter_handle %}Follow @{{ handle }}{% endblocktrans %}
            </a>
        </p>
        {% endif %}
        {% if profile.github_username %}
        <p>
            <a href="https://github.com/{{ profile.github_username }}">
                {% blocktrans with username=profile.github_username %}GitHub: {{ username }}{% endblocktrans %}
            </a>
        </p>
        {% endif %}
        {% endspaceless %}
    </div>
</div>
{% if profile.bio %}
<div class="well">
{{ profile.bio }}
</div>
{% endif %}
{% if profile.accepted_talks.exists %}
<h2>{% trans 'Accepted Talks:' %}</h2>
{% for talk in profile.accepted_talks %}
<div class="well">
    <a href="{{ talk.get_absolute_url }}">{{ talk.title }}</a>
    <p>{{ talk.abstract }}</p>
</div>
{% endfor %}
{% endif %}
{% if profile.manages_registration %}
<h2>{% trans 'Manager for the following registrations' %}</h2>
{% for attendee in profile.registrations %}
<div class="well">
   <a href="{{ attendee.get_absolute_url }}">{{ attendee.name }}</a>
</div>
{% endfor %}
{% endif %}
{% endwith %}
{% endblock %}
{% block extra_foot %}
    <script type="text/javascript">
        // Twitter boilerplate
        !function(d, s, id) {
            var js, fjs = d.getElementsByTagName(s)[0];
            if (! d.getElementById(id)) {
                js = d.createElement(s);
                js.id = id;
                js.src = "//platform.twitter.com/widgets.js";
                fjs.parentNode.insertBefore(js, fjs);
            }
        }(document, "script", "twitter-wjs");

        $("#profile-avatar [rel=popover]").attr("data-content", $("#profile-avatar .popover-contents").html());<commit_msg>Registration details shoul only be visible to the owner or staff<commit_after>{% extends "wafer/base.html" %}
{% block content %}
{% with profile=object.get_profile %}
<div class="row">
    <div class="span2" id="profile-avatar">
        <img src="{{ profile.avatar_url }}">
        {% if user = object or user.is_staff %}
            <a class="btn btn-small" href="#" rel="popover" data-toggle="popover"
                data-title="{% trans 'Changing your mugshot' %}" data-html="true"
                data-placement="bottom">{% trans 'Edit Mugshot' %}</a>
            <div class="popover-contents">
                {% blocktrans %}
                    Pictures provided by <a href="https://www.libravatar.org/">libravatar</a>
                    (which falls back to <a href="https://secure.gravatar.com/">Gravatar</a>).<br>
                    Change your picture there.
                {% endblocktrans %}
            </div>
        {% endif %}
    </div>
    <div class="span10">
        {% if user = object or user.is_staff %}
        <div class="pull-right">
            <a href="{% url 'wafer_user_edit' object.username %}" class="btn">{% trans 'Edit User' %}</a>
            <a href="{% url 'wafer_user_edit_profile' object.username %}" class="btn">{% trans 'Edit Profile' %}</a>
        </div>
        {% endif %}
        {% spaceless %}
        <h1>
            {% if profile.homepage %}
                <a href="{{ profile.homepage }}">
            {% endif %}
            {{ object.get_full_name|default:object.username }}
            {% if profile.homepage %}
                </a>
            {% endif %}
        </h1>
        {% if profile.twitter_handle %}
        <p>
            <a href="https://twitter.com/{{ profile.twitter_handle }}" class="twitter-follow-button" data-show-count="false">
                {% blocktrans with handle=profile.twitter_handle %}Follow @{{ handle }}{% endblocktrans %}
            </a>
        </p>
        {% endif %}
        {% if profile.github_username %}
        <p>
            <a href="https://github.com/{{ profile.github_username }}">
                {% blocktrans with username=profile.github_username %}GitHub: {{ username }}{% endblocktrans %}
            </a>
        </p>
        {% endif %}
        {% endspaceless %}
    </div>
</div>
{% if profile.bio %}
<div class="well">
{{ profile.bio }}
</div>
{% endif %}
{% if profile.accepted_talks.exists %}
<h2>{% trans 'Accepted Talks:' %}</h2>
{% for talk in profile.accepted_talks %}
<div class="well">
    <a href="{{ talk.get_absolute_url }}">{{ talk.title }}</a>
    <p>{{ talk.abstract }}</p>
</div>
{% endfor %}
{% endif %}
{# We only show the registrations for the owner or staff on their profile #}
{% if user == object or user.is_staff %}
{% if profile.manages_registration %}
<h2>{% trans 'Manager for the following registrations' %}</h2>
{% for attendee in profile.registrations %}
<div class="well">
   <a href="{{ attendee.get_absolute_url }}">{{ attendee.name }}</a>
</div>
{% endfor %}
{% endif %}
{% endif %}
{% endwith %}
{% endblock %}
{% block extra_foot %}
    <script type="text/javascript">
        // Twitter boilerplate
        !function(d, s, id) {
            var js, fjs = d.getElementsByTagName(s)[0];
            if (! d.getElementById(id)) {
                js = d.createElement(s);
                js.id = id;
                js.src = "//platform.twitter.com/widgets.js";
                fjs.parentNode.insertBefore(js, fjs);
            }
        }(document, "script", "twitter-wjs");

        $("#profile-avatar [rel=popover]").attr("data-content", $("#profile-avatar .popover-contents").html());
{'fraction_non_alphanumeric': 0.18213832934216087, 'fraction_numerical': 0.002817298211015636, 'mean_word_length': 2.163992869875223, 'pattern_counts': {'":': 0, '<': 105, '<?xml version=': 0, '>': 105, 'https://': 8, 'lorem ipsum': 0, 'www.': 2, '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': '4255861', 'n_tokens_mistral': 2333, 'n_tokens_neox': 2099, 'n_words': 480}