Skip to content
Snippets Groups Projects
people_list.html 1.32 KiB
Newer Older
  • Learn to ignore specific revisions
  • {% comment %}
        Generates a list of people. 
        Expects 'people' as an argument, representing the list of people to show. 
    {% endcomment %}
    
    {% for role in site.roles %}
        {% assign rollers = people | where: "role", role.id %}
        
        {% if rollers.size > 0 %}
            <ul class="collection with-header">
    
    Michael Kohlhase's avatar
    Michael Kohlhase committed
              <li class="collection-header">
    	  <h5>{{role.name}}(s)</h5></li>
    
                {% for person in rollers %}
                    <li class="collection-item avatar">
    
    Michael Kohlhase's avatar
    Michael Kohlhase committed
                        <img src="/{{person.pic}}" alt="" class="circle"/>
                        <a href="{{person.url}}" class="title">{{person.fullname}}</a>
                        <p>
                          {% if person.start_date %}
    
                            {% unless person.end_date %}
                            since
                            {% endunless %}
    
    Tom Wiesing's avatar
    Tom Wiesing committed
                            {% assign date = person.start_date %}
                            {% include date.html %}
    
                            
                            {% if person.end_date %}
                                &nbsp;-&nbsp;
                                {% assign date = person.end_date %}
                                {% include date.html %}
                            {% endif %}
    
    Michael Kohlhase's avatar
    Michael Kohlhase committed
                          {% endif %}
                        </p>
    
                    </li>
                {% endfor %}
            </ul>
        {% endif %}
    
    Michael Kohlhase's avatar
    Michael Kohlhase committed
    {% endfor %}