{% extends 'base.html' %} {% load static %} {% load placeholder_filters %} {% block bodydata %} data-project-id="{{ project.id }}" data-project-locked="{{ project.islocked }}" {% endblock %} {% block title %} | Project: {{ project.name }} - Social interactions{% endblock %} {% block main %}
{% include 'snippets/messages.html' %}
{#
#} {#

#} {# {% if project.islocked %}#} {# {% endif %}#} {# Pull from social media#} {# {% if not project.islocked %}#} {# #} {# #} {# Create new pull task#} {# #} {# {% endif %}#} {#

#} {##} {# {% for si_pull in project.socialinteractions_pull.all %}#} {# {% if forloop.first %}#} {#
    #} {# {% endif %}#} {##} {#
  • #} {#
    #} {# {% if si_pull.islocked %}#} {# {% endif %}#} {#

    {% if si_pull.socialaccount %}#} {# {{ si_pull.socialaccount.get_provider.name }} social provider#} {# {{ si_pull.socialaccount.provider|capfirst }} account:#} {# {% if si_pull.socialaccount.provider == 'twitter' %}@{% endif %}{{ si_pull.socialaccount.get_provider_account }}{% endif %}#} {#

    #} {#

    {% if si_pull.status == 'inactive' %}#} {# {% else %}#} {# {% endif %} Text to#} {# pull ({{ si_pull.frequency }}):
    #} {# {% autoescape off %}#} {# {{ si_pull.text_to_pull }}{% endautoescape %}#} {#

    #} {#
  • #} {##} {# {% if forloop.last %}#} {#
#} {# {% endif %}#} {# {% empty %}#} {#
#} {#

We couldn't find any social interactions for this project.

#} {##} {# {% if project.islocked %}#} {#

Unfortunately, you cannot create new social interactions when the project is locked.

#} {# {% else %}#} {# Create new pull task#} {# {% endif %}#} {#
#} {# {% endfor %}#} {#
#} {#
#}

{% if project.islocked %} {% endif %} {# Post to social media#} Post to Twitter {% if not project.islocked %} Create new post task {% endif %}

{% for socialinteraction in project.socialinteractions_post.all %} {% if forloop.first %}
    {% endif %}
  • {% if socialinteraction.islocked %} {% endif %}

    {% if socialinteraction.socialaccount %} {{ socialinteraction.socialaccount.get_provider.name }} social provider {{ socialinteraction.socialaccount.provider|capfirst }} account: {% if socialinteraction.socialaccount.provider == 'twitter' %}@{% endif %}{{ socialinteraction.socialaccount.get_provider_account }}{% endif %}

    {% if socialinteraction.status == 'inactive' %} {% else %} {% endif %} Text to post:
    {% autoescape off %} {{ socialinteraction.text_to_post|add_link:socialinteraction.link }}{% endautoescape %}

  • {% if forloop.last %}
{% endif %} {% empty %}

We couldn't find any social interactions for this project.

{% if project.islocked %}

Unfortunately, you cannot create new social interactions when the project is locked.

{% else %} Create new post task {% endif %}
{% endfor %}
{% endblock %} {% block libraries %} {% endblock %}