UX: Improve username readability in search results

Avoid lower-case usernames in search results output to improve readability and accuracy - avoid users reading words that don't exist.
This commit is contained in:
Dean Taylor 2014-10-25 16:46:47 +01:00
parent 1e13cfe8ce
commit 4ad84c4a2c

View file

@ -9,7 +9,7 @@
<% @topic_view.posts.each do |post| %> <% @topic_view.posts.each do |post| %>
<% if post.user %> <% if post.user %>
<div class='creator'> <div class='creator'>
<b><%= post.user.username_lower %></b> <b><%= post.user.username %></b>
<%= "(#{post.user.name})" if SiteSetting.display_name_on_posts %> — <%= "(#{post.user.name})" if SiteSetting.display_name_on_posts %> —
<%= post.created_at.to_formatted_s(:iso8601) %> — <%= post.created_at.to_formatted_s(:iso8601) %> —
#<%= post.post_number %> #<%= post.post_number %>