Website/templates/person.erb

25 lines
814 B
Plaintext
Raw Normal View History

2016-05-25 16:58:50 -04:00
2017-06-02 15:38:02 -04:00
<%
name = if defined? name then name else "A Mysterious Stranger" end
%>
2016-05-25 16:58:50 -04:00
<div class="person">
<% if defined? pic %>
<img class="photo" src="<%=pic%>" width="<%=pic_w%>" height="<%=pic_h%>" />
<% end %>
<h1><%= name %></h1>
<div class="links">
<% if defined? github %><a href="http://github.com/<%=github%>">GitHub</a><% end %>
<% if defined? twitter %><a href="http://twitter.com/<%=twitter%>">Twitter</a><% end %>
<% if defined? scholar %><a href="http://scholar.google.com/citations?user=/<%=scholar%>">Google&nbsp;Scholar</a><% end %>
<% if defined? cv %><a href="<%=cv%>">CV</a><% end %>
</div>
<%= body %>
<h2>Publications</h2>
<div class="paper_list">
<% LabMetadata::publications_for(name).each { |pub| %> <%= LabMetadata.render_pub(pub) %> <% } %>
2016-05-25 16:58:50 -04:00
</div>
</div>