Skip to content
Snippets Groups Projects
project.html 4.25 KiB
Newer Older
  • Learn to ignore specific revisions
  • Michael Kohlhase's avatar
    Michael Kohlhase committed
    ---
    layout: default
    ---
    
    
    <div class="row">
    
        <div class="col s12 m5 right">
    
            <div class="card">
                <div class="card-content">
                    <span class="card-title">{{page.title}}</span>
                    {% if page.subtitle %}<h6>{{page.subtitle}}</h6>{% endif %}
    
    Michael Kohlhase's avatar
    Michael Kohlhase committed
                    {% if page.teaser %}<h6>{{page.teaser}}</h6>{% endif %}
    
                    
                    {% if page.start_date %}
                        <p>
                            <b>From:</b>
    
    Tom Wiesing's avatar
    Tom Wiesing committed
                            {% include date.html date=page.start_date %}
    
                            
                            {% if page.end_date %}
    
    Tom Wiesing's avatar
    Tom Wiesing committed
                                <br />
                                <b>To:</b>
                                {% include date.html date=page.end_date %}
    
                            {% endif %}
                        </p>
                        <hr />
                    {% endif %}
                    
                    <!-- Funding etc -->
                    {% assign needs_break = false %}
                    
                    {% if page.funding %}
                        <b>Funding: </b> {{page.funding}}
                        <br />
                        {% assign needs_break = true %}
                    {% endif %}
                    
                    {% if page.program %}
                        <b>Program: </b> {{page.program}}
                        <br />
                        {% assign needs_break = true %}
                    {% endif %}
                    
                    {% if page.grantid %}
                        <b>Grant ID: </b> {{page.grantid}}
                        <br />
                        {% assign needs_break = true %}
                    {% endif %}
                    
                    {% if needs_break %}
                        <hr />
                    {% endif %}
                    
                    <!-- check if we need a break after this section -->
                    {% assign needs_break = false %}
                    
                    <!-- list all the people -->
                    {% for person in page.people %}
    
    Tom Wiesing's avatar
    Tom Wiesing committed
                      {% include people_chip.html person=person %}
    
                      {% assign needs_break = true %}
                    {% endfor %}
                    
                    <!-- if we have collaborators, we need to have a break -->
                    {% if needs_break %}
                        {% assign needs_break = false %}
                        {% for person in page.collaborators %}
                          {% assign needs_break = true %}
                        {% endfor %}
                        {% if needs_break %}
                            <hr />
                        {% endif %}
                    {% endif %}
                    
                    <!-- and print the collaborators -->
                    {% for person in page.collaborators %}
                        <div class="chip">
                            {{person}}
                        </div>
                        <br />
                    {% endfor %}
                </div>
    
    Michael Kohlhase's avatar
    Michael Kohlhase committed
                {% assign hasaction = false %}
    
    Michael Kohlhase's avatar
    Michael Kohlhase committed
                {% if page.website %}{% assign hasaction = true %}{% endif %}
                {% if page.repository %}{% assign hasaction = true %}{% endif %}
                {% if page.proposal %}{% assign hasaction = true %}{% endif %}
                {% if page.publink %}{% assign hasaction = true %}{% endif %}
                
                {% if hasaction %}
    
                    <div class="card-action">
    
    Michael Kohlhase's avatar
    Michael Kohlhase committed
                        {% if page.website %}
                            <a target="_blank" href="{{ page.website }}">Website</a>
                            &nbsp;
                        {% endif %}
                        {% if page.repository %}
                            <a target="_blank" href="{{ page.repository }}">Repository</a>
                            &nbsp;
    
    Michael Kohlhase's avatar
    Michael Kohlhase committed
                        {% endif %}
    
    Michael Kohlhase's avatar
    Michael Kohlhase committed
                       {% if page.proposal %}
                          <a target="_blank" href="{{page.proposal}}">Proposal</a>
                          &nbsp;
                        {% endif %} 
    
    Michael Kohlhase's avatar
    Michael Kohlhase committed
                   
    
                    {% if page.publink == "auto" %}
                      <a href="http://kwarc.github.io/bibs/{{ page.url | replace: '/projects/', '' | replace: '/', '' }}/">Publications</a>
                    {% elsif page.publink %}
                      <a href="{{page.publink}}">Publications</a>
                    {% endif %}
    
                    </div>
                {% endif %}
            </div>
    
    Tom Wiesing's avatar
    Tom Wiesing committed
      <div class="caption">
    
        {{content}}
    
    Tom Wiesing's avatar
    Tom Wiesing committed
      </div>
    
    Michael Kohlhase's avatar
    Michael Kohlhase committed
    </div>