{% extends "base.html" %} {% block title %}{{ fm.name }}{% endblock %} {% block page_title %} {{ fm.name }}{% endblock %} {% block content %} {% set badge = {'active':'chip-active','paused':'chip-group','completed':'chip-telegram','stopped':'chip-inactive','draft':'chip-private'}.get(fm.status,'chip-private') %}
وضعیت
{{ fm.status }}
اکانت‌ها ({{ participant_ids|length }})
{% for pid in participant_ids %}{{ account_names.get(pid, pid) }}{% if not loop.last %}، {% endif %}{% endfor %}
مقصد
{{ fm.destination_title or fm.destination_chat_id }}
زمان‌بندی
هر {{ fm.schedule_value }} دقیقه{% if participant_ids|length > 1 %} (چرخشی بین {{ participant_ids|length }} اکانت){% endif %}
ارسال‌شده
{{ fm.sent_count }} {{ '('+fm.error_count|string+' خطا)' if fm.error_count else '' }}
{% if fm.ai_enabled %}
AI
{{ provider_name }}
{% endif %}
{% if fm.status_detail %}
{{ fm.status_detail }}
{% endif %} {# Full settings — editable; a running fixed message reads these once at start, so changes take effect from the next start, not retroactively (see FixedMessageService.update_settings). #}
تنظیمات پیام ثابت
تغییرات از اجرای بعدی اعمال می‌شود
{% for a in all_accounts %}
{% else %}
اکانتی موجود نیست.
{% endfor %}
متن پیام
{{ fm.message_text }}
{% if fm.media_path %}
رسانهٔ پیوست: {{ fm.media_file_name or fm.media_path }} {% if fm.media_kind and fm.media_kind != 'auto' %} {{ {'voice':'پیام صوتی (ویس)','document':'فایل خام'}.get(fm.media_kind, fm.media_kind) }} {% endif %}
{% endif %} {% if fm.completion_type=='automatic' %}
پایان اتوماتیک: {% if fm.stop_after_messages %} پس از {{ fm.stop_after_messages }} پیام{% endif %} {% if fm.stop_after_minutes %} · {{ fm.stop_after_minutes }} دقیقه{% endif %} {% if fm.stop_after_hours %} · {{ fm.stop_after_hours }} ساعت{% endif %}
{% endif %}
لاگ ارسال‌ها ({{ logs|length }})
{% for l in logs %}
{{ l.status }}{% if l.ai_used %} · AI{% endif %} {{ account_names.get(l.account_id, '') }} · {{ l.created_at|jalali('%Y/%m/%d %H:%M:%S') if l.created_at else '' }}
{% if l.error %}
{{ l.error }}
{% else %}
{{ (l.content or '')[:300] }}
{% endif %}
{% else %}

هنوز ارسالی ثبت نشده است

{% endfor %}
{% endblock %} {% block scripts %} {% endblock %}