{ opts.project_name } ID: { data.activity.id }
{% trans 'Partner ID' %}: { data.activity.internal_identifier }
{% ifsetting OIPA_SYNC_ENABLED %}
{% trans 'IATI ID' %}: { data.activity.iati_identifier }
IATI Sync:
= 1 }>{% trans 'Active' %}
{% trans 'Not Active' %}
{% endifsetting %}
{% trans 'Date Created' %}: { data.activity.date_created }
{% trans 'Last Updated' %}: { data.activity.date_modified }
{% if user.is_superuser %}
{% trans 'Reporting Org' %}: { data.activity.reporting_organisation.name }
{% endif %}
{title || untitled}
var tag = this; // Django-ish template code tag.link = "{% url 'activity_profile' activity.pk %}"; var lc = '{{ LANGUAGE_CODE }}' tag.untitled = "{% trans 'Untitled' %}"; tag.on('update', function(){ // Get title from the store. // Prefer current language, if available var title_in_native = _.find(stores.activityStore.activity.title_set, {language: lc}); var fallback = _.find(stores.activityStore.activity.title_set, {language: 'en'}); tag.title = _.get((title_in_native || fallback), 'title'); // Disable the link where the openly status is not yet set - the profile page returns a 404 tag.disabled = !(stores.activityStore.activity.openly_status === 'published') }); tag.on('mount', function(){ stores.activityStore.on('activity_status_changed', function(){tag.update()}) if (stores.reviewStore){ stores.reviewStore.on('activity_status_changed', function(){tag.update()}) } })