psitem.html 1.15 KB
Newer Older
1
2
3
4
{% comment %}
    Renders a link to a single project or system. Expects 'item' as a parameter. 
{% endcomment %}

Tom Wiesing's avatar
Tom Wiesing committed
5
6
{% assign item = include.item %}

7
8
<li class="collection-item avatar">
    {% if item.logo %} <img src="/{{item.logo}}" alt="{{item.title}} logo" class="circle" style="border-radius: 0;" /> {% endif %}
9
    <a href="{{item.url}}" class="title">{{item.title}}</a>
Michael Kohlhase's avatar
Michael Kohlhase committed
10
    {% if item.funding %} ({{item.funding}}) {% endif %}
11
    {% if item.orphan %}<b>(up for adoption)</b>{% endif %}
Tom Wiesing's avatar
Tom Wiesing committed
12
13
    
    <div>
14
15
16
17
        {% if item.start_date %}
          {% unless item.end_date %}
          <b>started</b>
          {% endunless %}
Tom Wiesing's avatar
Tom Wiesing committed
18
          {% include date.html date=item.start_date %}
19
20
21
          
          {% if item.end_date %}
              &nbsp;-&nbsp;
Tom Wiesing's avatar
Tom Wiesing committed
22
              {% include date.html date=item.end_date %}
23
24
25
          {% endif %}
          <br />
        {% endif %}
26
27
28
29
30
31
32
33
34
35

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

36
        {{item.teaser | safe}}
Tom Wiesing's avatar
Tom Wiesing committed
37
    </div>
Michael Kohlhase's avatar
Michael Kohlhase committed
38
</li>