{% comment %}
    Renders a link to a single project or system. Expects 'item' as a parameter. 
{% endcomment %}

{% assign item = include.item %}

<li class="collection-item avatar">
    {% if item.logo %} <img src="/{{item.logo}}" alt="{{item.title}} logo" class="circle" style="border-radius: 0;" /> {% endif %}
    <a href="{{item.url}}" class="title">{{item.title}}</a>
    {% if item.funding %} ({{item.funding}}) {% endif %}
    {% if item.orphan %}<b>(up for adoption)</b>{% endif %}
    
    <div>
        {% if item.start_date %}
          {% unless item.end_date %}
          <b>started</b>
          {% endunless %}
          {% include date.html date=item.start_date %}
          
          {% if item.end_date %}
              &nbsp;-&nbsp;
              {% include date.html date=item.end_date %}
          {% endif %}
          <br />
        {% endif %}

        {% if item.supported-by %}
            <b>funded by</b>
            
            {% for project in item.supported-by %}
                {% include project_chip.html project=project %}
            {% endfor %}
            <br />
        {% endif %}

        {{item.teaser | safe}}
    </div>
</li>