diff --git a/source/_patterns/03-layouts/ofis/ofis.twig b/source/_patterns/03-layouts/ofis/ofis.twig index cff4105f707415f2d3ed664c497996450ea02d4e..20d4e3c3940274db9e22fe987273e4300a49cd16 100644 --- a/source/_patterns/03-layouts/ofis/ofis.twig +++ b/source/_patterns/03-layouts/ofis/ofis.twig @@ -1,123 +1,121 @@ -<section class="layout layout--uw-1-col"> - <div id="profile-check"> - <div class="field field-name-field-profile-title field-type-text field-label-hidden"> - <div class="field-items"> - <div class="field-item even" property="schema:jobTitle">{{ ofis_data.title }}</div> - </div> +<div class="profile-check"> + <div class="field field-name-field-profile-title field-type-text field-label-hidden"> + <div class="field-items"> + <div class="field-item even" property="schema:jobTitle">{{ ofis_data.title }}</div> </div> - <div class="field field-name-body field-type-text-with-summary field-label-hidden"> - <div class="field-items"> - <div class="field-item even" property="content:encoded"> - <div class="ofis-header"> - {% if ofis_data.picture %} - <div class="ofis-picture"> - <img alt="{{ ofis_data.name }}" class="image-left" src="{{ ofis_data.picture }}"> - </div> - {% endif %} - <div> - <h2>Contact information</h2> - {% if ofis_data.personal.email %} - <div>Email: <a href="mailto:{{ ofis_data.personal.email }}">{{ ofis_data.personal.email }}</a></div> - {% endif %} - {% if ofis_data.personal.phones %} - <div>Phone: {{ ofis_data.personal.phones }}</div> - {% endif %} - {% if ofis_data.personal.offices %} - <div>Location: {{ ofis_data.personal.offices }}</div> - {% endif %} - {% if ofis_data.personal.fax %} - <div>Fax: {{ ofis_data.personal.fax }}</div> - {% endif %} - </div> - </div> - {% if ofis_data.personal.webpages_formatted %} - <h2>Website</h2> - {% for ws in ofis_data.personal.webpages_formatted %} - {{ ws | raw }}<br/> - {% endfor %} - {% endif %} - {% if ofis_data.biography %} - <h2>Biography summary</h2> - <div><p>{{ ofis_data.biography | raw }}</p></div> - {% endif %} - {% if ofis_data.personal.expertise_keywords %} - <h2>Research interests</h2> - <div> - <ul> - {% for keyword in ofis_data.personal.expertise_keywords %} - <li>{{ keyword }}</li> - {% endfor %} - </ul> - </div> - {% endif %} - {% if ofis_data.education %} - <h2>Education</h2> - <div> - <ul> - {% for degree in ofis_data.education %} - <li>{{ degree.degree_yr }}, {{ degree.degree_name }}, {{ degree.name_of_discipline }} - , {{ degree.institution }}</li> - {% endfor %} - </ul> - </div> - {% endif %} - {% if ofis_data.courses %} - <h2>Courses*</h2> - <div> - <ul> - {% for course in ofis_data.courses %} - <li>{{ course.subject }} {{ course.num }} - {{ course.title | raw }}</li> - {% endfor %} - </ul> - <small>* Only courses taught in the past 5 years are displayed.</small> - </div> - {% endif %} - {% if ofis_data.contribution %} - <h2>Selected/recent publications</h2> - <div> - <ul> - {% for pub in ofis_data.contribution %} - <li>{{ pub.value }}<br/>{{ pub.url | raw }}</li> - {% endfor %} - </ul> - </div> - {% endif %} - {% if ofis_data.news %} - <h2>In the news</h2> - <div> - <ul> - {% for entry in ofis_data.news %} - {% if entry.article_title %} - <li><a href="{{ entry.url }}">{{ entry.article_title }}</a></li> - {% else %} - <li><a href="{{ entry.url }}">{{ entry.url }}</a></li> - {% endif %} - {% endfor %} - </ul> + </div> + <div class="field field-name-body field-type-text-with-summary field-label-hidden"> + <div class="field-items"> + <div class="field-item even" property="content:encoded"> + <div class="ofis-header"> + {% if ofis_data.picture %} + <div class="ofis-picture"> + <img alt="{{ ofis_data.name }}" class="image-left" src="{{ ofis_data.picture }}"> </div> {% endif %} - <h2>Graduate studies</h2> + <div> + <h2>Contact information</h2> + {% if ofis_data.personal.email %} + <div>Email: <a href="mailto:{{ ofis_data.personal.email }}">{{ ofis_data.personal.email }}</a></div> + {% endif %} + {% if ofis_data.personal.phones %} + <div>Phone: {{ ofis_data.personal.phones }}</div> + {% endif %} + {% if ofis_data.personal.offices %} + <div>Location: {{ ofis_data.personal.offices }}</div> + {% endif %} + {% if ofis_data.personal.fax %} + <div>Fax: {{ ofis_data.personal.fax }}</div> + {% endif %} + </div> + </div> + {% if ofis_data.personal.webpages_formatted %} + <h2>Website</h2> + {% for ws in ofis_data.personal.webpages_formatted %} + {{ ws | raw }}<br/> + {% endfor %} + {% endif %} + {% if ofis_data.biography %} + <h2>Biography summary</h2> + <div><p>{{ ofis_data.biography | raw }}</p></div> + {% endif %} + {% if ofis_data.personal.expertise_keywords %} + <h2>Research interests</h2> + <div> + <ul> + {% for keyword in ofis_data.personal.expertise_keywords %} + <li>{{ keyword }}</li> + {% endfor %} + </ul> + </div> + {% endif %} + {% if ofis_data.education %} + <h2>Education</h2> + <div> + <ul> + {% for degree in ofis_data.education %} + <li>{{ degree.degree_yr }}, {{ degree.degree_name }}, {{ degree.name_of_discipline }} + , {{ degree.institution }}</li> + {% endfor %} + </ul> + </div> + {% endif %} + {% if ofis_data.courses %} + <h2>Courses*</h2> <div> <ul> - {% if ofis_data.personal.accepting_grad_students %} - <li>Currently considering applications from graduate students. A completed online application is - required - for admission; <a - href="https://uwaterloo.ca/graduate-studies-postdoctoral-affairs/future-students/applying-graduate-school/before-you-apply"> - start the application process now.</a> - </li> - {% else %} - <li>Not currently accepting applications for graduate students</li> - {% endif %} - {% if ofis_data.personal.adds_status %} - <li>Has <a href="https://uwaterloo.ca/engineering/approved-doctoral-dissertation-supervisor-status">Approved - Doctoral Dissertation Supervisor</a> (ADDS) status - </li> - {% endif %} + {% for course in ofis_data.courses %} + <li>{{ course.subject }} {{ course.num }} - {{ course.title | raw }}</li> + {% endfor %} </ul> + <small>* Only courses taught in the past 5 years are displayed.</small> </div> + {% endif %} + {% if ofis_data.contribution %} + <h2>Selected/recent publications</h2> + <div> + <ul> + {% for pub in ofis_data.contribution %} + <li>{{ pub.value }}<br/>{{ pub.url | raw }}</li> + {% endfor %} + </ul> + </div> + {% endif %} + {% if ofis_data.news %} + <h2>In the news</h2> + <div> + <ul> + {% for entry in ofis_data.news %} + {% if entry.article_title %} + <li><a href="{{ entry.url }}">{{ entry.article_title }}</a></li> + {% else %} + <li><a href="{{ entry.url }}">{{ entry.url }}</a></li> + {% endif %} + {% endfor %} + </ul> + </div> + {% endif %} + <h2>Graduate studies</h2> + <div> + <ul> + {% if ofis_data.personal.accepting_grad_students %} + <li>Currently considering applications from graduate students. A completed online application is + required + for admission; <a + href="https://uwaterloo.ca/graduate-studies-postdoctoral-affairs/future-students/applying-graduate-school/before-you-apply"> + start the application process now.</a> + </li> + {% else %} + <li>Not currently accepting applications for graduate students</li> + {% endif %} + {% if ofis_data.personal.adds_status %} + <li>Has <a href="https://uwaterloo.ca/engineering/approved-doctoral-dissertation-supervisor-status">Approved + Doctoral Dissertation Supervisor</a> (ADDS) status + </li> + {% endif %} + </ul> </div> </div> </div> </div> -</section> +</div>