<commit_before>{% extends "base.html" %}
{% load thumbnail %}
{% load i18n %}

{% block content %}
{% if user.is_authenticated %}
  <section class='profile container'>
    <section class='container'>
      <section class='user_header one-half column'>
      {% if user.first_name %}
        <h1>{% trans "Welcome" %} {{ user.first_name }}</h1>
      {% else %}
        <h1>{% trans "Welcome" %} {{ user.username }}</h1>
      {% endif %}
        <p>{% trans 'Last Login: ' %}{{ user.last_login }}</p>
        <p>{% trans 'Member Since: '%}{{ user.date_joined }}</p>
      </section>
      <section class='user_nav one-half column container'>
        <ul class='one-half column'>
        {% thumbnail photo.image "200x100" as im %}
          {% csrf_token %}
          <li>
            <p>Library</p>
          </li>
          <li>
            <a href="images/library/" title="">
              <img src="{{ MEDIA_ROOT }}{{ im.url }}" alt="">
            </a>
          </li>
        </ul>
        {% endthumbnail %}
        {% thumbnail album.cover.image "200x100" as alb %}
          {% csrf_token %}
         <ul class='one-half column'> 
          <li>
            <p>Albums</p>
          </li>
          <li>
            <a href="images/albums/" title="">
              <img src="{{ MEDIA_ROOT }}{{ alb.url }}" alt="">
            </a>
          </li>
        {% endthumbnail %}
        </ul>
      </section>
    </section>
    <section class='container'>
      <section class='user_profile one-half column'>
      <h2>User Profile Info</h2>
        <ul>
          <li>Favorite Camera: {{ user.profile.fav_camera }}</li>
          <li>Address: {{ user.profile.address }}</li>
          <li>Personal Website: 
              <a href='{{ user.profile.url }}'>{{ user.profile.url }}</a>
          </li>
          <li>Photography Type: {{ user.profile.get_photo_type_display }}</li>
        </ul>
      </section>
      <aside class='user_stats one-half column'>
        <h2>User Stats</h2>  
        <ul>
          <li>Total Photos: {{ user.photos_set.count }}</li>
          <li>Total Albums: {{ user.album_set.count }}</li>
          <li>Last Photo Posted: </li>
        </ul><commit_msg>fix link to album and photo lists in profile page.<commit_after>{% extends "base.html" %}
{% load thumbnail %}
{% load i18n %}

{% block content %}
{% if user.is_authenticated %}
  <section class='profile container'>
    <section class='container'>
      <section class='user_header one-half column'>
      {% if user.first_name %}
        <h1>{% trans "Welcome" %} {{ user.first_name }}</h1>
      {% else %}
        <h1>{% trans "Welcome" %} {{ user.username }}</h1>
      {% endif %}
        <p>{% trans 'Last Login: ' %}{{ user.last_login }}</p>
        <p>{% trans 'Member Since: '%}{{ user.date_joined }}</p>
      </section>
      <section class='user_nav one-half column container'>
        <ul class='one-half column'>
        {% thumbnail photo.image "200x100" as im %}
          {% csrf_token %}
          <li>
            <p>Library</p>
          </li>
          <li>
            <a href="images/library" title="">
              <img src="{{ MEDIA_ROOT }}{{ im.url }}" alt="">
            </a>
          </li>
        </ul>
        {% endthumbnail %}
        {% thumbnail album.cover.image "200x100" as alb %}
          {% csrf_token %}
         <ul class='one-half column'> 
          <li>
            <p>Albums</p>
          </li>
          <li>
            <a href="images/albums" title="">
              <img src="{{ MEDIA_ROOT }}{{ alb.url }}" alt="">
            </a>
          </li>
        {% endthumbnail %}
        </ul>
      </section>
    </section>
    <section class='container'>
      <section class='user_profile one-half column'>
      <h2>User Profile Info</h2>
        <ul>
          <li>Favorite Camera: {{ user.profile.fav_camera }}</li>
          <li>Address: {{ user.profile.address }}</li>
          <li>Personal Website: 
              <a href='{{ user.profile.url }}'>{{ user.profile.url }}</a>
          </li>
          <li>Photography Type: {{ user.profile.get_photo_type_display }}</li>
        </ul>
      </section>
      <aside class='user_stats one-half column'>
        <h2>User Stats</h2>  
        <ul>
          <li>Total Photos: {{ user.photos_set.count }}</li>
          <li>Total Albums: {{ user.album_set.count }}</li>
          <li>Last Photo Posted: </li>
        </ul>
{'fraction_non_alphanumeric': 0.18459796149490373, 'fraction_numerical': 0.009966024915062289, 'mean_word_length': 1.8145315487571703, 'pattern_counts': {'":': 0, '<': 133, '<?xml version=': 0, '>': 133, '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': '5209814', 'n_tokens_mistral': 1505, 'n_tokens_neox': 1388, 'n_words': 318}