Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for issue 3074 #641

Merged
merged 2 commits into from May 30, 2012

Conversation

talvalin
Copy link
Contributor

No description provided.

@talvalin
Copy link
Contributor Author

<dt><%= stat.to_s.titleize %></dt>
<dd><%= @totals[stat] %></dd>
<% end %>
<% unless @user.preference.hide_hit_counts %>
<dt><%= "Hits" %></dt>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tiny, tiny thing: as we're moving closer to having translations, would you have time to edit this string to be surrounded by the translation function? That's the ts() that you might have noticed around other strings. g <3!

@@ -27,4 +27,7 @@ def fix_time_zone
self.time_zone = try if ActiveSupport::TimeZone[try]
end

def hide_hit_counts
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only bit of advice here would be that in Ruby, it's pretty standard for methods that return true or false to end in a question mark, like: def hide_hit_counts? That just makes it a little clearer to someone who's looking at the code that we're checking a value rather than performing an action.

elzj added a commit that referenced this pull request May 30, 2012
@elzj elzj merged commit b97263b into otwcode:master May 30, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants