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

{% load url from future %}
{% load i18n %}
{% load profile_tags %}
{% load crispy_forms_tags %}

{% block extra_head %}
    <link rel="stylesheet" href="{{ STATIC_URL }}css/package.css" />
{% endblock %}

{% block head_title %}Profile for {{ user }}{% endblock %}

{% block body %}
        
    <div class="twelve_column section">
        
        <div class="six column">
            <h2>{% blocktrans %}Profile for <span class="fn nickname">{{ user }}</span>{% endblocktrans %}</h2>
                
            <h3><a href="{% url 'profile_list' %}">{% trans "All profiles" %}</a></h3>                            


            {% if request.user == user %}
                <p><a href="{% url 'profile_edit' %}">{% trans "Edit my profile" %}</a></p>
            {% endif %}    
            
            {% if local_profile.github_account %}
                <p><b>{% trans "Github account" %}</b>:
                            <span class="fn"><a href="https://github.com/{{ local_profile.github_account }}">{{ local_profile.github_account }}</a></span>
                </p>
            {% endif %}

            {% if local_profile.bitbucket_url %}            
                <p><b>{% trans "BitBucket account" %}</b>: 
                            <span class="fn"><a href="https://bitbucket.org/{{ local_profile.bitbucket_url     }}">{{ local_profile.bitbucket_url }}</a></span>
                </p>
            {% endif %}

            {% if local_profile.google_code_url %}                
                <p><b>{% trans "Google Code account" %}</b>:
                            <span class="fn"><a href="http://code.google.com/u/{{ local_profile.google_code_url|urlize }}/">{{ local_profile.google_code_url|urlize }}</a></span>
                </p>
            {% endif %}            

            {% if local_profile.my_packages %}
                <h3>{% trans "Packages I contribute to" %}</h3>
                <table>
                <thead>
                    <tr>
                        <th>#</th>
                        <th>{% trans "Package" %}</th>
                        <th>{% trans "Repo" %}</th>                                                
                    </tr>
                </thead>                    
                <tbody>
                {% for package in local_profile.my_packages %}    
                    <tr>
                        <td>{{ forloop.counter }}</td>                        
                        <td><a href="{{ package.get_absolute_url }}">{{ package.title }}</a></td>
                        <td><a href="{{ package.repo_url }}">{{ package.repo.title }}</a></td>
                    </tr>
                {% endfor %}
                </tbody>                
                </table>            
                
            {% endif %}
            </div>
            
            <div class="six column section">
                <h3>{% trans "Packages I use" %}</h3>
                <ul class="usage-list">
                    <table>
                    <thead>
                        <tr>
                            <th>#</th>
                            <th>{% trans "Package" %}</th>
                            <th>{% trans "Repo" %}</th>                                                
                        </tr>
                    </thead>                    
                    <tbody>
                        {% for package in user|package_usage %}
                        <tr>
                            <td>{{ forloop.counter }}</td>                        
                            <td><a href="{{ package.get_absolute_url }}">{{ package.title }}</a></td>
                            <td><a href="{{ package.repo_url }}">{{ package.repo.title }}</a></td>
                        </tr>
                    {% endfor %}
                    </tbody>                
                    </table>                    
                </ul>
            </div>
        </div>
        
    </div>
{% endblock %}
<commit_msg>Profile cleanup to use Bootstrap grid.<commit_after>{% extends "base.html" %}

{% load url from future %}
{% load i18n %}
{% load profile_tags %}
{% load crispy_forms_tags %}

{% block head_title %}Profile for {{ user }}{% endblock %}

{% block body %}
<div class="container">
  <div class="row">
    <div class="col-4">
      <h2>{% blocktrans %}Profile for <span class="fn nickname">{{ user }}</span>{% endblocktrans %}</h2>

      {% if request.user == user %}
        <p><a href="{% url 'profile_edit' %}">{% trans "Edit my profile" %}</a></p>
      {% endif %}    
      
      {% if local_profile.github_account %}
        <p><b>{% trans "Github account" %}</b>:
          <span class="fn"><a href="https://github.com/{{ local_profile.github_account }}">{{ local_profile.github_account }}</a></span>
        </p>
      {% endif %}

      {% if local_profile.bitbucket_url %}            
        <p><b>{% trans "BitBucket account" %}</b>: 
          <span class="fn"><a href="https://bitbucket.org/{{ local_profile.bitbucket_url     }}">{{ local_profile.bitbucket_url }}</a></span>
        </p>
      {% endif %}

      {% if local_profile.google_code_url %}                
        <p><b>{% trans "Google Code account" %}</b>:
                    <span class="fn"><a href="http://code.google.com/u/{{ local_profile.google_code_url|urlize }}/">{{ local_profile.google_code_url|urlize }}</a></span>
        </p>
      {% endif %}            
    </div>

    <div class="col-4">
      {% if local_profile.my_packages %}
        <h3>{% trans "Packages I contribute to" %}</h3>
        <table class="table">
          <thead>
              <tr>
                <th>#</th>
                <th>{% trans "Package" %}</th>
                <th>{% trans "Repo" %}</th>                                                
              </tr>
          </thead>
          <tbody>
          {% for package in local_profile.my_packages %}    
            <tr>
              <td>{{ forloop.counter }}</td>                        
              <td><a href="{{ package.get_absolute_url }}">{{ package.title }}</a></td>
              <td><a href="{{ package.repo_url }}">{{ package.repo.title }}</a></td>
            </tr>
          {% endfor %}
          </tbody>
        </table>
      {% endif %}
    </div>
      
    <div class="col-4">
        <h3>{% trans "Packages I use" %}</h3>
        <ul class="usage-list">
          <table class="table">
            <thead>
              <tr>
                <th>#</th>
                <th>{% trans "Package" %}</th>
                <th>{% trans "Repo" %}</th>                                                
              </tr>
            </thead>                    
            <tbody>
              {% for package in user|package_usage %}
                <tr>
                    <td>{{ forloop.counter }}</td>                        
                    <td><a href="{{ package.get_absolute_url }}">{{ package.title }}</a></td>
                    <td><a href="{{ package.repo_url }}">{{ package.repo.title }}</a></td>
                </tr>
              {% endfor %}
            </tbody>
          </table>                    
        </ul>
      </div>
    </div>
  </div>
{% endblock %}
{'fraction_non_alphanumeric': 0.1715268225584594, 'fraction_numerical': 0.0028885832187070153, 'mean_word_length': 1.1594891594891594, 'pattern_counts': {'":': 0, '<': 205, '<?xml version=': 0, '>': 205, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1341321', 'n_tokens_mistral': 2134, 'n_tokens_neox': 1928, 'n_words': 422}