mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
Display user image to their profile page
This commit is contained in:
parent
59e4ca8164
commit
96fb62e758
@ -25,13 +25,14 @@ content_jsonld = {
|
||||
%>
|
||||
|
||||
<div class="row">
|
||||
<div class="col s4">
|
||||
<div class="col m3 s4">
|
||||
|
||||
<div class="hoverable card">
|
||||
<div class="card-image">
|
||||
<%= image_tag 'card-headers/universes.jpg', style: 'height: 190px' %>
|
||||
<span class="card-title"><%= @user.name.present? ? @user.name : 'Anonymous author' %></span>
|
||||
<%= image_tag @user.image_url(500).html_safe %>
|
||||
</div>
|
||||
<div class="card-content">
|
||||
<div class="card-title"><b><%= @user.name %></b></div>
|
||||
<p>
|
||||
I'm creating universes on Notebook! I'm currently sharing the following public content:
|
||||
</p>
|
||||
|
||||
@ -26,5 +26,8 @@ module PlanCharacters
|
||||
# Filter sensitive parameters out of logs
|
||||
config.filter_parameters << :password
|
||||
config.filter_parameters << :password_confirmation
|
||||
|
||||
# Don't encode ampersands into \u0026 when creating JSON
|
||||
config.active_support.escape_html_entities_in_json = false
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user