{% extends "layouts/base.html" %} {% block main_content %}

{% if user %} {{ i18n.t('dashboard.welcome_back', name=user.first_name) }} {% else %} {{ i18n.t('dashboard.welcome') }} {% endif %}

{{ i18n.t('dashboard.subtitle') }}

{{ i18n.t('dashboard.create_new') }}
{{ i18n.t('dashboard.new_prompt') }}
{{ i18n.t('stats.total_prompts') }}
{{ prompts|length + 10 }}
{{ i18n.t('stats.templates') }}
{{ i18n.t('dashboard.browse') }}
{{ i18n.t('nav.settings') }}
{{ i18n.t('dashboard.configure') }}

{{ i18n.t('dashboard.recent_prompts') }}

{{ i18n.t('dashboard.view_all') }}
{% if prompts %}
{% for prompt in prompts %}

{{ prompt.name }}

{{ prompt.category }}

{{ prompt.description or prompt.content[:100] + '...' if prompt.content|length > 100 else prompt.content }}

{{ i18n.t('dashboard.recently_created') }}
{% endfor %}
{% else %}

{{ i18n.t('dashboard.no_prompts') }}

{{ i18n.t('dashboard.no_prompts_desc') }}

{{ i18n.t('dashboard.create_first') }}
{% endif %}

{{ i18n.t('tips.title') }}

1

{{ i18n.t('tips.create_title') }}

{{ i18n.t('tips.create_desc') }}

2

{{ i18n.t('tips.templates_title') }}

{{ i18n.t('tips.templates_desc') }}

3

{{ i18n.t('tips.test_title') }}

{{ i18n.t('tips.test_desc') }}

4

{{ i18n.t('tips.organize_title') }}

{{ i18n.t('tips.organize_desc') }}

{% endblock %}