{% extends "dashboard/base.html" %} {% block title %}{{ project.alias or project.site_id }} - {{ t.projects }}{% endblock %} {% block page_title %}
{{ project.plugin_type|plugin_name }}: {{ project.alias or project.site_id }}
{% endblock %} {% block content %}

{% if lang == 'fa' %}وضعیت{% else %}Status{% endif %}

{% if project.health.status == 'healthy' %} {{ t.healthy }} {% elif project.health.status == 'warning' %} {% if lang == 'fa' %}هشدار{% else %}Warning{% endif %} {% elif project.health.status == 'unhealthy' %} {% if lang == 'fa' %}ناسالم{% else %}Unhealthy{% endif %} {% else %} {% if lang == 'fa' %}نامشخص{% else %}Unknown{% endif %} {% endif %}
{% if project.health.status == 'healthy' %} {% elif project.health.status == 'unknown' %} {% else %} {% endif %}
{% if project.health.error_rate and project.health.error_rate > 0 %}

{% if lang == 'fa' %}نرخ خطا:{% else %}Error rate:{% endif %} {{ project.health.error_rate|round(1) }}%

{% elif project.health.last_check %}

{% if lang == 'fa' %}آخرین بررسی:{% else %}Last check:{% endif %} {{ project.health.last_check[:19] }}

{% endif %}

{% if lang == 'fa' %}ابزارها{% else %}Tools{% endif %}

{{ project.tools_count }}

{% if lang == 'fa' %}ابزار موجود{% else %}available{% endif %}

{% if lang == 'fa' %}کلیدهای API{% else %}API Keys{% endif %}

{{ project.api_keys_count }}

{{ t.view_all }} →

{% if lang == 'fa' %}درخواست‌ها{% else %}Requests{% endif %}

{{ project.requests_24h }}

{% if lang == 'fa' %}در 24 ساعت{% else %}/24h{% endif %}

{% if lang == 'fa' %}تنظیمات{% else %}Configuration{% endif %}

{% if lang == 'fa' %}شناسه کامل{% else %}Full ID{% endif %}
{{ project.full_id }}
{% if lang == 'fa' %}نوع پلاگین{% else %}Plugin Type{% endif %}
{{ project.plugin_type|plugin_name }}
{% if lang == 'fa' %}شناسه سایت{% else %}Site ID{% endif %}
{{ project.site_id }}
{% if project.alias %}
{% if lang == 'fa' %}نام مستعار{% else %}Alias{% endif %}
{{ project.alias }}
{% endif %} {% if project.url %} {% endif %}
{% if lang == 'fa' %}اندپوینت MCP{% else %}MCP Endpoint{% endif %}
/project/{{ project.alias or project.full_id }}/mcp

{% if lang == 'fa' %}ابزارهای موجود{% else %}Available Tools{% endif %}

{{ project.tools|length }} {% if lang == 'fa' %}ابزار{% else %}tools{% endif %}
{% for tool in project.tools[:50] %} {% endfor %} {% if project.tools|length > 50 %} {% endif %}
{% if lang == 'fa' %}نام{% else %}Name{% endif %} {% if lang == 'fa' %}توضیحات{% else %}Description{% endif %} {% if lang == 'fa' %}دسترسی{% else %}Scope{% endif %}
{{ tool.name }} {{ tool.description[:60] }}{% if tool.description|length > 60 %}...{% endif %} {% set scope_colors = {'read': 'bg-blue-500/20 text-blue-400', 'write': 'bg-orange-500/20 text-orange-400', 'admin': 'bg-red-500/20 text-red-400'} %} {{ tool.scope }}
{% if lang == 'fa' %}و {{ project.tools|length - 50 }} ابزار دیگر...{% else %}and {{ project.tools|length - 50 }} more tools...{% endif %}

{% if lang == 'fa' %}عملیات سریع{% else %}Quick Actions{% endif %}

{{ t.recent_activity }}

{% if project.recent_activity %} {% for activity in project.recent_activity[:5] %}
{% if activity.level == 'ERROR' %} {% else %} {% endif %} {{ activity.message }}
{{ activity.timestamp[:16] }}
{% endfor %} {% else %}
{{ t.no_activity }}
{% endif %}
{% endblock %} {% block scripts %} {% endblock %}