{% load static i18n %}
{{ doubt.user.username }}

{{ doubt.user.get_full_name|default:doubt.user.username }}

{{ doubt.created_at|date:"d F, Y h:i A" }} {% if doubt.doubt_type == 'text' %} {% trans "টেক্সট" %} {% elif doubt.doubt_type == 'image' %} {% trans "ইমেজ" %} {% elif doubt.doubt_type == 'code' %} {% trans "কোড" %} {% endif %} {% if doubt.class_level %} {{ doubt.class_level.name }} {% endif %}

{% if doubt.doubt_type == 'text' %}

{{ doubt.content }}

{% elif doubt.doubt_type == 'image' %} {% trans 'প্রশ্নের ইমেজ' %} {% if doubt.content %}

{{ doubt.content }}

{% endif %} {% elif doubt.doubt_type == 'code' %}
{% if doubt.language == 'python' %}Python {% elif doubt.language == 'javascript' %}JavaScript {% elif doubt.language == 'java' %}Java {% elif doubt.language == 'cpp' %}C++ {% elif doubt.language == 'c' %}C {% elif doubt.language == 'html' %}HTML {% elif doubt.language == 'css' %}CSS {% else %}{% trans "অন্যান্য" %} {% endif %}
{{ doubt.content }}
{% endif %}
{% for comment in doubt.comments.all|slice:":3" %}
{{ comment.user.username }}
{{ comment.user.get_full_name|default:comment.user.username }} {{ comment.created_at|timesince }} {% trans "আগে" %}

{{ comment.content }}

{% endfor %}
{{ request.user.username }}