<%
show_body = false if show_body.nil?
before_meta = lambda {|*args|} if before_meta.nil?
prepend_meta = lambda {|*args|} if prepend_meta.nil?
after_meta = lambda {|*args|} if after_meta.nil?
%>
<li>
  <p class="source-and-title">
    <span class="source">
      <%= link_to paper.body.state, paper.body, title: paper.body.name if show_body -%>
      <span class="label label-default"><%= link_to_paper paper.full_reference, paper %></span>
    </span>
    <%= link_to_paper paper.title, paper %>
  </p>
  <%= capture paper, &before_meta %>
  <p class="meta">
    <%= capture paper, &prepend_meta %>
    Eingereicht von: <%= paper.originators.collect(&:name).join(', ') %> &mdash; Veröffentlicht am <%= time_tag(paper.published_at, l(paper.published_at))%>
     &mdash; <%= paper.page_count || '?' %> <%= t :pages, count: paper.page_count || 0 -%><%- if paper.contains_table %>, enthält Tabelle<% end %>
  </p>
  <%= capture paper, &after_meta %>
</li>

<%
show_body = false if show_body.nil?
before_meta = lambda {|*args|} if before_meta.nil?
prepend_meta = lambda {|*args|} if prepend_meta.nil?
after_meta = lambda {|*args|} if after_meta.nil?
%>
<li>
  <p class="source-and-title">
    <span class="source">
      <%= link_to paper.body.state, paper.body, title: paper.body.name if show_body -%>
      <span class="label label-default"><%= link_to_paper paper.full_reference, paper %></span>
    </span>
    <%= link_to_paper paper.title, paper %>
  </p>
  <%= capture paper, &before_meta %>
  <p class="meta">
    <%= capture paper, &prepend_meta %>
    Eingereicht von: <%= paper.originators.collect(&:name).join(', ') %>
    <%- if !paper.published_at.nil? -%> &mdash; Veröffentlicht am <%= time_tag(paper.published_at, l(paper.published_at))%><%- end -%>
     &mdash; <%= paper.page_count || '?' %> <%= t :pages, count: paper.page_count || 0 -%><%- if paper.contains_table %>, enthält Tabelle<% end %>
  </p>
  <%= capture paper, &after_meta %>
</li>

Fix display of papers without published_at ^2
Fix display of papers without published_at ^2
