Display user image to their profile page

This commit is contained in:
Robert Richter 2016-09-21 21:13:30 -05:00
parent 59e4ca8164
commit 96fb62e758
No known key found for this signature in database
GPG Key ID: BEC39BF873A0103B
2 changed files with 7 additions and 3 deletions

View File

@ -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>

View File

@ -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