<commit_before>extends base

- load gravatar
- load markdown_trois_tags
- load reference
- load smart_math
- load camo_proxy
- load i18n

block media
    | #{form.media.css}
    style.
        .container {
            width: 100%;
            max-width: 800px;
            margin: 0 auto;
        }

        .message {
            display: flex;
            margin-top: -40px;
            padding-top: 50px;
        }

        .message .username {
            text-align: center;
        }

        .message .gravatar {
            width: 80px;
            display: block;
            margin: 0 auto;
        }

        .message .info {
            width: 130px;
        }

        .message .message-date, .message .message-time {
            text-align: center;
        }

        .message .content {
            border: 1px #999 solid;
            border-radius: 5px;
            padding: 7px;
            flex: 1;
        }

        .message .content :first-child {
            margin-top: 0;
        }

        .message .content :last-child {
            margin-bottom: 0;
        }

        .ticket-info {
            margin-bottom: 1em;
        }

        .new-message .content {
            padding: 15px 10px;
        }

        .new-message .submit {
            margin: 10px 0 0 auto;
        }

block js_media
    | #{form.media.js}

block content_title
    | #{ticket.title}
    small ##{ticket.id}

block body
    .container
        .ticket-info
            div #[b {% trans "Associated object:" %} ]
                a(href=ticket.linked_item.get_absolute_url)= ticket.linked_item
        main.messages: each message in messages
            section.message(id='message-{{ message.id }}')
                .info
                    a.user(href='{% url "user_page" message.user.user.username %}')
                        img.gravatar(src='{% gravatar_url message.user.user.email 135 message.user.mute %}')
                        .username(class=message.user.display_rank) #{message.user.user.username}
                    .message-date #{message.time|date:"DATE_FORMAT"}
                    .message-time #{message.time|time:"TIME_FORMAT"}
                .content #{message.body|markdown:"ticket"|reference|smart_math:MATH_ENGINE|proxy_images}
        hr
        section.message.new-message
            .info
                a.user(href='{% url "user_page" %}')
                    - with profile=request.user.profile
                        img.gravatar(src='{% gravatar_url request.user.email 135 profile.mute %}')
                        .username(class=profile.display_rank) #{request.user.username}
                .message-date #{message.time | date:"DATE_FORMAT"}
                .message-time #{message.time | time:"TIME_FORMAT"}
            .content: form(action='', method='post')
                - csrf_token
                .form-errors
                    | {{ form.non_field_errors }}
                    | {{ form.body.errors }}
                .body-block #{form.body}
                button.submit(type='submit') {% trans "Post" %}
<commit_msg>Style new content title; #327<commit_after>extends base

- load gravatar
- load markdown_trois_tags
- load reference
- load smart_math
- load camo_proxy
- load i18n

block media
    | #{form.media.css}
    style.
        #content > h2:first-child small {
            color: #999;
            font-size: 0.9em;
            margin-left: 0.3em;
        }

        .container {
            width: 100%;
            max-width: 800px;
            margin: 0 auto;
        }

        .message {
            display: flex;
            margin-top: -40px;
            padding-top: 50px;
        }

        .message .username {
            text-align: center;
        }

        .message .gravatar {
            width: 80px;
            display: block;
            margin: 0 auto;
        }

        .message .info {
            width: 130px;
        }

        .message .message-date, .message .message-time {
            text-align: center;
        }

        .message .content {
            border: 1px #999 solid;
            border-radius: 5px;
            padding: 7px;
            flex: 1;
        }

        .message .content :first-child {
            margin-top: 0;
        }

        .message .content :last-child {
            margin-bottom: 0;
        }

        .ticket-info {
            margin-bottom: 1em;
        }

        .new-message .content {
            padding: 15px 10px;
        }

        .new-message .submit {
            margin: 10px 0 0 auto;
        }

block js_media
    | #{form.media.js}

block content_title
    | #{ticket.title}
    small ##{ticket.id}

block body
    .container
        .ticket-info
            div #[b {% trans "Associated object:" %} ]
                a(href=ticket.linked_item.get_absolute_url)= ticket.linked_item
        main.messages: each message in messages
            section.message(id='message-{{ message.id }}')
                .info
                    a.user(href='{% url "user_page" message.user.user.username %}')
                        img.gravatar(src='{% gravatar_url message.user.user.email 135 message.user.mute %}')
                        .username(class=message.user.display_rank) #{message.user.user.username}
                    .message-date #{message.time|date:"DATE_FORMAT"}
                    .message-time #{message.time|time:"TIME_FORMAT"}
                .content #{message.body|markdown:"ticket"|reference|smart_math:MATH_ENGINE|proxy_images}
        hr
        section.message.new-message
            .info
                a.user(href='{% url "user_page" %}')
                    - with profile=request.user.profile
                        img.gravatar(src='{% gravatar_url request.user.email 135 profile.mute %}')
                        .username(class=profile.display_rank) #{request.user.username}
                .message-date #{message.time | date:"DATE_FORMAT"}
                .message-time #{message.time | time:"TIME_FORMAT"}
            .content: form(action='', method='post')
                - csrf_token
                .form-errors
                    | {{ form.non_field_errors }}
                    | {{ form.body.errors }}
                .body-block #{form.body}
                button.submit(type='submit') {% trans "Post" %}

{'fraction_non_alphanumeric': 0.11758172008886068, 'fraction_numerical': 0.01539193906696287, 'mean_word_length': 1.3847900113507379, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '1657208', 'n_tokens_mistral': 1913, 'n_tokens_neox': 1723, 'n_words': 353}