{% macro render_cfp_infoline(event, cfp, contributions) %}
{% set is_authorized = cfp.is_authorized_submitter(session.user) %} {% set can_submit = cfp.can_submit_proceedings(session.user) %}
{%- if cfp.is_open %} {%- trans %}The call for papers is open{% endtrans -%} {% elif is_authorized %} {%- trans %}You have been authorized to submit papers{% endtrans -%} {% else %}
{% trans %}The call for papers is closed.{% endtrans %}
{% endif -%}
{%- if can_submit %}
{% if contributions|length == 1 %} {% set contrib = contributions|first %} {% set contrib_title -%} {{ '#%d: %s' | format(contrib.friendly_id, contrib.title) | truncate(65) }} {%- endset %} {%- trans %}You can submit your paper for {{ contrib_title }}{% endtrans -%} {% else %} {%- trans %}You can submit a paper{% endtrans -%} {% endif %}
{% endif -%}
{%- if can_submit %}
{% if contributions|length == 1 %} {% set contrib = contributions|first %} {% else %} {% endif %}
{% endif %}
{% endmacro %}