{% load i18n learning django_bootstrap_breadcrumbs %} {% get_object_perms resource user as resource_perms %} {% if request.GET.activity in request.META.HTTP_REFERER %}
{% endif %}
{# Resource title and permalink #}

{% if resource.name|length >= 70 %} {{ resource.name|truncatechars:40 }} {% else %} {{ resource.name }} {% endif %}

{# Resource management buttons #}
{% if "change_resource" in resource_perms %} {# Change/update resource button #} {% trans "Edit" %} {% endif %} {% if "delete_resource" in resource_perms %} {# Delete resource button #} {% endif %}

{% include "learning/_includes/object_tags_line.html" %}
{% include "learning/_includes/object_language.html" %} {% blocktrans with author=resource.author %}Writen by {{ author }}{% endblocktrans %}

{% if user == resource.author or contribution%} {% include "learning/resource/_includes/details/status_line.html" %}
{% endif %}
{# The attachment file which may be attached to the resource #} {% if resource.attachment %}
{% endif %} {{ resource.description | render_markdown | safe }}
{% if current_course_activity_resource_objective.has_obj %} {% include "learning/taxonomy/objective/detail/objective_list.html" with object=resource objectives=current_course_activity_resource_objective.page_obj object_name='resource'%} {% elif objectives.has_obj %} {% include "learning/taxonomy/objective/detail/objective_list.html" with object=resource objectives=objectives.page_obj object_name='resource'%} {% else %} {% endif %}