Soc/app/views/users/show.html.erb

11 lines
267 B
Plaintext
Raw Normal View History

2023-08-18 18:46:38 +00:00
<% @title = @user.username %>
2023-08-18 16:45:38 +00:00
<h2><%= @user.username %></h2>
<h4><%= @user.full_name %></h4>
<% if @user == current_user %>
<%= link_to t(".edit_user_details"), edit_user_path(@user) %>
2023-10-12 15:24:33 +00:00
<h2>Draft blog posts</h2>
<%= render @user.blog_posts.draft %>
<% end %>