<% room_offer = notification.activity.trackable %>
<% graetzl = Graetzl.memoized(post.graetzl_id) %>

<%= content_tag(:li, id: dom_id(notification), data: { behavior: 'notification-item' }, class: 'notification-item') do %>
  <%= link_to room_offer do %>
    <%= attachment_image_tag room_offer, :avatar, :fill, 40, 40, fallback: 'avatar/user/40x40.png', class: 'img-round' %>
    <div class="msg">
      <div class="timeago">vor <%= time_ago_in_words(notification.activity.created_at) %></div>
      <span class="username"><%= notification.activity.owner.username %></span> hat einen neuen Raum im Grätzl <span class="matter"><%= graetzl.name %></span> erstellt
    </div>
  <% end %>
<% end %>

<% room_offer = notification.activity.trackable %>
<% graetzl = Graetzl.memoized(room_offer.graetzl_id) %>

<%= content_tag(:li, id: dom_id(notification), data: { behavior: 'notification-item' }, class: 'notification-item') do %>
  <%= link_to room_offer do %>
    <%= attachment_image_tag room_offer, :avatar, :fill, 40, 40, fallback: 'avatar/user/40x40.png', class: 'img-round' %>
    <div class="msg">
      <div class="timeago">vor <%= time_ago_in_words(notification.activity.created_at) %></div>
      <span class="username"><%= notification.activity.owner.username %></span> hat einen neuen Raum im Grätzl <span class="matter"><%= graetzl.name %></span> erstellt
    </div>
  <% end %>
<% end %>

Fix new room offer notification
Fix new room offer notification
