Skip to content

Commit a12a40e

Browse files
committed
Capitalize title and fix when your not upload photo at signup
1 parent 2904118 commit a12a40e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/views/lists/show.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="mb-5">
22
<img class="cloudbannerimage" src="<%= cl_image_path @list.photo.key %>" alt="Card image">
33
<div class="text-image">
4-
<h2 class=""> <%= @list.name %> </h2>
4+
<h2 class=""> <%= @list.name.capitalize %> </h2>
55
<h3 class=""> By <%= @list.user.nickname.capitalize %></h3>
66
<% if user_signed_in? && (@list.user == current_user) %>
77
<span class="delete-list-button">

app/views/shared/_navbar.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<% if user_signed_in? %>
2121
<span class="avatar-content">
2222
<figure class="figure-image" data-action="click->avatar-dropdown#action">
23-
<% if current_user.photo == "" %>
23+
<% if current_user.photo == "" || current_user.photo.nil? %>
2424
<%= image_tag "default-avatar", crop: :fill, class: 'avatar-bordered', alt: 'avatar' %>
2525
<% else %>
2626
<%= image_tag current_user.photo, crop: :fill, class: 'avatar-bordered', alt: 'avatar' %>

0 commit comments

Comments
 (0)