Website/templates/person.erb

30 lines
1.2 KiB
Plaintext
Executable file

<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 do |pub| %>
<li><div class="title"><%= pub["title"] %></div>
<div class="authors"><%= pub["authors"].map { |author| LabMetadata::link_for author }.join(", ") %></div>
<div class="metadata"><span class="venue"><%= pub["venue"] %><% unless pub["track"].nil? %>-<%=pub["track"]%><%end%></span>
<% if pub.has_key? "urls" %>
( <span class="resources"><%= pub["urls"].map { |r, url| "<a href=\"#{url}\">#{r}</a>"}.join(" | ") %></span> )</div>
<% end %>
</li>
<% end %>
</div>
</div>