---
layout: default
---

{% assign username = page.url | replace: '/people/', '' | replace: '/', '' %}

<div class="row">
    
    <div class="col s12 m5 right">
        <div class="card">
            <div class="card-image">
                <img src="/{{page.pic}}" width="300"/>
            </div>
            <div class="card-content">
                <span class="card-title">{{ page.fullname }}</span>
                
                <hr />
                
                {% assign role = site.roles | where: "id", page.role %}
                {% assign role = role[0] %}
                
                {{role.name}} 
                {% if page.start_date %}
                    <br />
                    KWARCie
                    {% unless page.end_date %}
                        since
                    {% endunless %}
                    
                    {% include date.html date=page.start_date %}
                    
                    {% if page.end_date %}
                        &nbsp;-&nbsp;
                        {% include date.html date=page.end_date %}
                    {% endif %}
                {% endif %}
                
                {% if page.affiliation %}
                    <hr />
                    {{ page.affiliation }}
                {% endif %}

                
                <hr />
                <!-- Projects -->
                {% assign projects = site.pages | where: "layout", "project" | where: "active", true %}
                {% for project in projects %}
                    {% if project.people contains username %}
                        {% assign pid = project.url | replace: '/projects/', '' | replace: '/', '' %}
                        {% include project_chip.html project=pid %}
                    {% endif %}
                {% endfor %}

                <hr />

                <!-- Systems -->
                {% assign systems = site.pages | where: "layout", "system" %}
                {% for system in systems %}
                    {% unless system.end_date %}
                        {% if system.people contains username %}
                            {% assign sid = system.url | replace: '/systems/', '' | replace: '/', '' %}
                            {% include system_chip.html system=sid %}
                        {% endif %}
                    {% endunless %}
                {% endfor %}
            </div>
            <div class="card-action">
                {% if page.publink == "auto" %}
                <a href="http://kwarc.github.io/bibs/{{username}}/">
		  <img style="width:70px;height:70px" src="/public/pubs.jpg" title="Publications"/>
		</a>
                {% elsif page.publink %}
                <a href="{{page.publink}}">
		  <img style="width:70px;height:70px" src="/public/pubs.jpg" title="Publications"/>
		</a>
                {% endif %}
                {% if page.website %}
                <a target="_blank" href="{{page.website}}">
		  <img style="width:50px;height:50px" src="/public/www.jpg" title="Website"/>
		</a>
                {% endif %}
                {% if page.orcid %}
                <a target="_blank" href="http://orcid.org/{{page.orcid}}">
		  <img style="width:50px;height:50px" src="/public/orcid.png" title="ORCID"/>
		</a>
                {% endif %}
                {% if page.dblp %}
                <a target="_blank" href="https://dblp.uni-trier.de/pers/hd/{{page.dblp}}">
		  <img style="width:50px;height:50px" src="/public/dblp.png" title="DBLP"/>
		</a>
                {% endif %}
                {% if page.zbmath %}
                <a target="_blank"
		   href="https://zbmath.org/authors/?q=ai:{{page.zbmath}}">
		  <img style="width:50px;height:50px" src="/public/zbmath.png" title="zbMATH"/>
		</a>
                {% endif %}
                {% if page.github %}
                <a target="_blank" href="http://github.com/{{page.github}}">
		  <img style="width:50px;height:50px" src="/public/github.png" title="GitHub"/>
		</a>
                {% endif %}
                {% if page.gitlab %}
                <a target="_blank" href="http://gitlab.com/{{page.gitlab}}">
		  <img style="width:50px;height:50px" src="/public/gitlab.png" title="GitLab"/>
		</a>
                {% endif %}
                {% if page.mathhub %}
                <a target="_blank" href="http://gl.mathhub.info/{{page.mathhub}}">
		  <img style="width:50px;height:50px" src="/public/mathHubLogo.png" title="MathHub"/>
		</a>
                {% endif %}
            </div>
        </div>
        
    </div>
    
    <div class="caption">
        {{content}}
    </div>
</div>