From f30ed8057f6bae0bf4574a3d02ed313634c33e22 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Sat, 2 Feb 2019 02:54:30 +0500 Subject: [PATCH] Display Account#public_name, #biography --- app/views/accounts/show.html.erb | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/app/views/accounts/show.html.erb b/app/views/accounts/show.html.erb index 1f2590b..4edc51e 100644 --- a/app/views/accounts/show.html.erb +++ b/app/views/accounts/show.html.erb @@ -1,8 +1,17 @@
-

<%= @account.username %>

+ <% if @account.public_name.present? %> +

<%= @account.public_name %>

+ <% end %> + +

<%= @account.username %>

+ + <% if @account.biography %> +

<%= @account.biography %>

+ <% end %>
+