Created
April 24, 2019 06:51
-
-
Save balvig/a84b7a0336bb9e01aea3b25fcb47abf3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-<% 3.times do %> | |
+<% @events.each do |event| %> | |
<div class="media"> | |
- <%= image_tag "dummy_user.jpg", class: "media__img" %> | |
+ <%= image_tag event.visitor.avatar, class: "media__img" %> | |
<div class="media__body"> | |
- Sebastian | |
+ <%= event.visitor.name %> | |
<p class="meta"> | |
- liked <%= link_to "Quick Pizza Dough", "#" %> | |
+ <%= event.action %> <%= link_to event.recipe.title, event.recipe %> | |
</p> | |
<div class="attachment media"> | |
- <%= image_tag "food.jpg", class: "media__img" %> | |
+ <%= image_tag event.featured_visitor_recipe.image, class: "media__img" %> | |
<div class="media__body"> | |
<h3 class="recipe-title"> | |
- <%= link_to "Grilled Aubergines", "#" %> | |
+ <%= link_to event.featured_visitor_recipe.title, event.featured_visitor_recipe %> | |
</h3> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment