diff --git a/_includes/psitem.html b/_includes/psitem.html index 5fd70221d931950b81692a196bd1e7f1a14634d3..f7438f918913d131eba88568d7f7fdc794f64ffd 100644 --- a/_includes/psitem.html +++ b/_includes/psitem.html @@ -22,7 +22,16 @@ {% 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> diff --git a/_layouts/project.html b/_layouts/project.html index cd5894b8edfb5b5854bb9b1e0eb5ea1b648594c1..a5f951f2c7d960ec773c81bb17464f73a3d11468 100644 --- a/_layouts/project.html +++ b/_layouts/project.html @@ -2,6 +2,8 @@ layout: default --- +{% assign id = page.url | replace: '/projects/', '' | replace: '/', '' %} + <div class="row"> <div class="col s12 m5 right"> <div class="card"> @@ -81,6 +83,18 @@ layout: default </div> <br /> {% endfor %} + + <!-- and list the systems it supports --> + <hr /> + <b>Funds: </b> + {% assign systems = site.pages | where: "layout", "system" %} + {% for system in systems %} + {% if system.supported-by contains id %} + {% assign sid = system.url | replace: '/systems/', '' | replace: '/', '' %} + {% include system_chip.html system=sid %} + {% endif %} + {% endfor %} + </div> {% assign hasaction = false %} diff --git a/_layouts/system.html b/_layouts/system.html index 5fbff6f5040b0032e7b12fd0a53530c774fb5bcd..2b89166432ccc7d57efa696a386521ae6440f123 100644 --- a/_layouts/system.html +++ b/_layouts/system.html @@ -15,6 +15,8 @@ layout: default {% if page.subtitle %}<h6>{{page.subtitle}}</h6>{% endif %} {% if page.teaser %}<h6>{{page.teaser}}</h6>{% endif %} + <hr /> + {% if page.start_date %} <p> <b>Start:</b> @@ -43,6 +45,15 @@ layout: default {% for person in page.people %} {% include people_chip.html person=person %} {% endfor %} + + {% if page.supported-by %} + <hr /> + <b>Funded by: </b> + + {% for project in page.supported-by %} + {% include project_chip.html project=project %} + {% endfor %} + {% endif %} </div> {% assign hasaction = false %} @@ -61,13 +72,6 @@ layout: default <a target="_blank" href="{{ page.repository }}">Repository</a> {% endif %} - {% if page.supported-by %} - <br/>funded by: - {% for project in page.supported-by %} - <a target="_blank" href="/projects/{{project}}">{{project}}</a> - {% endfor %} - - {% endif %} {% if page.publink == "auto" %} <a href="http://kwarc.github.io/bibs/{{ page.url | replace: '/projects/', '' | replace: '/', '' }}/">Publications</a> {% elsif page.publink %}