<div class="float-end opacity-25">{{object.rcr_platform_id}}</div>

{% load markdownify %}
{% if item.content_type == "Web link" or item.content_type == "Video" or item.content_type == "Audio" or item.content_type == "PowerPoint" or item.content_type == "Course" %}
    <p>Link: <a href="https://cr.rcrlearning.org/#/catalogue/landingpage/item/{{object.rcr_platform_id}}/" title="Link to content on learning hub">click here</a></p>

{% elif item.content_type == "Curriculum" %}
    <p>Link: <a href="https://cr.rcrlearning.org/#/catalogue/item/{{object.rcr_platform_id}}/" title="Link to content on learning hub">click here</a></p>

{% else %}

    <p>Unknown content type!</p>

{% endif %}


{% if item.review_link %}
    <p>Review link: {{item.review_link}}

        {% if item.password %}
            <br/>Password: {{item.password}}
        {% endif %}
    </p>

{% endif %}

<p>
    <b>Description</b><br/>
    <pre> {{object.description|markdownify}}</pre>
</p>

<p>
    <details>
        <summary>
            <b>Description (raw)</b><br/>
        </summary>
    <pre> {{object.description}}</pre>
    </details>
</p>

<div class="d-flex flex-row mb-3 flex-wrap">
    <div class="p-2">
        <b>Content type</b><br/>
        {{object.content_type}}
    </div>

    <div class="p-2">
        <b>Created on</b><br/>
        {{object.created_on}}
    </div>
    <div class="p-2">
        <b>Number of items</b><br/>
        {{object.number_of_items}}
    </div>
    <div class="p-2">
        <b>Speciality</b><br/>
        {{object.specialty}}
    </div>
    <div class="p-2">
        <b>Access count</b><br/>
        {{object.access_count}}
    </div>
    <div class="p-2">
        <b>Targeted to group</b><br/>
        {{object.targeted_to_group}}
    </div>
</div>