<commit_before>{% extends "home.html" %}
{% load humanize %}
{% load custommardown %}


{% comment %}
# Copyright 2012, hast. All rights reserved.

# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at
# your option) any later version.
{% endcomment %}

{% block content %}
<h1>{{ object.name }}</h1>

<table class="messages">
{% for message in object.message_set.all %}
<tr class="message">
  <td class="message-left">
    <img class="small-profile" src="{{ message.user.get_photo }}">
    <strong>{{ message.user.name }}</strong><br>
    {{ message.created|naturaltime }}<br>

  </td>
  <td class="message-right">
    {{ message.text|markdown }}
  </td>
</tr>
{% endfor %}
<tr class="message">
  <td class="message-left">
    <img class="small-profile" src="{{ user.get_photo }}">
    <strong>You</strong>
  </td>
  <td class="message-right">
    <form class="message-form" action="{% url thread_reply %}" method="post">
      {% csrf_token %}
      {{ reply_form.as_p }}
      <input class="panel-button" type="submit" value="Reply"/>
    </form>
  </td>
</tr><commit_msg>[enh] fix #17: render $expression$ as TeX Math in threads<commit_after>{% extends "home.html" %}
{% load humanize %}
{% load custommardown %}


{% comment %}
# Copyright 2012, hast. All rights reserved.

# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at
# your option) any later version.
{% endcomment %}

{% block header %}
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$']]}});
</script>
<script type="text/javascript"
  src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
{% endblock %}

{% block content %}
<h1>{{ object.name }}</h1>

<table class="messages">
{% for message in object.message_set.all %}
<tr class="message">
  <td class="message-left">
    <img class="small-profile" src="{{ message.user.get_photo }}">
    <strong>{{ message.user.name }}</strong><br>
    {{ message.created|naturaltime }}<br>

  </td>
  <td class="message-right">
    {{ message.text|markdown }}
  </td>
</tr>
{% endfor %}
<tr class="message">
  <td class="message-left">
    <img class="small-profile" src="{{ user.get_photo }}">
    <strong>You</strong>
  </td>
  <td class="message-right">
    <form class="message-form" action="{% url thread_reply %}" method="post">
      {% csrf_token %}
      {{ reply_form.as_p }}
      <input class="panel-button" type="submit" value="Reply"/>
    </form>
  </td>
</tr>
{'fraction_non_alphanumeric': 0.18578063594140765, 'fraction_numerical': 0.006073597713469096, 'mean_word_length': 4.072463768115942, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 59, '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': '1511557', 'n_tokens_mistral': 967, 'n_tokens_neox': 903, 'n_words': 250}