mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 20:33:38 +08:00
32b8a2ccff
* Adjustments to pass specs on Rails 6.0.0 * Use classic autoloader instead of Zeitwerk * Update Rails 6.0.0 deprecated methods * Rails 6.0.0 not allowing column with integer name * Drop freedom_patches/rails6.rb * Default value for trigger_transactional_callbacks? is true * Bump rspec-rails version to 4.0.0.beta2
21 lines
762 B
Plaintext
21 lines
762 B
Plaintext
<div class="user-crawler">
|
|
<img src='<%= ::UrlHelper.local_cdn_url(get_absolute_image_url(@user.small_avatar_url)) %>' alt='<%= @user.username %>' title='<%= @user.username %>' />
|
|
<h2 class='username'><%= @user.username %></h2>
|
|
</div>
|
|
|
|
<% unless @restrict_fields %>
|
|
<p><%= raw @user.user_profile.bio_processed %></p>
|
|
<% end %>
|
|
|
|
<% content_for :head do %>
|
|
<% if @restrict_fields %>
|
|
<%= raw crawlable_meta_data(title: @user.username, image: @user.small_avatar_url) %>
|
|
<% else %>
|
|
<%= raw crawlable_meta_data(title: @user.username, description: @user.user_profile.bio_summary, image: @user.small_avatar_url) %>
|
|
<% end %>
|
|
<% end %>
|
|
|
|
<% content_for :title do %>
|
|
<%= t("js.user.profile")%> - <%= @user.username %> - <%= SiteSetting.title %>
|
|
<% end %>
|