{% extends "dashboard/layout.html" %} {% block title %}{{ _('My Blog Posts – OnlineConvert') }}{% endblock %} {% block dashboard_content %}

{{ _('My Blog Posts') }}

{{ _('Write and manage your blog posts.') }}

{{ _('Write New Post') }}
{% with messages = get_flashed_messages(with_categories=true) %}{% for cat, msg in messages %}{% endfor %}{% endwith %} {% if request.args.get('blog_payment') == 'success' %}
{{ _('Payment Successful!') }}
{{ _('Your blog post is now published and live on the site.') }}
{% endif %}

{{ _('How Blog Publishing Works') }}

1
{{ _('Write your post and submit it') }}
2
{{ _('Admin reviews your submission') }}
3
{{ _('Pay publication fee (if charged)') }}
{{ _('Your post goes live publicly') }}
{% if blogs %}
{% for blog in blogs %}
{% if blog.image %}
{% else %}
{% endif %}

{{ blog.title or _('Untitled') }}

{% if blog.status == 'published' %}{{ _('Published') }} {% elif blog.status == 'pending_review' %}{{ _('Under Review') }} {% elif blog.status == 'pending_payment' %}{{ _('Payment Required') }} {% elif blog.status == 'rejected' %}{{ _('Rejected') }} {% else %}{{ blog.status|title }}{% endif %}
{% if blog.summary %}

{{ blog.summary }}

{% endif %} {% if blog.status == 'pending_payment' %}
{{ _('Action Required — Publication Fee: $%(fee)s', fee='%.2f'|format(blog.publish_fee)) }}
{% if blog.admin_note %}
{{ _('Admin note:') }} {{ blog.admin_note }}
{% endif %}
{{ _('Pay & Publish') }}
{% elif blog.status == 'rejected' %}
{% if blog.admin_note %}{{ blog.admin_note }}{% else %}{{ _('Your post was rejected. You can edit and resubmit it.') }}{% endif %}
{% elif blog.status == 'pending_review' %}
{{ _("Your post is being reviewed by our team. We'll notify you once it's processed.") }}
{% endif %}
{{ _('Submitted') }} {{ blog.created_at[:10] if blog.created_at else '' }} {% if blog.updated_at and blog.updated_at != blog.created_at %} ·{{ _('Updated') }} {{ blog.updated_at[:10] }} {% endif %}
{% if blog.status == 'published' %} {{ _('View') }} {% endif %} {% if blog.status in ('draft', 'rejected', 'pending_review') %} {{ _('Edit') }} {% endif %} {% if blog.status != 'published' %}
{% endif %}
{% endfor %}
{% else %}

{{ _('No blog posts yet') }}

{{ _('Share your expertise with the community. Write your first blog post.') }}

{{ _('Write Your First Post') }}
{% endif %}
{% endblock dashboard_content %}