Handles nil projects

pull/712/head
Hagen Schink 11 years ago committed by Sebastian Schuster
parent 0feb8b8a3e
commit c82260a1f0
  1. 2
      app/views/activities/index.html.erb

@ -42,7 +42,7 @@ See doc/COPYRIGHT.rdoc for more details.
<dt class="<%= e.type %> <%= User.current.logged? && e.respond_to?(:author) && User.current == e.author ? 'me' : nil %>">
<%= avatar(e.author, :size => "24") if e.respond_to?(:author) %>
<span class="time"><%= format_time(e.datetime.to_time, false) %></span>
<%= content_tag('span', link_to(e.project.name, e.project), :class => 'project') if @project.nil? || @project != e.project %>
<%= content_tag('span', link_to(e.project.name, e.project), :class => 'project') if @project.nil? || (@project != e.project && e.project) %>
<%= link_to format_activity_title(e.title), e.url %>
</dt>
<dd>

Loading…
Cancel
Save