use time_ago_in_words_label to show missing 'ago' part

pr #252
This commit is contained in:
joshua stein 2015-12-16 12:35:19 -06:00
parent ce8a148cbe
commit ec92478bc9
1 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
<% if f.object.errors.count == 1 && f.object.already_posted_story %>
<div class="flash-error">
<h2>Error: This story was already submitted <%=
time_ago_in_words(f.object.already_posted_story.created_at) %></h2>
time_ago_in_words_label(f.object.already_posted_story.created_at) %></h2>
<p>
Please view the <a href="<%= f.object.already_posted_story.comments_path %>"
target="_blank">previous discussion</a> for this story.
@ -12,8 +12,8 @@
<% elsif !f.object.errors.any? && f.object.already_posted_story %>
<div class="flash-notice">
<h2>Note: This story was already submitted <%=
time_ago_in_words(f.object.already_posted_story.created_at) %>, but may
be submitted again.</h2>
time_ago_in_words_label(f.object.already_posted_story.created_at) %>, but
may be submitted again.</h2>
<p>
Please view the <a href="<%= f.object.already_posted_story.comments_path %>"
target="_blank">previous discussion</a> for this story first. If the content