diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index a04638e..59a780b 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -532,6 +532,9 @@ li .byline { li.story .byline { margin-top: 1px; } +li.story span.byline { + margin-left: 0.5em; +} li .byline a { color: #888; text-decoration: none; diff --git a/app/views/stories/_listdetail.html.erb b/app/views/stories/_listdetail.html.erb index 351681d..0d5218e 100644 --- a/app/views/stories/_listdetail.html.erb +++ b/app/views/stories/_listdetail.html.erb @@ -48,6 +48,15 @@ class="story <%= story.vote == 1 ? "upvoted" : "" %> <%= story.vote == -1 ? <% end %> <%= ms.domain %> + + by + class="new_user" + <% end %>><%= ms.user.username %> + + <%= raw(time_ago_in_words_label(ms.created_at).gsub(/^about /, "")) + %> ago + <% end %> <% end %> <% end %>