discourse/app/views/users/show.html.erb

18 lines
529 B
Plaintext
Raw Normal View History

<h2><%= @user.username %></h2>
<% unless @restrict_fields %>
<p><%= raw @user.user_profile.bio_processed %></p>
<% end %>
<% content_for :head do %>
<% if @restrict_fields %>
2016-04-01 05:33:25 +08:00
<%= raw crawlable_meta_data(title: @user.username, image: @user.small_avatar_url) %>
<% else %>
2016-04-01 05:33:25 +08:00
<%= raw crawlable_meta_data(title: @user.username, description: @user.user_profile.bio_summary, image: @user.small_avatar_url) %>
<% end %>
<% end %>
2013-07-08 13:55:43 +08:00
<% content_for :title do %>
<%= t("js.user.profile")%> - <%= @user.username %>
<% end %>