Link logged in user profile on homepage

This commit is contained in:
Shadowfacts 2020-04-21 21:29:06 -04:00
parent 610af799ec
commit f65c5752bc
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
<h1>Home</h1>
<p>Logged in as <%= @user.username %></p>
<p>
Logged in as <a href="<%= Routes.actor_path(@conn, :get, @user.username) %>"><%= @user.username %></a>
</p>
<%= form_tag Routes.frontend_path(@conn, :post_status), method: :post do %>
<textarea id="content" name="content" cols="30" rows="10"></textarea>