gnusocial
This commit is contained in:
parent
af96a734e1
commit
6742aaf791
|
@ -1,6 +1,11 @@
|
||||||
|
|
||||||
<%
|
<%
|
||||||
name = if defined? name then name else "A Mysterious Stranger" end
|
name = if defined? name then name else "A Mysterious Stranger" end
|
||||||
|
use_gnusocial = false
|
||||||
|
if defined? gnusocial
|
||||||
|
use_gnusocial = true
|
||||||
|
gnusocial = [:prefix, :account, :host].zip(gnusocial.split(/@/)).to_h
|
||||||
|
end
|
||||||
%>
|
%>
|
||||||
<div class="person">
|
<div class="person">
|
||||||
<% if defined? pic %>
|
<% if defined? pic %>
|
||||||
|
@ -23,9 +28,7 @@ name = if defined? name then name else "A Mysterious Stranger" end
|
||||||
<div class="links">
|
<div class="links">
|
||||||
<% if defined? github %><a href="http://github.com/<%=github%>">GitHub</a><% end %>
|
<% 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? twitter %><a href="http://twitter.com/<%=twitter%>">Twitter</a><% end %>
|
||||||
<% if defined? gnusocial
|
<% if use_gnusocial %><a href="https://<%=gnusocial[:host]%>/@<%=gnusocial[:account]%>">@<%=gnusocial[:account]%>@<%=gnusocial[:host]%></a><% end %>
|
||||||
prefix, account, host = gnusocial.split(/@/)
|
|
||||||
%><a href="https://<%=host%>/@<%=account%>">@<%=account%></a><% end %>
|
|
||||||
<% if defined? scholar %><a href="http://scholar.google.com/citations?user=/<%=scholar%>">Google Scholar</a><% end %>
|
<% if defined? scholar %><a href="http://scholar.google.com/citations?user=/<%=scholar%>">Google Scholar</a><% end %>
|
||||||
<% if defined? dblp %><a href="http://dblp.uni-trier.de/pers/<%=dblp%>">DBLP</a><% end %>
|
<% if defined? dblp %><a href="http://dblp.uni-trier.de/pers/<%=dblp%>">DBLP</a><% end %>
|
||||||
<% if defined? cv %><a href="<%=cv%>">CV</a><% end %>
|
<% if defined? cv %><a href="<%=cv%>">CV</a><% end %>
|
||||||
|
@ -33,6 +36,12 @@ name = if defined? name then name else "A Mysterious Stranger" end
|
||||||
|
|
||||||
<%= body %>
|
<%= body %>
|
||||||
|
|
||||||
|
<% if use_gnusocial and false %>
|
||||||
|
<div class="embed-responsive embed-responsive-16by9">
|
||||||
|
<iframe class="embed-responsive-item" src="https://<%=gnusocial[:host]%>/users/<%=gnusocial[:account]%>"></iframe>
|
||||||
|
</div>
|
||||||
|
<% end # if defined? gnusocial %>
|
||||||
|
|
||||||
<% pubs = LabMetadata::publications_for(name) %>
|
<% pubs = LabMetadata::publications_for(name) %>
|
||||||
<% unless pubs.empty? %>
|
<% unless pubs.empty? %>
|
||||||
<h2>Publications</h2>
|
<h2>Publications</h2>
|
||||||
|
|
Loading…
Reference in a new issue