Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
44994c5
commit 9f3f55a
Showing
5 changed files
with
99 additions
and
66 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,10 +1,15 @@ | |||
<li id="<%= feed_item.id %>"> | <li id="<%= feed_item.id %>"> | ||
<%= link_to gravatar_for(feed_item.user), feed_item.user %> | <%= link_to gravatar_for(feed_item.user), feed_item.user %> | ||
<span class="user"> | <span class="user"> | ||
<%= link_to feed_item.user.name, feed_item.user %> | <%= link_to feed_item.user.name, feed_item.user %> | ||
</span> | </span> | ||
<span class="content"><%= feed_item.content %></span> | <span class="content"><%= feed_item.content %></span> | ||
<span class="timestamp"> | <span class="timestamp"> | ||
Posted <%= time_ago_in_words(feed_item.created_at) %> ago. | Posted <%= time_ago_in_words(feed_item.created_at) %> ago. | ||
</span> | </span> | ||
<% if current_user?(feed_item.user) %> | |||
<%= link_to "delete", feed_item, method: :delete, | |||
confirm: "You sure?", | |||
title: feed_item.content %> | |||
<% end %> | |||
</li> | </li> |
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