Skip to content

Commit

Permalink
Change markasread_link to mark_as_read_link
Browse files Browse the repository at this point in the history
  • Loading branch information
zz9pzza committed Jun 18, 2016
1 parent 46e8461 commit 09e2141
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/helpers/works_helper.rb
Expand Up @@ -96,7 +96,7 @@ def marked_for_later?(work)
reading && reading.toread?
end

def markasread_link(work)
def mark_as_read_link(work)
link_to ts("Mark as Read"), mark_as_read_work_path(work)
end

Expand Down
2 changes: 1 addition & 1 deletion app/views/comments/_commentable.html.erb
Expand Up @@ -53,7 +53,7 @@
<% if logged_in? && @work && marked_for_later?(@work) %>
<li>
<%= markasread_link(@work) %>
<%= mark_as_read_link(@work) %>
</li>
<% end %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/works/_work_header_navigation.html.erb
Expand Up @@ -54,7 +54,7 @@
<% unless current_user.is_author_of?(@work) || current_user.try(:preference).try(:history_enabled) == false %>
<li class="mark">
<% if marked_for_later?(@work) %>
<%= markasread_link(@work) %>
<%= mark_as_read_link(@work) %>
<% else %>
<%= mark_for_later_link(@work) %>
<% end %>
Expand Down

0 comments on commit 09e2141

Please sign in to comment.